[llvm-commits] CVS: llvm/include/llvm/InstrTypes.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Jun 20 00:10:02 PDT 2004
Changes in directory llvm/include/llvm:
InstrTypes.h updated: 1.39 -> 1.40
---
Log message:
Add methods like BinaryOperator::createAdd that take an instruction to insert
before.
---
Diffs of the changes: (+6 -0)
Index: llvm/include/llvm/InstrTypes.h
diff -u llvm/include/llvm/InstrTypes.h:1.39 llvm/include/llvm/InstrTypes.h:1.40
--- llvm/include/llvm/InstrTypes.h:1.39 Wed Jun 9 20:43:29 2004
+++ llvm/include/llvm/InstrTypes.h Sun Jun 20 00:02:56 2004
@@ -122,6 +122,12 @@
return create(Instruction::OPC, V1, V2, Name, BB);\
}
#include "llvm/Instruction.def"
+#define HANDLE_BINARY_INST(N, OPC, CLASS) \
+ static BinaryOperator *create##OPC(Value *V1, Value *V2, \
+ const std::string &Name, Instruction *I) {\
+ return create(Instruction::OPC, V1, V2, Name, I);\
+ }
+#include "llvm/Instruction.def"
/// Helper functions to construct and inspect unary operations (NEG and NOT)
More information about the llvm-commits
mailing list