[LLVMdev] Understanding SelectionDAG construction

ankur deshwal a.s.deshwal at gmail.com
Mon Jun 6 01:54:41 PDT 2011


I am trying to understand the SelectionDAG construction from LLVM IR. I have
gone through the doc "The LLVM Target-Independent Code Generator" on LLVM
site. This gives a great initial overview. However I am unable to catch the
actual control flow for the llvm->selectionDag conversion.

The flags "-view-sched-dags".. described in the doc doesn't seem to work. (
"llc -help" doesn't list it ).

To understand the codeflow, I was trying to use gdb over llc. Where should I
put the breakpoints where I can see llvm->selectionDag conversion happening
e.g.  SDNode being generated out of llvm instructions.

Any pointer to detailed level doc will also help. Doxygen doesnt help till I
am a bit familiar with Codeflow.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110606/d3c3a614/attachment.html>


More information about the llvm-dev mailing list