1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

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

llvm-svn: 9268
This commit is contained in:
Chris Lattner 2003-10-19 21:34:11 +00:00
parent 3d519c7bab
commit 97433b8e95

View 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...
//