<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-08-19 9:15 GMT-07:00 Vikram TV <span dir="ltr"><<a href="mailto:vikram.tarikere@gmail.com" target="_blank">vikram.tarikere@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Wed, Aug 19, 2015 at 1:28 PM, Vikram TV <span dir="ltr"><<a href="mailto:vikram.tarikere@gmail.com" target="_blank">vikram.tarikere@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">tvvikram updated this revision to Diff 32512.<br>
tvvikram added a comment.<br>
<br>
Added an .mir test case under test/DebugInfo/MIR/<br>
<span><br>
<br>
<a href="http://reviews.llvm.org/D11933" rel="noreferrer" target="_blank">http://reviews.llvm.org/D11933</a><br>
<br>
Files:<br>
  include/llvm/CodeGen/Passes.h<br>
  include/llvm/InitializePasses.h<br>
  lib/CodeGen/CMakeLists.txt<br>
  lib/CodeGen/CodeGen.cpp<br>
  lib/CodeGen/ExtendDebugRangeLocation.cpp<br>
  lib/CodeGen/Passes.cpp<br>
</span>  test/DebugInfo/MIR/extend-debug-range.mir<br>
  test/DebugInfo/MIR/lit.local.cfg<br>
<div><div>  test/DebugInfo/X86/array.ll<br>
  test/DebugInfo/X86/fission-ranges.ll<br>
  test/DebugInfo/X86/pieces-3.ll<br>
  test/DebugInfo/X86/sret.ll<br>
  test/DebugInfo/extend-debug-range.ll<br>
  test/DebugInfo/redundant-dbg_val.ll<br>
<br>
</div></div></blockquote></div><br></div></div>I was able to write the MIR test case after your fix. I noticed one more error while parsing the MIR file generated by another test case - redundant-dbg_val.ll in the patch.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">error: redundant-dbg_val.mir:94:105: unexpected character '<'</div><div class="gmail_extra">    MOV32mr %rip, 1, _, @values, _, %edi, implicit killed %rdi, debug-location !26 :: (store 4 into %ir.<unserializable ir value>, align 16, !tbaa !27)</div><div><br></div><div>Thank you</div></div></div></blockquote><div><br></div><div>This happens because the machine memory operands reference unnamed LLVM IR values. Y<span style="line-height:normal">ou can remove the machine memory operands (everything after '::') for you tests for a quick workaround. </span></div><div><span style="line-height:normal">I will fix this problem today.</span><br></div><div>Thanks,</div><div>Alex</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div>Good time...</div><div>Vikram TV</div><div>CompilerTree Technologies</div><div>Mysore, Karnataka, INDIA</div></div></div></div></div>
</font></span></div></div>
</blockquote></div><br></div></div>