diff options
author | Chris Lattner <sabre@nondot.org> | 2002-08-14 17:51:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-08-14 17:51:29 +0000 |
commit | 75309f844a73072d76f98e8f55208e27bc0c1bb9 (patch) | |
tree | f0ed235d3684b7e637026db3f2ec05cf880a7da4 | |
parent | e4c3764a9fa7bb7c6438567b2ddbf3f3d3ac8390 (diff) |
Expose two new static methods from BinaryOperator: createNeg, createNot
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3314 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/InstrTypes.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/InstrTypes.h b/include/llvm/InstrTypes.h index 8d1b5f1230..1d3bae6c7d 100644 --- a/include/llvm/InstrTypes.h +++ b/include/llvm/InstrTypes.h @@ -116,7 +116,13 @@ public: static BinaryOperator *create(BinaryOps Op, Value *S1, Value *S2, const std::string &Name = ""); - inline BinaryOps getOpcode() const { + // createNeg, createNot - Helper constructors that create the "neg" and "not" + // instructions out of "sub" and "xor" instructions. + // + static BinaryOperator *createNeg(Value *Op, const std::string &Name = ""); + static BinaryOperator *createNot(Value *Op, const std::string &Name = ""); + + BinaryOps getOpcode() const { return (BinaryOps)Instruction::getOpcode(); } |