[llvm-commits] CVS: llvm/include/llvm/Support/InstVisitor.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Oct 19 16:35:01 PDT 2003
Changes in directory llvm/include/llvm/Support:
InstVisitor.h updated: 1.23 -> 1.24
---
Log message:
Change the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction::PHI" to be more consistent with the other instructions.
This allows removal of a special case from the instvisitor
---
Diffs of the changes: (+0 -12)
Index: llvm/include/llvm/Support/InstVisitor.h
diff -u llvm/include/llvm/Support/InstVisitor.h:1.23 llvm/include/llvm/Support/InstVisitor.h:1.24
--- llvm/include/llvm/Support/InstVisitor.h:1.23 Sat Oct 18 00:53:01 2003
+++ llvm/include/llvm/Support/InstVisitor.h Sun Oct 19 16:34:11 2003
@@ -136,20 +136,8 @@
//
#define HANDLE_INST(NUM, OPCODE, CLASS) \
RetTy visit##OPCODE(CLASS &I) { DELEGATE(CLASS); }
-#define HANDLE_OTHER_INST(NUM, OPCODE, CLASS) // Handle "other" insts specially
#include "llvm/Instruction.def"
- // Implement all "other" instructions, except for PHINode
- RetTy visitCast(CastInst &I) { DELEGATE(CastInst); }
- RetTy visitCall(CallInst &I) { DELEGATE(CallInst); }
- RetTy visitShr(ShiftInst &I) { DELEGATE(ShiftInst); }
- RetTy visitShl(ShiftInst &I) { DELEGATE(ShiftInst); }
- RetTy visitVANext(VANextInst &I) { DELEGATE(VANextInst); }
- RetTy visitVAArg (VAArgInst &I) { DELEGATE(VAArgInst); }
- RetTy visitUserOp1(Instruction &I) { DELEGATE(Instruction); }
- RetTy visitUserOp2(Instruction &I) { DELEGATE(Instruction); }
-
-
// Specific Instruction type classes... note that all of the casts are
// necessary because we use the instruction classes as opaque types...
//
More information about the llvm-commits
mailing list