[llvm-commits] CVS: llvm/include/llvm/Instruction.h

LLVM llvm at cs.uiuc.edu
Thu Jun 10 17:33:01 PDT 2004


Changes in directory llvm/include/llvm:

Instruction.h updated: 1.55 -> 1.56

---
Log message:

Added an isPhiNode(unsigned) static method to determine if an opcode is
a PhiNode or not. Needed by Bytecode Analyzer.


---
Diffs of the changes:  (+2 -0)

Index: llvm/include/llvm/Instruction.h
diff -u llvm/include/llvm/Instruction.h:1.55 llvm/include/llvm/Instruction.h:1.56
--- llvm/include/llvm/Instruction.h:1.55	Tue Jun  8 12:44:21 2004
+++ llvm/include/llvm/Instruction.h	Thu Jun 10 17:27:10 2004
@@ -95,6 +95,8 @@
     return isTerminator(iType);
   }
 
+  static inline bool isPhiNode(unsigned OpCode) { return OpCode == PHI; }
+
   inline bool isBinaryOp() const {
     return iType >= BinaryOpsBegin && iType < BinaryOpsEnd;
   }





More information about the llvm-commits mailing list