[llvm-commits] [llvm] r92793 - in /llvm/trunk: lib/AsmParser/LLParser.cpp lib/AsmParser/LLParser.h test/Assembler/functionlocal-metadata.ll
Victor Hernandez
vhernandez at apple.com
Tue Jan 5 17:11:55 PST 2010
Sorry, I did not know that it was dead. Which llvm.dbg intrinsics are dead, and when are they getting removed?
Victor
On Jan 5, 2010, at 4:57 PM, Devang Patel wrote:
>
> On Jan 5, 2010, at 2:22 PM, Victor Hernandez wrote:
>
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> ======================================================================
>> --- llvm/trunk/test/Assembler/functionlocal-metadata.ll (added)
>> +++ llvm/trunk/test/Assembler/functionlocal-metadata.ll Tue Jan 5 16:22:14 2010
>> @@ -0,0 +1,22 @@
>> +; RUN: llvm-as < %s | llvm-dis | grep {ret void, !foo !0, !bar !1}
>> +
>> +define void @Foo(i32 %a, i32 %b) {
>> +entry:
>> + %0 = add i32 %a, 1 ; <i32> [#uses=1]
>> + %two = add i32 %b, 2 ; <i32> [#uses=2]
>> +
>> + call void @llvm.dbg.func.start(metadata !{i32 %0})
>> + call void @llvm.dbg.func.start(metadata !{i32 %b, i32 %0})
>> + call void @llvm.dbg.func.start(metadata !{i32 %a, metadata !"foo"})
>> + call void @llvm.dbg.func.start(metadata !{metadata !0, i32 %two})
>> +
>> + ret void, !foo !0, !bar !1
>> +}
>> +
>> +!0 = metadata !{i32 662302, i32 26, metadata !1, null}
>> +!1 = metadata !{i32 4, metadata !"foo"}
>> +
>> +declare void @llvm.dbg.func.start(metadata) nounwind readnone
>> +
>> +!foo = !{ !0 }
>> +!bar = !{ !1 }
>>
>
> Pl. avoid using dead intrinsic (llvm.dbg.func.start) in new test cases.
> -
> Devang
More information about the llvm-commits
mailing list