[llvm-commits] CVS: llvm/include/llvm/Instruction.def iPHINode.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Oct 19 16:38:06 PDT 2003
Changes in directory llvm/include/llvm:
Instruction.def updated: 1.9 -> 1.10
iPHINode.h updated: 1.11 -> 1.12
---
Log message:
Change the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction::PHI" to be more consistent with the other instructions.
---
Diffs of the changes: (+3 -3)
Index: llvm/include/llvm/Instruction.def
diff -u llvm/include/llvm/Instruction.def:1.9 llvm/include/llvm/Instruction.def:1.10
--- llvm/include/llvm/Instruction.def:1.9 Sat Oct 18 00:52:51 2003
+++ llvm/include/llvm/Instruction.def Sun Oct 19 16:33:56 2003
@@ -114,7 +114,7 @@
// Other operators...
FIRST_OTHER_INST(26)
-HANDLE_OTHER_INST(26, PHINode, PHINode ) // PHI node instruction
+HANDLE_OTHER_INST(26, PHI , PHINode ) // PHI node instruction
HANDLE_OTHER_INST(27, Cast , CastInst ) // Type cast
HANDLE_OTHER_INST(28, Call , CallInst ) // Call a function
Index: llvm/include/llvm/iPHINode.h
diff -u llvm/include/llvm/iPHINode.h:1.11 llvm/include/llvm/iPHINode.h:1.12
--- llvm/include/llvm/iPHINode.h:1.11 Tue Sep 30 13:37:37 2003
+++ llvm/include/llvm/iPHINode.h Sun Oct 19 16:33:56 2003
@@ -23,7 +23,7 @@
public:
PHINode(const Type *Ty, const std::string &Name = "",
Instruction *InsertBefore = 0)
- : Instruction(Ty, Instruction::PHINode, Name, InsertBefore) {
+ : Instruction(Ty, Instruction::PHI, Name, InsertBefore) {
}
virtual Instruction *clone() const { return new PHINode(*this); }
@@ -98,7 +98,7 @@
/// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const PHINode *) { return true; }
static inline bool classof(const Instruction *I) {
- return I->getOpcode() == Instruction::PHINode;
+ return I->getOpcode() == Instruction::PHI;
}
static inline bool classof(const Value *V) {
return isa<Instruction>(V) && classof(cast<Instruction>(V));
More information about the llvm-commits
mailing list