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 | def0e55c871d48122ff617fec49f33802beff1dc (patch) | |
tree | 72e75c8955231f438f66be20c731d080d28500d4 | |
parent | 7c7680a14e76bdd4d2dc71a1eed403982538f8c7 (diff) |
Added an isPhiNode(unsigned) static method to determine if an opcode is
a PhiNode or not. Needed by Bytecode Analyzer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14124 91177308-0d34-0410-b5e6-96231b3b80d8
-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; } |