Change the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction...
authorChris Lattner <sabre@nondot.org>
Sun, 19 Oct 2003 21:34:11 +0000 (21:34 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 19 Oct 2003 21:34:11 +0000 (21:34 +0000)
This allows removal of a special case from the instvisitor

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9268 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/InstVisitor.h

index f8298e313d83d94e891bf555ec560af61a1d0d8f..36ee361affd080acb6afc2cf921b6751b531720a 100644 (file)
@@ -136,20 +136,8 @@ struct InstVisitor {
   //
 #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...
   //