[PATCH] D11933: Extending debug ranges

Alex L via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 19 09:43:20 PDT 2015


2015-08-19 9:15 GMT-07:00 Vikram TV <vikram.tarikere at gmail.com>:

>
>
> On Wed, Aug 19, 2015 at 1:28 PM, Vikram TV <vikram.tarikere at gmail.com>
> wrote:
>
>> tvvikram updated this revision to Diff 32512.
>> tvvikram added a comment.
>>
>> Added an .mir test case under test/DebugInfo/MIR/
>>
>>
>> http://reviews.llvm.org/D11933
>>
>> Files:
>>   include/llvm/CodeGen/Passes.h
>>   include/llvm/InitializePasses.h
>>   lib/CodeGen/CMakeLists.txt
>>   lib/CodeGen/CodeGen.cpp
>>   lib/CodeGen/ExtendDebugRangeLocation.cpp
>>   lib/CodeGen/Passes.cpp
>>   test/DebugInfo/MIR/extend-debug-range.mir
>>   test/DebugInfo/MIR/lit.local.cfg
>>   test/DebugInfo/X86/array.ll
>>   test/DebugInfo/X86/fission-ranges.ll
>>   test/DebugInfo/X86/pieces-3.ll
>>   test/DebugInfo/X86/sret.ll
>>   test/DebugInfo/extend-debug-range.ll
>>   test/DebugInfo/redundant-dbg_val.ll
>>
>>
> 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.
>
> error: redundant-dbg_val.mir:94:105: unexpected character '<'
>     MOV32mr %rip, 1, _, @values, _, %edi, implicit killed %rdi,
> debug-location !26 :: (store 4 into %ir.<unserializable ir value>, align
> 16, !tbaa !27)
>
> Thank you
>

This happens because the machine memory operands reference unnamed LLVM IR
values. You can remove the machine memory operands (everything after '::')
for you tests for a quick workaround.
I will fix this problem today.
Thanks,
Alex


>
> --
>
> Good time...
> Vikram TV
> CompilerTree Technologies
> Mysore, Karnataka, INDIA
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150819/17737348/attachment.html>


More information about the llvm-commits mailing list