Factor out the code for sign-extending/truncating gep indices
[oota-llvm.git] / include / llvm / CodeGen / FastISel.h
index 71db9b580239433bbe720e944e7c27b05e39bc52..1cc83106052e3168e59e1255df081f5e08c1dc7b 100644 (file)
@@ -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: