[LLVMdev] SwitchInst handling in backend

Eli Friedman eli.friedman at gmail.com
Mon Feb 27 13:03:13 PST 2012


On Mon, Feb 27, 2012 at 12:52 PM, Nico <listiges at arcor.de> wrote:
> Hi,
>
> if I want to know how switch instructions are handled in the backend, where do I have to look first?
> I'm not familiar with the backend framework and I couldn't figure out the interface between the LLVM instruction 'SwitchInst' and whatever there is in the backend.
>
> I would be very happy about every hint where I have to look to find the entry point of switch instructions in the backend (in particular in the MIPS backend.

SelectionDAGBuilder::visitSwitch is the general switch lowering...

-Eli



More information about the llvm-dev mailing list