diff options
-rw-r--r-- | include/llvm/Instruction.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 86f2a056cb..1d863483e0 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -95,6 +95,8 @@ public: return isTerminator(iType); } + static inline bool isPhiNode(unsigned OpCode) { return OpCode == PHI; } + inline bool isBinaryOp() const { return iType >= BinaryOpsBegin && iType < BinaryOpsEnd; } |