projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf5933a
)
Add methods like BinaryOperator::createAdd that take an instruction to insert
author
Chris Lattner
<sabre@nondot.org>
Sun, 20 Jun 2004 05:02:56 +0000
(
05:02
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 20 Jun 2004 05:02:56 +0000
(
05:02
+0000)
before.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14261
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/InstrTypes.h
patch
|
blob
|
history
diff --git
a/include/llvm/InstrTypes.h
b/include/llvm/InstrTypes.h
index 723b3547170fa8b9a31439f9fbb5da2c9406b65d..de90dc5bc76b6046e189a139f24a2aab94d0fe26 100644
(file)
--- a/
include/llvm/InstrTypes.h
+++ b/
include/llvm/InstrTypes.h
@@
-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)