Add methods like BinaryOperator::createAdd that take an instruction to insert

before.

llvm-svn: 14261
This commit is contained in:
Chris Lattner 2004-06-20 05:02:56 +00:00
parent 6324d6d00b
commit ba933051e3

View File

@ -122,6 +122,12 @@ public:
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)