diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 86f2a056cb9..1d863483e0c 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; }