mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Make the formatting of this file more consistent, and fix the 80-columns
violations I introduced. Also sort some of the instructions to get a more consistent ordering. Suggestions on still better / more consistent formatting would be welcome. I'm actually tempted to use a macro to define all of the delegate methods... llvm-svn: 153030
This commit is contained in:
parent
6163cc0a2f
commit
f79b13d9c4
@ -157,54 +157,54 @@ public:
|
||||
// Specific Instruction type classes... note that all of the casts are
|
||||
// necessary because we use the instruction classes as opaque types...
|
||||
//
|
||||
RetTy visitReturnInst(ReturnInst &I) { DELEGATE(TerminatorInst);}
|
||||
RetTy visitBranchInst(BranchInst &I) { DELEGATE(TerminatorInst);}
|
||||
RetTy visitSwitchInst(SwitchInst &I) { DELEGATE(TerminatorInst);}
|
||||
RetTy visitIndirectBrInst(IndirectBrInst &I) { DELEGATE(TerminatorInst);}
|
||||
RetTy visitInvokeInst(InvokeInst &I) { DELEGATE(TerminatorInst);}
|
||||
RetTy visitResumeInst(ResumeInst &I) { DELEGATE(TerminatorInst);}
|
||||
RetTy visitUnreachableInst(UnreachableInst &I) { DELEGATE(TerminatorInst);}
|
||||
RetTy visitICmpInst(ICmpInst &I) { DELEGATE(CmpInst);}
|
||||
RetTy visitFCmpInst(FCmpInst &I) { DELEGATE(CmpInst);}
|
||||
RetTy visitAllocaInst(AllocaInst &I) { DELEGATE(UnaryInstruction); }
|
||||
RetTy visitLoadInst(LoadInst &I) { DELEGATE(UnaryInstruction); }
|
||||
RetTy visitStoreInst(StoreInst &I) { DELEGATE(Instruction); }
|
||||
RetTy visitAtomicCmpXchgInst(AtomicCmpXchgInst &I){ DELEGATE(Instruction); }
|
||||
RetTy visitAtomicRMWInst(AtomicRMWInst &I) { DELEGATE(Instruction); }
|
||||
RetTy visitFenceInst(FenceInst &I) { DELEGATE(Instruction); }
|
||||
RetTy visitGetElementPtrInst(GetElementPtrInst &I){ DELEGATE(Instruction); }
|
||||
RetTy visitPHINode(PHINode &I) { DELEGATE(Instruction); }
|
||||
RetTy visitTruncInst(TruncInst &I) { DELEGATE(CastInst); }
|
||||
RetTy visitZExtInst(ZExtInst &I) { DELEGATE(CastInst); }
|
||||
RetTy visitSExtInst(SExtInst &I) { DELEGATE(CastInst); }
|
||||
RetTy visitFPTruncInst(FPTruncInst &I) { DELEGATE(CastInst); }
|
||||
RetTy visitFPExtInst(FPExtInst &I) { DELEGATE(CastInst); }
|
||||
RetTy visitFPToUIInst(FPToUIInst &I) { DELEGATE(CastInst); }
|
||||
RetTy visitFPToSIInst(FPToSIInst &I) { DELEGATE(CastInst); }
|
||||
RetTy visitUIToFPInst(UIToFPInst &I) { DELEGATE(CastInst); }
|
||||
RetTy visitSIToFPInst(SIToFPInst &I) { DELEGATE(CastInst); }
|
||||
RetTy visitPtrToIntInst(PtrToIntInst &I) { DELEGATE(CastInst); }
|
||||
RetTy visitIntToPtrInst(IntToPtrInst &I) { DELEGATE(CastInst); }
|
||||
RetTy visitBitCastInst(BitCastInst &I) { DELEGATE(CastInst); }
|
||||
RetTy visitSelectInst(SelectInst &I) { DELEGATE(Instruction); }
|
||||
RetTy visitCallInst(CallInst &I) { DELEGATE(Instruction); }
|
||||
RetTy visitVAArgInst(VAArgInst &I) { DELEGATE(UnaryInstruction); }
|
||||
RetTy visitReturnInst(ReturnInst &I) { DELEGATE(TerminatorInst);}
|
||||
RetTy visitBranchInst(BranchInst &I) { DELEGATE(TerminatorInst);}
|
||||
RetTy visitSwitchInst(SwitchInst &I) { DELEGATE(TerminatorInst);}
|
||||
RetTy visitIndirectBrInst(IndirectBrInst &I) { DELEGATE(TerminatorInst);}
|
||||
RetTy visitInvokeInst(InvokeInst &I) { DELEGATE(TerminatorInst);}
|
||||
RetTy visitResumeInst(ResumeInst &I) { DELEGATE(TerminatorInst);}
|
||||
RetTy visitUnreachableInst(UnreachableInst &I) { DELEGATE(TerminatorInst);}
|
||||
RetTy visitICmpInst(ICmpInst &I) { DELEGATE(CmpInst);}
|
||||
RetTy visitFCmpInst(FCmpInst &I) { DELEGATE(CmpInst);}
|
||||
RetTy visitAllocaInst(AllocaInst &I) { DELEGATE(UnaryInstruction);}
|
||||
RetTy visitLoadInst(LoadInst &I) { DELEGATE(UnaryInstruction);}
|
||||
RetTy visitStoreInst(StoreInst &I) { DELEGATE(Instruction);}
|
||||
RetTy visitAtomicCmpXchgInst(AtomicCmpXchgInst &I) { DELEGATE(Instruction);}
|
||||
RetTy visitAtomicRMWInst(AtomicRMWInst &I) { DELEGATE(Instruction);}
|
||||
RetTy visitFenceInst(FenceInst &I) { DELEGATE(Instruction);}
|
||||
RetTy visitGetElementPtrInst(GetElementPtrInst &I){ DELEGATE(Instruction);}
|
||||
RetTy visitPHINode(PHINode &I) { DELEGATE(Instruction);}
|
||||
RetTy visitTruncInst(TruncInst &I) { DELEGATE(CastInst);}
|
||||
RetTy visitZExtInst(ZExtInst &I) { DELEGATE(CastInst);}
|
||||
RetTy visitSExtInst(SExtInst &I) { DELEGATE(CastInst);}
|
||||
RetTy visitFPTruncInst(FPTruncInst &I) { DELEGATE(CastInst);}
|
||||
RetTy visitFPExtInst(FPExtInst &I) { DELEGATE(CastInst);}
|
||||
RetTy visitFPToUIInst(FPToUIInst &I) { DELEGATE(CastInst);}
|
||||
RetTy visitFPToSIInst(FPToSIInst &I) { DELEGATE(CastInst);}
|
||||
RetTy visitUIToFPInst(UIToFPInst &I) { DELEGATE(CastInst);}
|
||||
RetTy visitSIToFPInst(SIToFPInst &I) { DELEGATE(CastInst);}
|
||||
RetTy visitPtrToIntInst(PtrToIntInst &I) { DELEGATE(CastInst);}
|
||||
RetTy visitIntToPtrInst(IntToPtrInst &I) { DELEGATE(CastInst);}
|
||||
RetTy visitBitCastInst(BitCastInst &I) { DELEGATE(CastInst);}
|
||||
RetTy visitSelectInst(SelectInst &I) { DELEGATE(Instruction);}
|
||||
RetTy visitCallInst(CallInst &I) { DELEGATE(Instruction);}
|
||||
RetTy visitVAArgInst(VAArgInst &I) { DELEGATE(UnaryInstruction);}
|
||||
RetTy visitExtractElementInst(ExtractElementInst &I) { DELEGATE(Instruction);}
|
||||
RetTy visitInsertElementInst(InsertElementInst &I) { DELEGATE(Instruction); }
|
||||
RetTy visitShuffleVectorInst(ShuffleVectorInst &I) { DELEGATE(Instruction); }
|
||||
RetTy visitExtractValueInst(ExtractValueInst &I) { DELEGATE(UnaryInstruction);}
|
||||
RetTy visitInsertValueInst(InsertValueInst &I) { DELEGATE(Instruction); }
|
||||
RetTy visitLandingPadInst(LandingPadInst &I) { DELEGATE(Instruction); }
|
||||
RetTy visitInsertElementInst(InsertElementInst &I) { DELEGATE(Instruction);}
|
||||
RetTy visitShuffleVectorInst(ShuffleVectorInst &I) { DELEGATE(Instruction);}
|
||||
RetTy visitExtractValueInst(ExtractValueInst &I){ DELEGATE(UnaryInstruction);}
|
||||
RetTy visitInsertValueInst(InsertValueInst &I) { DELEGATE(Instruction); }
|
||||
RetTy visitLandingPadInst(LandingPadInst &I) { DELEGATE(Instruction); }
|
||||
|
||||
// Next level propagators: If the user does not overload a specific
|
||||
// instruction type, they can overload one of these to get the whole class
|
||||
// of instructions...
|
||||
//
|
||||
RetTy visitCastInst(CastInst &I) { DELEGATE(UnaryInstruction); }
|
||||
RetTy visitTerminatorInst(TerminatorInst &I) { DELEGATE(Instruction); }
|
||||
RetTy visitUnaryInstruction(UnaryInstruction &I) { DELEGATE(Instruction); }
|
||||
RetTy visitBinaryOperator(BinaryOperator &I) { DELEGATE(Instruction); }
|
||||
RetTy visitCmpInst(CmpInst &I) { DELEGATE(Instruction); }
|
||||
RetTy visitCastInst(CastInst &I) { DELEGATE(UnaryInstruction);}
|
||||
RetTy visitBinaryOperator(BinaryOperator &I) { DELEGATE(Instruction);}
|
||||
RetTy visitCmpInst(CmpInst &I) { DELEGATE(Instruction);}
|
||||
RetTy visitTerminatorInst(TerminatorInst &I) { DELEGATE(Instruction);}
|
||||
RetTy visitUnaryInstruction(UnaryInstruction &I){ DELEGATE(Instruction);}
|
||||
|
||||
// If the user wants a 'default' case, they can choose to override this
|
||||
// function. If this function is not overloaded in the user's subclass, then
|
||||
|
Loading…
Reference in New Issue
Block a user