[LLVMdev] Moving on from Hello World

Eli Friedman eli.friedman at gmail.com
Tue Aug 14 11:51:35 PDT 2012


On Tue, Aug 14, 2012 at 3:53 AM, Joseph Reddington <joseph at cs.rhul.ac.uk> wrote:
> Hello everybody,
>
> I've been following the guide at (
> http://llvm.org/docs/WritingAnLLVMPass.html ) for Writing a llvm pass that
> outputs Hello World. After a little bit of help from Stackoverflow, this is
> now working fine and running.
>
> My problem is that I'm struggling to get much further on from the hello
> world example - I've not been able to find the write incantation to access
> else of interest.  All I'm looking to be able to at the moment is examine
> the SelectionDAG, and maybe print out the operations in the notes - can
> someone point me in the direction of a code fragment that I can drop into
> the hello world example that might let me achieve such a thing?

The SelectionDAG in particular is special; it's not accessible from
other passes.

-Eli



More information about the llvm-dev mailing list