diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-07-19 15:07:52 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-07-19 15:07:52 +0000 |
commit | b9b54ebfed02f0654897d37e8a4448d3f8087558 (patch) | |
tree | 8bdb4816b8fc391e63610f245c48ff9baa93459f /include | |
parent | ca12a2139e7ed8b5f30df9927494dd7aae929a7c (diff) | |
download | llvm-b9b54ebfed02f0654897d37e8a4448d3f8087558.tar.gz llvm-b9b54ebfed02f0654897d37e8a4448d3f8087558.tar.bz2 llvm-b9b54ebfed02f0654897d37e8a4448d3f8087558.tar.xz |
Convert SimplifyGEPInst to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/InstructionSimplify.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Analysis/InstructionSimplify.h b/include/llvm/Analysis/InstructionSimplify.h index bc6e55f549..94bdae21b5 100644 --- a/include/llvm/Analysis/InstructionSimplify.h +++ b/include/llvm/Analysis/InstructionSimplify.h @@ -24,6 +24,8 @@ namespace llvm { class Instruction; class Value; class TargetData; + template<typename T> + class ArrayRef; /// SimplifyAddInst - Given operands for an Add, see if we can /// fold the result. If not, this returns null. @@ -121,7 +123,7 @@ namespace llvm { /// SimplifyGEPInst - Given operands for an GetElementPtrInst, see if we can /// fold the result. If not, this returns null. - Value *SimplifyGEPInst(Value * const *Ops, unsigned NumOps, + Value *SimplifyGEPInst(ArrayRef<Value *> Ops, const TargetData *TD = 0, const DominatorTree *DT = 0); //=== Helper functions for higher up the class hierarchy. |