diff options
| author | Jay Foad <jay.foad@gmail.com> | 2011-07-19 13:32:40 +0000 |
|---|---|---|
| committer | Jay Foad <jay.foad@gmail.com> | 2011-07-19 13:32:40 +0000 |
| commit | f4b14a2b0d0130e07944e59ac23c21578b62729e (patch) | |
| tree | 35dad24b339ecc9a4203a0704391126890c5dbe2 /llvm/include | |
| parent | f1b800998a768b05770c69c3ca53b868428b36ac (diff) | |
| download | bcm5719-llvm-f4b14a2b0d0130e07944e59ac23c21578b62729e.tar.gz bcm5719-llvm-f4b14a2b0d0130e07944e59ac23c21578b62729e.zip | |
Use ArrayRef in ConstantFoldInstOperands and ConstantFoldCall.
llvm-svn: 135477
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Analysis/ConstantFolding.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/Analysis/ConstantFolding.h b/llvm/include/llvm/Analysis/ConstantFolding.h index 8d968c0ae20..b942010f10c 100644 --- a/llvm/include/llvm/Analysis/ConstantFolding.h +++ b/llvm/include/llvm/Analysis/ConstantFolding.h @@ -27,6 +27,8 @@ namespace llvm { class TargetData; class Function; class Type; + template<typename T> + class ArrayRef; /// ConstantFoldInstruction - Try to constant fold the specified instruction. /// If successful, the constant result is returned, if not, null is returned. @@ -48,7 +50,7 @@ Constant *ConstantFoldConstantExpression(const ConstantExpr *CE, /// form. /// Constant *ConstantFoldInstOperands(unsigned Opcode, Type *DestTy, - Constant *const *Ops, unsigned NumOps, + ArrayRef<Constant *> Ops, const TargetData *TD = 0); /// ConstantFoldCompareInstOperands - Attempt to constant fold a compare @@ -76,7 +78,7 @@ bool canConstantFoldCallTo(const Function *F); /// ConstantFoldCall - Attempt to constant fold a call to the specified function /// with the specified arguments, returning null if unsuccessful. Constant * -ConstantFoldCall(Function *F, Constant *const *Operands, unsigned NumOperands); +ConstantFoldCall(Function *F, ArrayRef<Constant *> Operands); } #endif |

