<div dir="ltr"><div><div>Hello Mr. Tim,<br><br></div>Thanks to you and others from 'llvmdev-list', I have successfully implemented the MachineFunctionPass. But when I examine the output using 'hexedit' I see that only some portion of the .text section is effected by my pass. I was expecting the pass to modify large portion of the .text section. Kindly tell me if a MachineFunctionPass runs only on some selected portions of the .text section. Is there a way to make it run on larger portion of the .text section? <br></div>The skeleton of my code is:<br><br><i>bool MyPass::runOnMachineFunction(MachineFunction &FNC)<br><br>for (MachineFunction::iterator MFN = FNC.begin(), End = FNC.end(); MFN != End; ++MFN) <br><br>    for (MachineBasicBlock::iterator I = MFN->begin(); I != MFN->end(); ) <br>    { <br>        MachineBasicBlock::iterator NewI = std::next(I);<br>        </i><b>Do the Stuff</b><i><br>        I = NewI;<br>    } </i><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 8, 2014 at 12:24 PM, sachin arora <span dir="ltr"><<a href="mailto:sachin345678@gmail.com" target="_blank">sachin345678@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 dir="ltr">Awesome. Thanks a lot :)<br></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Wed, Oct 8, 2014 at 12:23 PM, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 8 October 2014 10:18, sachin arora <<a href="mailto:sachin345678@gmail.com" target="_blank">sachin345678@gmail.com</a>> wrote:<br>
> Thank you Mr. Tim. I was wondering if you can tell me in which file 'get()'<br>
> is defined. I am having trouble using this function. For example if I write<br>
> 'get(AArch64::LDRXui)' then there is an error generated which says: use of<br>
> undeclared identifier 'get'.<br>
<br>
</span>It's defined in the MCInstrInfo class, usually accessed via a<br>
TargetInstrInfo instance (so you often see "TII.get(Whatever)" if it's<br>
used outside a TargetInstrInfo subclass).<br>
<br>
Cheers.<br>
<span><font color="#888888"><br>
Tim.<br>
</font></span></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr">Regards,<div>Sachin</div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Regards,<div>Sachin</div></div>
</div>