aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-12-08 07:57:47 +0000
committerDan Gohman <gohman@apple.com>2008-12-08 07:57:47 +0000
commitc8a1a3c426209e9c7b35e279e1578a89edc40af6 (patch)
treef6fc966236685551a212139bd05c1a3d4589ca2a /include
parent11dcd8d38de031c34380fd6ab7a0daacdefb263a (diff)
downloadexternal_llvm-c8a1a3c426209e9c7b35e279e1578a89edc40af6.zip
external_llvm-c8a1a3c426209e9c7b35e279e1578a89edc40af6.tar.gz
external_llvm-c8a1a3c426209e9c7b35e279e1578a89edc40af6.tar.bz2
Factor out the code for sign-extending/truncating gep indices
and use it in x86 address mode folding. Also, make getRegForValue return 0 for illegal types even if it has a ValueMap for them, because Argument values are put in the ValueMap. This fixes PR3181. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/FastISel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/FastISel.h b/include/llvm/CodeGen/FastISel.h
index 71db9b5..1cc8310 100644
--- a/include/llvm/CodeGen/FastISel.h
+++ b/include/llvm/CodeGen/FastISel.h
@@ -106,6 +106,11 @@ public:
/// defined locally.
unsigned lookUpRegForValue(Value *V);
+ /// getRegForGEPIndex - This is a wrapper around getRegForValue that also
+ /// takes care of truncating or sign-extending the given getelementptr
+ /// index value.
+ unsigned getRegForGEPIndex(Value *V);
+
virtual ~FastISel();
protected: