Changes in directory llvm/include/llvm:
Instructions.h updated: 1.72 -> 1.73 --- Log message: add a GEP helper function --- Diffs of the changes: (+6 -0) Instructions.h | 6 ++++++ 1 files changed, 6 insertions(+) Index: llvm/include/llvm/Instructions.h diff -u llvm/include/llvm/Instructions.h:1.72 llvm/include/llvm/Instructions.h:1.73 --- llvm/include/llvm/Instructions.h:1.72 Sun Apr 22 17:22:02 2007 +++ llvm/include/llvm/Instructions.h Fri Apr 27 15:35:56 2007 @@ -441,6 +441,12 @@ /// zeros. If so, the result pointer and the first operand have the same /// value, just potentially different types. bool hasAllZeroIndices() const; + + /// hasAllConstantIndices - Return true if all of the indices of this GEP are + /// constant integers. If so, the result pointer and the first operand have + /// a constant offset between them. + bool hasAllConstantIndices() const; + // Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const GetElementPtrInst *) { return true; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits