mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 14:40:25 +00:00
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
This commit is contained in:
parent
e4c3764a9f
commit
75309f844a
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user