<div dir="ltr"><div><div><div>Hello Valentin, <br><br></div>To generate a mir test case i 
think the process is to first create an IR file by passing '-S 
-emit-llvm' to clang, then you can feed that file into llc and use 
stop-before to get the mir just before the if-converter pass, eg: `llc 
-stop-before=if-converter  -simplify-mir -o test.mir test.ll`. <br><br></div><div>Also there is a MIR language reference: <a href="https://llvm.org/docs/MIRLangRef.html">https://llvm.org/docs/MIRLangRef.html</a> which has some of the limitations documented, as well as tips for further simplifying the generated mir if need be.<br><br></div></div><div>Regards,<br></div>Sean<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 19, 2018 at 7:53 PM, Valentin Churavy via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</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">Hello,<div><br></div><div>I am trying to isolate an assertion failure in if-converter (on PPC) and I generated a textual debuglog with:</div><div><br></div><div>```</div><div>LLVM_ARGS=-print-before-all -print-module-scope -filter-print-funcs=japi1__<wbr>require_7687<br></div><div>```</div><div><br></div><div>and after splicing out the the MIR before the if-converter pass</div><div>I would like to run `llc -march=ppc64le -run-pass=if-converter input.mir` so that I can start minimising the MIR.</div><div><br></div><div>This steps fails for me with a:</div><div>```</div><div><div>error: YAML:188:20: Unrecognized character while tokenizing.</div><div>Function Live Ins: %x4</div><div>                   ^</div><div><br></div><div>error: YAML:188:1: Map value must not be empty</div><div>Function Live Ins: %x4</div><div>^~~~~~~~~~~~~~~~~</div></div><div>```</div><div><br></div><div>Should I expect this to work, or is some part of my workflow wrong?</div><div><br></div><div>I put the full log and just the extracted MIR file online:</div><div><a href="https://drive.google.com/open?id=1Br0s9Qvr4tzPv8nqbnV_nWezpEH5Ci7B" target="_blank">https://drive.google.com/open?<wbr>id=1Br0s9Qvr4tzPv8nqbnV_<wbr>nWezpEH5Ci7B</a> and would appreciate any guidance whether I should file this as a deserialiser bug.</div><div><br></div><div>Best,</div><div>Valentin</div><div><br></div><div><br></div></div>
<br>______________________________<wbr>_________________<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/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>