[llvm-commits] CVS: llvm/include/llvm/Constants.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 29 05:21:21 PST 2004
Changes in directory llvm/include/llvm:
Constants.h updated: 1.44 -> 1.45
---
Log message:
Add a bunch of methods that should have been added a long time ago.
---
Diffs of the changes: (+22 -0)
Index: llvm/include/llvm/Constants.h
diff -u llvm/include/llvm/Constants.h:1.44 llvm/include/llvm/Constants.h:1.45
--- llvm/include/llvm/Constants.h:1.44 Thu Mar 11 23:50:39 2004
+++ llvm/include/llvm/Constants.h Sun Mar 28 20:37:17 2004
@@ -559,6 +559,28 @@
return getTy(C1->getType(), Opcode, C1, C2);
}
+ /// ConstantExpr::get* - Return some common constants without having to
+ /// specify the full Instruction::OPCODE identifier.
+ ///
+ static Constant *getNeg(Constant *C);
+ static Constant *getNot(Constant *C);
+ static Constant *getAdd(Constant *C1, Constant *C2);
+ static Constant *getSub(Constant *C1, Constant *C2);
+ static Constant *getMul(Constant *C1, Constant *C2);
+ static Constant *getDiv(Constant *C1, Constant *C2);
+ static Constant *getRem(Constant *C1, Constant *C2);
+ static Constant *getAnd(Constant *C1, Constant *C2);
+ static Constant *getOr(Constant *C1, Constant *C2);
+ static Constant *getXor(Constant *C1, Constant *C2);
+ static Constant *getSetEQ(Constant *C1, Constant *C2);
+ static Constant *getSetNE(Constant *C1, Constant *C2);
+ static Constant *getSetLT(Constant *C1, Constant *C2);
+ static Constant *getSetGT(Constant *C1, Constant *C2);
+ static Constant *getSetLE(Constant *C1, Constant *C2);
+ static Constant *getSetGE(Constant *C1, Constant *C2);
+ static Constant *getShl(Constant *C1, Constant *C2);
+ static Constant *getShr(Constant *C1, Constant *C2);
+
/// Getelementptr form...
///
static Constant *getGetElementPtr(Constant *C,
More information about the llvm-commits
mailing list