diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-06-10 22:27:10 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-06-10 22:27:10 +0000 |
commit | 7e5d80033da9db78b2bd926cac02059b85a57a89 (patch) | |
tree | b3de6f34946f93b2cae02cddab4374f5b08e986b | |
parent | 8395e67fb1b8c7633ee6a7edec956a10a6c403b3 (diff) | |
download | bcm5719-llvm-7e5d80033da9db78b2bd926cac02059b85a57a89.tar.gz bcm5719-llvm-7e5d80033da9db78b2bd926cac02059b85a57a89.zip |
Added an isPhiNode(unsigned) static method to determine if an opcode is
a PhiNode or not. Needed by Bytecode Analyzer.
llvm-svn: 14124
-rw-r--r-- | llvm/include/llvm/Instruction.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/Instruction.h b/llvm/include/llvm/Instruction.h index 86f2a056cb9..1d863483e0c 100644 --- a/llvm/include/llvm/Instruction.h +++ b/llvm/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; } |