[LLVMdev] Moving on from Hello World

Joseph Reddington joseph at cs.rhul.ac.uk
Tue Aug 14 15:13:12 PDT 2012


Ah - thank you Eli for your reply :)  obviously that's a
little disappointing :(   So if I did want to insert some code into llvm
source on my machine (I'm building the debug version) that,
say, iterated over the SelectionDAG - where might be a good place to put
it?

Joe

On 14 August 2012 19:51, Eli Friedman <eli.friedman at gmail.com> wrote:

> 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
>
> <<
>
> Email has been scanned for viruses by Altman Technologies' email
> management service - www.altman.co.uk/emailsystems
>
>  >>
>



-- 
Dr Joseph Reddington
Computer Science, Royal Holloway
For 2012 I have a resolution to write all my email responses within
24-hours - no exceptions. If you've not had a response, there's been a
misunderstanding somewhere, and it's worth reminding me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120814/57ff9c53/attachment.html>


More information about the llvm-dev mailing list