<div dir="ltr">Can you use module->dump()?<div><br></div><div>Regards,</div><div><br></div><div>Xiangyang</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-03 19:14 GMT-05:00 charles quarra via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I want to dump an unfinished state of the whole IR of a module or<br>
function for debugging purposes.<br>
<br>
`llvm::WriteBitcodeToFile` does not suit my needs since it calls<br>
validations on the module that will be failed in general for an<br>
unfinished IR<br>
<br>
Even debugging with lldb, sometimes is very hard to detect why the<br>
same code generation works correctly in some cases, and in others the<br>
llvm will trigger an invalid cast assertion. Having a partial state of<br>
the IR for debugging would really, really help me out to reject<br>
possible issues<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br></div>