[LLVMdev] Switch instruction lowering

Wei-Ren Chen llvmdev.9755590 at .nctu.edu.tw
Mon Oct 27 03:39:26 PDT 2014


On Mon, Oct 27, 2014 at 10:54:12AM +0100, Paweł Bylica wrote:
> Hi,
> 
> I'm interested in any information about implementations of switch instruction
> and its runtime cost. If it's very target dependent, I'm mostly care about X86.
> Pointing some LLVM code is also good.

  `grep -r "switch instruction"` under directory llvm/lib shows a lot of stuff you
might have interest. Most of the code related to switch instructions are under 
subdirectories IR and Transformation/Utils.

HTH,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Homepage: http://people.cs.nctu.edu.tw/~chenwj




More information about the llvm-dev mailing list