mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 13:44:28 +00:00
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
This commit is contained in:
parent
7c7680a14e
commit
def0e55c87
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user