<div dir="ltr"><br><div>Seems like "-mllvm -print-after-all" does the trick. Is there any switch that dumps the output to a file instead of console?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 21 October 2017 at 21:33, Dipanjan Das <span dir="ltr"><<a href="mailto:mail.dipanjan.das@gmail.com" target="_blank">mail.dipanjan.das@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"><div><br></div><div>My pass complains and gives up after spitting out:</div><div><br></div><div>==============================<wbr>========</div><div><div>Instruction does not dominate all uses!</div><div> %44 = icmp ne i8** %endptr, null </div><div> br i1 %44, label %32, label %33 </div><div>Instruction has bogus parent pointer! </div></div><div>==============================<wbr>========<br></div><div><br></div>Is there any way to dump the entire IR even in broken form from the backend so that I can inspect what's going on?<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div class="m_-1771331634886378804gmail_signature"><div dir="ltr"><span><div><div dir="ltr"><p>Thanks & Regards,</p>
<div>Dipanjan</div></div></div></span></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span><div><div dir="ltr"><p>Thanks & Regards,</p>
<div>Dipanjan</div></div></div></span></div></div>
</div>