projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c7680a
)
Added an isPhiNode(unsigned) static method to determine if an opcode is
author
Reid Spencer
<rspencer@reidspencer.com>
Thu, 10 Jun 2004 22:27:10 +0000
(22:27 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Thu, 10 Jun 2004 22:27:10 +0000
(22:27 +0000)
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
include/llvm/Instruction.h
patch
|
blob
|
history
diff --git
a/include/llvm/Instruction.h
b/include/llvm/Instruction.h
index 86f2a056cb975df4055ed6213d559536375f174a..1d863483e0c13c75a19c657d5bb1cd16a37fd2b5 100644
(file)
--- 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;
}