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
commit009a81ff8815b78422d27f3b8ad2d90a56dffb02 (patch)
treef6fc966236685551a212139bd05c1a3d4589ca2a /include
parent15f378ff4b4265c99e20bbc0b48596704e64bb39 (diff)
downloadexternal_llvm-009a81ff8815b78422d27f3b8ad2d90a56dffb02.zip
external_llvm-009a81ff8815b78422d27f3b8ad2d90a56dffb02.tar.gz
external_llvm-009a81ff8815b78422d27f3b8ad2d90a56dffb02.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: