[llvm-commits] CVS: llvm/include/llvm/Constants.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Jul 14 15:19:30 PDT 2006
Changes in directory llvm/include/llvm:
Constants.h updated: 1.84 -> 1.85
---
Log message:
Add another helper method.
---
Diffs of the changes: (+4 -0)
Constants.h | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/include/llvm/Constants.h
diff -u llvm/include/llvm/Constants.h:1.84 llvm/include/llvm/Constants.h:1.85
--- llvm/include/llvm/Constants.h:1.84 Fri Jul 14 14:37:01 2006
+++ llvm/include/llvm/Constants.h Fri Jul 14 17:19:18 2006
@@ -618,6 +618,10 @@
/// one, but with the specified operand set to the specified value.
Constant *getWithOperandReplaced(unsigned OpNo, Constant *Op) const;
+ /// getWithOperands - This returns the current constant expression with the
+ /// operands replaced with the specified values. The specified operands must
+ /// match count and type with the existing ones.
+ Constant *getWithOperands(const std::vector<Constant*> &Ops) const;
virtual void destroyConstant();
virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U);
More information about the llvm-commits
mailing list