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? <div>

<br></div><div>Joe<br><br><div class="gmail_quote">On 14 August 2012 19:51, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com" target="_blank">eli.friedman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Tue, Aug 14, 2012 at 3:53 AM, Joseph Reddington <<a href="mailto:joseph@cs.rhul.ac.uk">joseph@cs.rhul.ac.uk</a>> wrote:<br>
> Hello everybody,<br>
><br>
> I've been following the guide at (<br>
> <a href="http://llvm.org/docs/WritingAnLLVMPass.html" target="_blank">http://llvm.org/docs/WritingAnLLVMPass.html</a> ) for Writing a llvm pass that<br>
> outputs Hello World. After a little bit of help from Stackoverflow, this is<br>
> now working fine and running.<br>
><br>
> My problem is that I'm struggling to get much further on from the hello<br>
> world example - I've not been able to find the write incantation to access<br>
> else of interest.  All I'm looking to be able to at the moment is examine<br>
> the SelectionDAG, and maybe print out the operations in the notes - can<br>
> someone point me in the direction of a code fragment that I can drop into<br>
> the hello world example that might let me achieve such a thing?<br>
<br>
</div>The SelectionDAG in particular is special; it's not accessible from<br>
other passes.<br>
<br>
-Eli<br>
<br>
<<<br>
<br>
Email has been scanned for viruses by Altman Technologies' email management service - <a href="http://www.altman.co.uk/emailsystems" target="_blank">www.altman.co.uk/emailsystems</a><br>
<br>
 >><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Dr Joseph Reddington<br>Computer Science, Royal Holloway<br><div>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. </div>

<br>
</div>