[llvm-commits] CVS: llvm/include/llvm/Constants.h
Evan Cheng
evan.cheng at apple.com
Mon Feb 19 11:23:10 PST 2007
Changes in directory llvm/include/llvm:
Constants.h updated: 1.126 -> 1.127
---
Log message:
Temporarily reverting the patch. It's breaking llvm-gcc build.
---
Diffs of the changes: (+14 -0)
Constants.h | 14 ++++++++++++++
1 files changed, 14 insertions(+)
Index: llvm/include/llvm/Constants.h
diff -u llvm/include/llvm/Constants.h:1.126 llvm/include/llvm/Constants.h:1.127
--- llvm/include/llvm/Constants.h:1.126 Mon Feb 19 01:44:24 2007
+++ llvm/include/llvm/Constants.h Mon Feb 19 13:22:52 2007
@@ -550,6 +550,10 @@
///
static Constant *getSizeOf(const Type *Ty);
+ /// getPtrPtrFromArrayPtr constant expr - given a pointer to a constant array,
+ /// return a pointer to a pointer of the array element type.
+ static Constant *getPtrPtrFromArrayPtr(Constant *C);
+
/// ConstantExpr::get - Return a binary or shift operator constant expression,
/// folding if possible.
///
@@ -589,6 +593,16 @@
static Constant *getGetElementPtr(Constant *C,
Value* const *IdxList, unsigned NumIdx);
+ // FIXME: Remove these.
+ static Constant *getGetElementPtr(Constant *C,
+ const std::vector<Constant*> &IdxList) {
+ return getGetElementPtr(C, &IdxList[0], IdxList.size());
+ }
+ static Constant *getGetElementPtr(Constant *C,
+ const std::vector<Value*> &IdxList) {
+ return getGetElementPtr(C, &IdxList[0], IdxList.size());
+ }
+
static Constant *getExtractElement(Constant *Vec, Constant *Idx);
static Constant *getInsertElement(Constant *Vec, Constant *Elt,Constant *Idx);
static Constant *getShuffleVector(Constant *V1, Constant *V2, Constant *Mask);
More information about the llvm-commits
mailing list