mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Add methods like BinaryOperator::createAdd that take an instruction to insert
before. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14261 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cf5933a716
commit
762a76b891
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user