<div dir="ltr"><div>It will iterate over the instructions in the order that they are stored in the module/function/basicblock that they belong to. And that SHOULD, assuming llvm-dis does what it is expected to do, be the same order.<br><br>--<br></div>Mats<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 June 2015 at 18:10, Anirudh Sivaraman <span dir="ltr"><<a href="mailto:sk.anirudh@gmail.com" target="_blank">sk.anirudh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Does inst_iterator<br>
(<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_docs_ProgrammersManual.html-23iterating-2Dover-2Dthe-2Dinstruction-2Din-2Da-2Dfunction&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=VL8R6oIguBcmQEkcYIp1h5SWUjcgiojg6ojFowJ2p-s&s=eMMs5lXuvqH3WrZMGxBL5By-sXjWDaiFCy-1fm2SdR0&e=" rel="noreferrer" target="_blank">http://llvm.org/docs/ProgrammersManual.html#iterating-over-the-instruction-in-a-function</a>)<br>
guarantee that the iterated instructions are in program order: the<br>
order of instructions printed by llvm-dis?<br>
<br>
Thanks in advance,<br>
Anirudh<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" rel="noreferrer" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>