X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=include%2Fllvm%2FInstructions.h;h=146d1f50a645d0aede3f2ff7e934766f01a0e15a;hb=7adb53e7b1a4ec0cda17cbc946da44147c141d69;hp=236a1fdcced8cc6bc5a508afcfddc9929b9ff77d;hpb=032507d989163a89311847535a7e7c5d9a67229f;p=oota-llvm.git diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 236a1fdcced..146d1f50a64 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -441,6 +441,12 @@ public: /// 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; }