diff options
| -rw-r--r-- | llvm/include/llvm/InstrTypes.h | 8 | 
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/include/llvm/InstrTypes.h b/llvm/include/llvm/InstrTypes.h index 8d1b5f1230d..1d3bae6c7d6 100644 --- a/llvm/include/llvm/InstrTypes.h +++ b/llvm/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();    }  | 

