llvm.org GIT mirror llvm / a87a75f
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... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153030 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 8 years ago
1 changed file(s) with 42 addition(s) and 42 deletion(s). Raw diff Collapse all Expand all
156156 // Specific Instruction type classes... note that all of the casts are
157157 // necessary because we use the instruction classes as opaque types...
158158 //
159 RetTy visitReturnInst(ReturnInst &I) { DELEGATE(TerminatorInst);}
160 RetTy visitBranchInst(BranchInst &I) { DELEGATE(TerminatorInst);}
161 RetTy visitSwitchInst(SwitchInst &I) { DELEGATE(TerminatorInst);}
162 RetTy visitIndirectBrInst(IndirectBrInst &I) { DELEGATE(TerminatorInst);}
163 RetTy visitInvokeInst(InvokeInst &I) { DELEGATE(TerminatorInst);}
164 RetTy visitResumeInst(ResumeInst &I) { DELEGATE(TerminatorInst);}
165 RetTy visitUnreachableInst(UnreachableInst &I) { DELEGATE(TerminatorInst);}
166 RetTy visitICmpInst(ICmpInst &I) { DELEGATE(CmpInst);}
167 RetTy visitFCmpInst(FCmpInst &I) { DELEGATE(CmpInst);}
168 RetTy visitAllocaInst(AllocaInst &I) { DELEGATE(UnaryInstruction); }
169 RetTy visitLoadInst(LoadInst &I) { DELEGATE(UnaryInstruction); }
170 RetTy visitStoreInst(StoreInst &I) { DELEGATE(Instruction); }
171 RetTy visitAtomicCmpXchgInst(AtomicCmpXchgInst &I){ DELEGATE(Instruction); }
172 RetTy visitAtomicRMWInst(AtomicRMWInst &I) { DELEGATE(Instruction); }
173 RetTy visitFenceInst(FenceInst &I) { DELEGATE(Instruction); }
174 RetTy visitGetElementPtrInst(GetElementPtrInst &I){ DELEGATE(Instruction); }
175 RetTy visitPHINode(PHINode &I) { DELEGATE(Instruction); }
176 RetTy visitTruncInst(TruncInst &I) { DELEGATE(CastInst); }
177 RetTy visitZExtInst(ZExtInst &I) { DELEGATE(CastInst); }
178 RetTy visitSExtInst(SExtInst &I) { DELEGATE(CastInst); }
179 RetTy visitFPTruncInst(FPTruncInst &I) { DELEGATE(CastInst); }
180 RetTy visitFPExtInst(FPExtInst &I) { DELEGATE(CastInst); }
181 RetTy visitFPToUIInst(FPToUIInst &I) { DELEGATE(CastInst); }
182 RetTy visitFPToSIInst(FPToSIInst &I) { DELEGATE(CastInst); }
183 RetTy visitUIToFPInst(UIToFPInst &I) { DELEGATE(CastInst); }
184 RetTy visitSIToFPInst(SIToFPInst &I) { DELEGATE(CastInst); }
185 RetTy visitPtrToIntInst(PtrToIntInst &I) { DELEGATE(CastInst); }
186 RetTy visitIntToPtrInst(IntToPtrInst &I) { DELEGATE(CastInst); }
187 RetTy visitBitCastInst(BitCastInst &I) { DELEGATE(CastInst); }
188 RetTy visitSelectInst(SelectInst &I) { DELEGATE(Instruction); }
189 RetTy visitCallInst(CallInst &I) { DELEGATE(Instruction); }
190 RetTy visitVAArgInst(VAArgInst &I) { DELEGATE(UnaryInstruction); }
159 RetTy visitReturnInst(ReturnInst &I) { DELEGATE(TerminatorInst);}
160 RetTy visitBranchInst(BranchInst &I) { DELEGATE(TerminatorInst);}
161 RetTy visitSwitchInst(SwitchInst &I) { DELEGATE(TerminatorInst);}
162 RetTy visitIndirectBrInst(IndirectBrInst &I) { DELEGATE(TerminatorInst);}
163 RetTy visitInvokeInst(InvokeInst &I) { DELEGATE(TerminatorInst);}
164 RetTy visitResumeInst(ResumeInst &I) { DELEGATE(TerminatorInst);}
165 RetTy visitUnreachableInst(UnreachableInst &I) { DELEGATE(TerminatorInst);}
166 RetTy visitICmpInst(ICmpInst &I) { DELEGATE(CmpInst);}
167 RetTy visitFCmpInst(FCmpInst &I) { DELEGATE(CmpInst);}
168 RetTy visitAllocaInst(AllocaInst &I) { DELEGATE(UnaryInstruction);}
169 RetTy visitLoadInst(LoadInst &I) { DELEGATE(UnaryInstruction);}
170 RetTy visitStoreInst(StoreInst &I) { DELEGATE(Instruction);}
171 RetTy visitAtomicCmpXchgInst(AtomicCmpXchgInst &I) { DELEGATE(Instruction);}
172 RetTy visitAtomicRMWInst(AtomicRMWInst &I) { DELEGATE(Instruction);}
173 RetTy visitFenceInst(FenceInst &I) { DELEGATE(Instruction);}
174 RetTy visitGetElementPtrInst(GetElementPtrInst &I){ DELEGATE(Instruction);}
175 RetTy visitPHINode(PHINode &I) { DELEGATE(Instruction);}
176 RetTy visitTruncInst(TruncInst &I) { DELEGATE(CastInst);}
177 RetTy visitZExtInst(ZExtInst &I) { DELEGATE(CastInst);}
178 RetTy visitSExtInst(SExtInst &I) { DELEGATE(CastInst);}
179 RetTy visitFPTruncInst(FPTruncInst &I) { DELEGATE(CastInst);}
180 RetTy visitFPExtInst(FPExtInst &I) { DELEGATE(CastInst);}
181 RetTy visitFPToUIInst(FPToUIInst &I) { DELEGATE(CastInst);}
182 RetTy visitFPToSIInst(FPToSIInst &I) { DELEGATE(CastInst);}
183 RetTy visitUIToFPInst(UIToFPInst &I) { DELEGATE(CastInst);}
184 RetTy visitSIToFPInst(SIToFPInst &I) { DELEGATE(CastInst);}
185 RetTy visitPtrToIntInst(PtrToIntInst &I) { DELEGATE(CastInst);}
186 RetTy visitIntToPtrInst(IntToPtrInst &I) { DELEGATE(CastInst);}
187 RetTy visitBitCastInst(BitCastInst &I) { DELEGATE(CastInst);}
188 RetTy visitSelectInst(SelectInst &I) { DELEGATE(Instruction);}
189 RetTy visitCallInst(CallInst &I) { DELEGATE(Instruction);}
190 RetTy visitVAArgInst(VAArgInst &I) { DELEGATE(UnaryInstruction);}
191191 RetTy visitExtractElementInst(ExtractElementInst &I) { DELEGATE(Instruction);}
192 RetTy visitInsertElementInst(InsertElementInst &I) { DELEGATE(Instruction); }
193 RetTy visitShuffleVectorInst(ShuffleVectorInst &I) { DELEGATE(Instruction); }
194 RetTy visitExtractValueInst(ExtractValueInst &I) { DELEGATE(UnaryInstruction);}
195 RetTy visitInsertValueInst(InsertValueInst &I) { DELEGATE(Instruction); }
196 RetTy visitLandingPadInst(LandingPadInst &I) { DELEGATE(Instruction); }
192 RetTy visitInsertElementInst(InsertElementInst &I) { DELEGATE(Instruction);}
193 RetTy visitShuffleVectorInst(ShuffleVectorInst &I) { DELEGATE(Instruction);}
194 RetTy visitExtractValueInst(ExtractValueInst &I){ DELEGATE(UnaryInstruction);}
195 RetTy visitInsertValueInst(InsertValueInst &I) { DELEGATE(Instruction); }
196 RetTy visitLandingPadInst(LandingPadInst &I) { DELEGATE(Instruction); }
197197
198198 // Next level propagators: If the user does not overload a specific
199199 // instruction type, they can overload one of these to get the whole class
200200 // of instructions...
201201 //
202 RetTy visitCastInst(CastInst &I) { DELEGATE(UnaryInstruction); }
203 RetTy visitTerminatorInst(TerminatorInst &I) { DELEGATE(Instruction); }
204 RetTy visitUnaryInstruction(UnaryInstruction &I) { DELEGATE(Instruction); }
205 RetTy visitBinaryOperator(BinaryOperator &I) { DELEGATE(Instruction); }
206 RetTy visitCmpInst(CmpInst &I) { DELEGATE(Instruction); }
202 RetTy visitCastInst(CastInst &I) { DELEGATE(UnaryInstruction);}
203 RetTy visitBinaryOperator(BinaryOperator &I) { DELEGATE(Instruction);}
204 RetTy visitCmpInst(CmpInst &I) { DELEGATE(Instruction);}
205 RetTy visitTerminatorInst(TerminatorInst &I) { DELEGATE(Instruction);}
206 RetTy visitUnaryInstruction(UnaryInstruction &I){ DELEGATE(Instruction);}
207207
208208 // If the user wants a 'default' case, they can choose to override this
209209 // function. If this function is not overloaded in the user's subclass, then