mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
DebugInfo: Add missing !dbg attachments to intrinsics
Add missing `!dbg` attachments to `@llvm.dbg.*` intrinsics. I updated these using a script (add-dbg-to-intrinsics.sh) that I'll attach to PR22778 for posterity. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235040 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
57593ad56d
commit
666ef776b3
@ -13,7 +13,7 @@ target triple = "x86_64-apple-darwin10.2"
|
||||
define i32 @main() nounwind readonly {
|
||||
%diff1 = alloca i64 ; <i64*> [#uses=2]
|
||||
; CHECK: call void @llvm.dbg.value(metadata i64 72,
|
||||
call void @llvm.dbg.declare(metadata i64* %diff1, metadata !0, metadata !MDExpression())
|
||||
call void @llvm.dbg.declare(metadata i64* %diff1, metadata !0, metadata !MDExpression()), !dbg !MDLocation(scope: !1)
|
||||
store i64 72, i64* %diff1, align 8
|
||||
%v1 = load %struct.test*, %struct.test** @TestArrayPtr, align 8 ; <%struct.test*> [#uses=1]
|
||||
%v2 = ptrtoint %struct.test* %v1 to i64 ; <i64> [#uses=1]
|
||||
|
@ -9,7 +9,7 @@ entry:
|
||||
br label %do.body, !dbg !0
|
||||
|
||||
do.body: ; preds = %entry
|
||||
call void @llvm.dbg.declare(metadata i32* %count_, metadata !4, metadata !MDExpression())
|
||||
call void @llvm.dbg.declare(metadata i32* %count_, metadata !4, metadata !MDExpression()), !dbg !MDLocation(scope: !5)
|
||||
%conv = ptrtoint i32* %count_ to i32, !dbg !0 ; <i32> [#uses=1]
|
||||
%call = call i32 @foo(i32 %conv) ssp, !dbg !0 ; <i32> [#uses=0]
|
||||
br label %do.end, !dbg !0
|
||||
|
@ -5,7 +5,7 @@ target triple = "armv4t-apple-darwin10"
|
||||
|
||||
define hidden i32 @__addvsi3(i32 %a, i32 %b) nounwind {
|
||||
entry:
|
||||
tail call void @llvm.dbg.value(metadata i32 %b, i64 0, metadata !0, metadata !MDExpression())
|
||||
tail call void @llvm.dbg.value(metadata i32 %b, i64 0, metadata !0, metadata !MDExpression()), !dbg !MDLocation(scope: !1)
|
||||
%0 = add nsw i32 %b, %a, !dbg !9 ; <i32> [#uses=1]
|
||||
ret i32 %0, !dbg !11
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
%0 = type { i32, i32 }
|
||||
|
||||
define void @t(%0*, i32, i32, i32, i32) nounwind {
|
||||
tail call void @llvm.dbg.value(metadata %0* %0, i64 0, metadata !0, metadata !MDExpression())
|
||||
tail call void @llvm.dbg.value(metadata %0* %0, i64 0, metadata !0, metadata !MDExpression()), !dbg !MDLocation(scope: !MDSubprogram())
|
||||
unreachable
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@ entry:
|
||||
br label %do.body, !dbg !0
|
||||
|
||||
do.body: ; preds = %entry
|
||||
call void @llvm.dbg.declare(metadata i32* %count_, metadata !4, metadata !MDExpression())
|
||||
call void @llvm.dbg.declare(metadata i32* %count_, metadata !4, metadata !MDExpression()), !dbg !MDLocation(scope: !5)
|
||||
%conv = ptrtoint i32* %count_ to i32, !dbg !0 ; <i32> [#uses=1]
|
||||
%call = call i32 @foo(i32 %conv) ssp, !dbg !0 ; <i32> [#uses=0]
|
||||
br label %do.end, !dbg !0
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
define i32 @"main(tart.core.String[])->int32"(i32 %args) {
|
||||
entry:
|
||||
tail call void @llvm.dbg.value(metadata %tart.reflect.ComplexType* @.type.SwitchStmtTest, i64 0, metadata !8, metadata !MDExpression())
|
||||
tail call void @llvm.dbg.value(metadata %tart.reflect.ComplexType* @.type.SwitchStmtTest, i64 0, metadata !8, metadata !MDExpression()), !dbg !MDLocation(scope: !9)
|
||||
tail call void @"tart.reflect.ComplexType.create->tart.core.Object"(%tart.reflect.ComplexType* @.type.SwitchStmtTest) ; <%tart.core.Object*> [#uses=2]
|
||||
ret i32 3
|
||||
}
|
||||
|
@ -10,10 +10,10 @@
|
||||
|
||||
define hidden %0 @__divsc3(float %a, float %b, float %c, float %d) nounwind readnone {
|
||||
entry:
|
||||
tail call void @llvm.dbg.value(metadata float %a, i64 0, metadata !0, metadata !MDExpression())
|
||||
tail call void @llvm.dbg.value(metadata float %b, i64 0, metadata !11, metadata !MDExpression())
|
||||
tail call void @llvm.dbg.value(metadata float %c, i64 0, metadata !12, metadata !MDExpression())
|
||||
tail call void @llvm.dbg.value(metadata float %d, i64 0, metadata !13, metadata !MDExpression())
|
||||
tail call void @llvm.dbg.value(metadata float %a, i64 0, metadata !0, metadata !MDExpression()), !dbg !MDLocation(scope: !1)
|
||||
tail call void @llvm.dbg.value(metadata float %b, i64 0, metadata !11, metadata !MDExpression()), !dbg !MDLocation(scope: !1)
|
||||
tail call void @llvm.dbg.value(metadata float %c, i64 0, metadata !12, metadata !MDExpression()), !dbg !MDLocation(scope: !1)
|
||||
tail call void @llvm.dbg.value(metadata float %d, i64 0, metadata !13, metadata !MDExpression()), !dbg !MDLocation(scope: !1)
|
||||
%0 = tail call float @fabsf(float %c) nounwind readnone, !dbg !19 ; <float> [#uses=1]
|
||||
%1 = tail call float @fabsf(float %d) nounwind readnone, !dbg !19 ; <float> [#uses=1]
|
||||
%2 = fcmp olt float %0, %1, !dbg !19 ; <i1> [#uses=1]
|
||||
|
@ -9,7 +9,7 @@ target triple = "x86_64-apple-darwin10"
|
||||
|
||||
define i8* @bar(%struct.a* %myvar) nounwind optsize noinline ssp {
|
||||
entry:
|
||||
tail call void @llvm.dbg.value(metadata %struct.a* %myvar, i64 0, metadata !8, metadata !MDExpression())
|
||||
tail call void @llvm.dbg.value(metadata %struct.a* %myvar, i64 0, metadata !8, metadata !MDExpression()), !dbg !MDLocation(scope: !9)
|
||||
%0 = getelementptr inbounds %struct.a, %struct.a* %myvar, i64 0, i32 0, !dbg !28 ; <i32*> [#uses=1]
|
||||
%1 = load i32, i32* %0, align 8, !dbg !28 ; <i32> [#uses=1]
|
||||
tail call void @foo(i32 %1) nounwind optsize noinline ssp, !dbg !28
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
define i32 @foo(i32 %y) nounwind optsize ssp {
|
||||
entry:
|
||||
tail call void @llvm.dbg.value(metadata i32 %y, i64 0, metadata !0, metadata !MDExpression())
|
||||
tail call void @llvm.dbg.value(metadata i32 %y, i64 0, metadata !0, metadata !MDExpression()), !dbg !MDLocation(scope: !1)
|
||||
%0 = tail call i32 (...)* @zoo(i32 %y) nounwind, !dbg !9 ; <i32> [#uses=1]
|
||||
ret i32 %0, !dbg !9
|
||||
}
|
||||
@ -15,8 +15,8 @@ declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnon
|
||||
|
||||
define i32 @bar(i32 %x) nounwind optsize ssp {
|
||||
entry:
|
||||
tail call void @llvm.dbg.value(metadata i32 %x, i64 0, metadata !7, metadata !MDExpression())
|
||||
tail call void @llvm.dbg.value(metadata i32 1, i64 0, metadata !0, metadata !MDExpression()) nounwind
|
||||
tail call void @llvm.dbg.value(metadata i32 %x, i64 0, metadata !7, metadata !MDExpression()), !dbg !MDLocation(scope: !8)
|
||||
tail call void @llvm.dbg.value(metadata i32 1, i64 0, metadata !0, metadata !MDExpression()) nounwind, !dbg !MDLocation(scope: !1)
|
||||
%0 = tail call i32 (...)* @zoo(i32 1) nounwind, !dbg !12 ; <i32> [#uses=1]
|
||||
%1 = add nsw i32 %0, %x, !dbg !13 ; <i32> [#uses=1]
|
||||
ret i32 %1, !dbg !13
|
||||
|
@ -10,8 +10,8 @@ target triple = "x86_64-apple-darwin10.2"
|
||||
define i32 @_ZN3foo3bazEi(%struct.foo* nocapture %this, i32 %x) nounwind readnone optsize noinline ssp align 2 {
|
||||
;CHECK: DEBUG_VALUE: baz:this <- RDI{{$}}
|
||||
entry:
|
||||
tail call void @llvm.dbg.value(metadata %struct.foo* %this, i64 0, metadata !15, metadata !MDExpression())
|
||||
tail call void @llvm.dbg.value(metadata i32 %x, i64 0, metadata !16, metadata !MDExpression())
|
||||
tail call void @llvm.dbg.value(metadata %struct.foo* %this, i64 0, metadata !15, metadata !MDExpression()), !dbg !MDLocation(scope: !8)
|
||||
tail call void @llvm.dbg.value(metadata i32 %x, i64 0, metadata !16, metadata !MDExpression()), !dbg !MDLocation(scope: !8)
|
||||
%0 = mul nsw i32 %x, 7, !dbg !29 ; <i32> [#uses=1]
|
||||
%1 = add nsw i32 %0, 1, !dbg !29 ; <i32> [#uses=1]
|
||||
ret i32 %1, !dbg !29
|
||||
|
@ -16,7 +16,7 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone
|
||||
|
||||
define signext i16 @subdivp(%struct.node.0.27* nocapture %p, double %dsq, double %tolsq, %struct.hgstruct.2.29* nocapture byval align 8 %hg) nounwind uwtable readonly ssp {
|
||||
entry:
|
||||
call void @llvm.dbg.declare(metadata %struct.hgstruct.2.29* %hg, metadata !4, metadata !MDExpression())
|
||||
call void @llvm.dbg.declare(metadata %struct.hgstruct.2.29* %hg, metadata !4, metadata !MDExpression()), !dbg !MDLocation(scope: !14)
|
||||
%type = getelementptr inbounds %struct.node.0.27, %struct.node.0.27* %p, i64 0, i32 0
|
||||
%0 = load i16, i16* %type, align 2
|
||||
%cmp = icmp eq i16 %0, 1
|
||||
|
@ -43,7 +43,7 @@ if.then3344:
|
||||
br label %if.then4073
|
||||
|
||||
if.then4073: ; preds = %if.then3344
|
||||
call void @llvm.dbg.declare(metadata [20 x i8]* %num14075, metadata !4, metadata !MDExpression())
|
||||
call void @llvm.dbg.declare(metadata [20 x i8]* %num14075, metadata !4, metadata !MDExpression()), !dbg !MDLocation(scope: !5)
|
||||
%arraydecay4078 = getelementptr inbounds [20 x i8], [20 x i8]* %num14075, i64 0, i64 0
|
||||
%0 = load i32, i32* undef, align 4
|
||||
%add4093 = add nsw i32 %0, 0
|
||||
@ -108,7 +108,7 @@ cond.true: ; preds = %entry
|
||||
unreachable
|
||||
|
||||
cond.end: ; preds = %entry
|
||||
call void @llvm.dbg.declare(metadata %"class.__gnu_cxx::hash_map"* %X, metadata !31, metadata !MDExpression())
|
||||
call void @llvm.dbg.declare(metadata %"class.__gnu_cxx::hash_map"* %X, metadata !31, metadata !MDExpression()), !dbg !MDLocation(scope: !37)
|
||||
%_M_num_elements.i.i.i.i = getelementptr inbounds %"class.__gnu_cxx::hash_map", %"class.__gnu_cxx::hash_map"* %X, i64 0, i32 0, i32 5
|
||||
invoke void @_Znwm()
|
||||
to label %exit.i unwind label %lpad2.i.i.i.i
|
||||
|
@ -20,7 +20,7 @@ if.then: ; preds = %entry
|
||||
unreachable
|
||||
|
||||
if.end: ; preds = %entry
|
||||
call void @llvm.dbg.declare(metadata %struct.btCompoundLeafCallback* %callback, metadata !3, metadata !MDExpression())
|
||||
call void @llvm.dbg.declare(metadata %struct.btCompoundLeafCallback* %callback, metadata !3, metadata !MDExpression()), !dbg !MDLocation(scope: !2)
|
||||
%m = getelementptr inbounds %struct.btCompoundLeafCallback, %struct.btCompoundLeafCallback* %callback, i64 0, i32 1
|
||||
store i32 0, i32* undef, align 8
|
||||
%cmp12447 = icmp sgt i32 undef, 0
|
||||
|
@ -17,7 +17,7 @@ entry:
|
||||
for.body:
|
||||
call void @llvm.lifetime.end(i64 -1, i8* %0) nounwind
|
||||
call void @llvm.lifetime.start(i64 -1, i8* %x.i) nounwind
|
||||
call void @llvm.dbg.declare(metadata i8* %x.i, metadata !22, metadata !MDExpression()) nounwind
|
||||
call void @llvm.dbg.declare(metadata i8* %x.i, metadata !22, metadata !MDExpression()) nounwind, !dbg !MDLocation(scope: !2)
|
||||
br label %for.body
|
||||
}
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
||||
define zeroext i1 @_ZN3Foo3batEv(%struct.Foo* %this) #0 align 2 {
|
||||
entry:
|
||||
%0 = load %struct.Foo*, %struct.Foo** @pfoo, align 8
|
||||
tail call void @llvm.dbg.value(metadata %struct.Foo* %0, i64 0, metadata !62, metadata !MDExpression())
|
||||
tail call void @llvm.dbg.value(metadata %struct.Foo* %0, i64 0, metadata !62, metadata !MDExpression()), !dbg !MDLocation(scope: !MDSubprogram())
|
||||
%cmp.i = icmp eq %struct.Foo* %0, %this
|
||||
ret i1 %cmp.i
|
||||
}
|
||||
@ -53,7 +53,7 @@ entry:
|
||||
define void @_Z3bazv() #1 {
|
||||
entry:
|
||||
%0 = load %struct.Wibble*, %struct.Wibble** @wibble1, align 8
|
||||
tail call void @llvm.dbg.value(metadata %struct.Flibble* undef, i64 0, metadata !65, metadata !MDExpression())
|
||||
tail call void @llvm.dbg.value(metadata %struct.Flibble* undef, i64 0, metadata !65, metadata !MDExpression()), !dbg !MDLocation(scope: !MDSubprogram())
|
||||
%1 = load %struct.Wibble*, %struct.Wibble** @wibble2, align 8
|
||||
%cmp.i = icmp ugt %struct.Wibble* %1, %0
|
||||
br i1 %cmp.i, label %if.then.i, label %_ZN7Flibble3barEP6Wibble.exit
|
||||
|
@ -32,7 +32,7 @@ sw.bb735: ; preds = %if.end511
|
||||
unreachable
|
||||
|
||||
if.end41.i2210: ; preds = %if.end511
|
||||
call void @llvm.dbg.value(metadata x86_fp80 %src.sroa.0.0.src.sroa.0.0.2280, i64 0, metadata !20, metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata x86_fp80 %src.sroa.0.0.src.sroa.0.0.2280, i64 0, metadata !20, metadata !MDExpression()), !dbg !MDLocation(scope: !4)
|
||||
unreachable
|
||||
|
||||
sw.bb992: ; preds = %if.end511
|
||||
|
@ -47,12 +47,12 @@ define void @test_with_debug() {
|
||||
entry:
|
||||
%c = alloca %class.C, align 1
|
||||
%0 = load i8, i8* @argc, align 1
|
||||
tail call void @llvm.dbg.value(metadata i8 %0, i64 0, metadata !19, metadata !29)
|
||||
tail call void @llvm.dbg.value(metadata i8 %0, i64 0, metadata !19, metadata !29), !dbg !MDLocation(scope: !13)
|
||||
%conv = sext i8 %0 to i32
|
||||
tail call void @llvm.dbg.value(metadata %class.C* %c, i64 0, metadata !18, metadata !29)
|
||||
tail call void @llvm.dbg.value(metadata %class.C* %c, i64 0, metadata !18, metadata !29), !dbg !MDLocation(scope: !13)
|
||||
%call = call i32 (%class.C*, i8, i8, i8, ...)* @test_function(%class.C* %c, i8 signext 0, i8 signext %0, i8 signext 0, i32 %conv)
|
||||
%1 = load i8, i8* @argc, align 1
|
||||
call void @llvm.dbg.value(metadata %class.C* %c, i64 0, metadata !18, metadata !29)
|
||||
call void @llvm.dbg.value(metadata %class.C* %c, i64 0, metadata !18, metadata !29), !dbg !MDLocation(scope: !13)
|
||||
%call2 = call i32 (%class.C*, i8, i8, i8, ...)* @test_function(%class.C* %c, i8 signext 0, i8 signext %1, i8 signext 0, i32 %conv)
|
||||
ret void
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone
|
||||
|
||||
define void @foo() {
|
||||
entry:
|
||||
call void @llvm.dbg.declare(metadata i32* undef, metadata !0, metadata !MDExpression())
|
||||
call void @llvm.dbg.declare(metadata i32* undef, metadata !0, metadata !MDExpression()), !dbg !MDLocation(scope: !1)
|
||||
ret void
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
define void @Foo(i32 %a, i32 %b) {
|
||||
entry:
|
||||
call void @llvm.dbg.declare(metadata i32* null, metadata !1, metadata !MDExpression())
|
||||
call void @llvm.dbg.declare(metadata i32* null, metadata !1, metadata !MDExpression()), !dbg !MDLocation(scope: !6)
|
||||
ret void
|
||||
}
|
||||
!llvm.dbg.cu = !{!2}
|
||||
|
@ -25,10 +25,10 @@ entry:
|
||||
%a12 = load i64, i64* %a11, align 4, !dbg !7 ; <i64> [#uses=1]
|
||||
call void @llvm.dbg.declare(metadata i64* %data_addr.i17, metadata !8, metadata !MDExpression()) nounwind, !dbg !14
|
||||
store i64 %a12, i64* %data_addr.i17, align 8
|
||||
call void @llvm.dbg.value(metadata !6, i64 0, metadata !15, metadata !MDExpression()) nounwind
|
||||
call void @llvm.dbg.value(metadata i32 0, i64 0, metadata !19, metadata !MDExpression()) nounwind
|
||||
call void @llvm.dbg.declare(metadata !6, metadata !23, metadata !MDExpression()) nounwind
|
||||
call void @llvm.dbg.value(metadata i64* %data_addr.i17, i64 0, metadata !34, metadata !MDExpression()) nounwind
|
||||
call void @llvm.dbg.value(metadata !6, i64 0, metadata !15, metadata !MDExpression()) nounwind, !dbg !MDLocation(scope: !16)
|
||||
call void @llvm.dbg.value(metadata i32 0, i64 0, metadata !19, metadata !MDExpression()) nounwind, !dbg !MDLocation(scope: !16)
|
||||
call void @llvm.dbg.declare(metadata !6, metadata !23, metadata !MDExpression()) nounwind, !dbg !MDLocation(scope: !24)
|
||||
call void @llvm.dbg.value(metadata i64* %data_addr.i17, i64 0, metadata !34, metadata !MDExpression()) nounwind, !dbg !MDLocation(scope: !24)
|
||||
%a13 = load volatile i64, i64* %data_addr.i17, align 8 ; <i64> [#uses=1]
|
||||
%a14 = call i64 @llvm.bswap.i64(i64 %a13) nounwind ; <i64> [#uses=2]
|
||||
%a15 = add i64 %a10, %a14, !dbg !7 ; <i64> [#uses=1]
|
||||
|
@ -53,7 +53,7 @@ entry:
|
||||
%19 = inttoptr i64 %18 to i8*
|
||||
%20 = load i8, i8* %19
|
||||
%21 = icmp ne i8 %20, 0
|
||||
call void @llvm.dbg.declare(metadata i32* %3, metadata !23, metadata !28)
|
||||
call void @llvm.dbg.declare(metadata i32* %3, metadata !23, metadata !28), !dbg !MDLocation(scope: !4)
|
||||
br i1 %21, label %22, label %28
|
||||
|
||||
; <label>:22 ; preds = %entry
|
||||
|
@ -77,7 +77,7 @@ entry:
|
||||
%21 = inttoptr i64 %20 to i8*
|
||||
%22 = load i8, i8* %21
|
||||
%23 = icmp ne i8 %22, 0
|
||||
call void @llvm.dbg.declare(metadata i32* %8, metadata !12, metadata !14)
|
||||
call void @llvm.dbg.declare(metadata i32* %8, metadata !12, metadata !14), !dbg !MDLocation(scope: !4)
|
||||
br i1 %23, label %24, label %30
|
||||
|
||||
; <label>:24 ; preds = %5
|
||||
|
@ -13,7 +13,7 @@ entry:
|
||||
bb: ; preds = %entry
|
||||
%tmp = icmp eq i32 undef, 0
|
||||
%tmp1 = add i32 0, 11
|
||||
call void @llvm.dbg.value(metadata i32 %tmp1, i64 0, metadata !0, metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i32 %tmp1, i64 0, metadata !0, metadata !MDExpression()), !dbg !MDLocation(scope: !1)
|
||||
br i1 undef, label %bb18, label %bb31.preheader
|
||||
|
||||
bb31.preheader: ; preds = %bb19, %bb
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
define i16 @f(i16 signext %zzz) nounwind {
|
||||
entry:
|
||||
call void @llvm.dbg.value(metadata i16 %zzz, i64 0, metadata !0, metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i16 %zzz, i64 0, metadata !0, metadata !MDExpression()), !dbg !MDLocation(scope: !1)
|
||||
%conv = sext i16 %zzz to i32, !dbg !7
|
||||
%conv1 = trunc i32 %conv to i16
|
||||
ret i16 %conv1
|
||||
|
@ -4,10 +4,10 @@
|
||||
|
||||
define i8* @vfs_addname(i8* %name, i32 %len, i32 %hash, i32 %flags) nounwind ssp {
|
||||
entry:
|
||||
call void @llvm.dbg.value(metadata i8* %name, i64 0, metadata !0, metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i32 %len, i64 0, metadata !10, metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i32 %hash, i64 0, metadata !11, metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i32 %flags, i64 0, metadata !12, metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i8* %name, i64 0, metadata !0, metadata !MDExpression()), !dbg !MDLocation(scope: !1)
|
||||
call void @llvm.dbg.value(metadata i32 %len, i64 0, metadata !10, metadata !MDExpression()), !dbg !MDLocation(scope: !1)
|
||||
call void @llvm.dbg.value(metadata i32 %hash, i64 0, metadata !11, metadata !MDExpression()), !dbg !MDLocation(scope: !1)
|
||||
call void @llvm.dbg.value(metadata i32 %flags, i64 0, metadata !12, metadata !MDExpression()), !dbg !MDLocation(scope: !1)
|
||||
; CHECK: call fastcc i8* @add_name_internal(i8* %name, i32 %hash) [[NUW:#[0-9]+]], !dbg !{{[0-9]+}}
|
||||
%0 = call fastcc i8* @add_name_internal(i8* %name, i32 %len, i32 %hash, i8 zeroext 0, i32 %flags) nounwind, !dbg !13 ; <i8*> [#uses=1]
|
||||
ret i8* %0, !dbg !13
|
||||
@ -17,11 +17,11 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone
|
||||
|
||||
define internal fastcc i8* @add_name_internal(i8* %name, i32 %len, i32 %hash, i8 zeroext %extra, i32 %flags) noinline nounwind ssp {
|
||||
entry:
|
||||
call void @llvm.dbg.value(metadata i8* %name, i64 0, metadata !15, metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i32 %len, i64 0, metadata !20, metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i32 %hash, i64 0, metadata !21, metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i8 %extra, i64 0, metadata !22, metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i32 %flags, i64 0, metadata !23, metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i8* %name, i64 0, metadata !15, metadata !MDExpression()), !dbg !MDLocation(scope: !16)
|
||||
call void @llvm.dbg.value(metadata i32 %len, i64 0, metadata !20, metadata !MDExpression()), !dbg !MDLocation(scope: !16)
|
||||
call void @llvm.dbg.value(metadata i32 %hash, i64 0, metadata !21, metadata !MDExpression()), !dbg !MDLocation(scope: !16)
|
||||
call void @llvm.dbg.value(metadata i8 %extra, i64 0, metadata !22, metadata !MDExpression()), !dbg !MDLocation(scope: !16)
|
||||
call void @llvm.dbg.value(metadata i32 %flags, i64 0, metadata !23, metadata !MDExpression()), !dbg !MDLocation(scope: !16)
|
||||
%0 = icmp eq i32 %hash, 0, !dbg !24 ; <i1> [#uses=1]
|
||||
br i1 %0, label %bb, label %bb1, !dbg !24
|
||||
|
||||
|
@ -118,7 +118,7 @@ entry:
|
||||
|
||||
; Insert a meaningless dbg.value intrinsic; it should have no
|
||||
; effect on the working of DSE in any way.
|
||||
call void @llvm.dbg.value(metadata i32* undef, i64 0, metadata !10, metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i32* undef, i64 0, metadata !10, metadata !MDExpression()), !dbg !MDLocation(scope: !4)
|
||||
|
||||
; CHECK: store i32 -1, i32* @x, align 4
|
||||
store i32 -1, i32* @x, align 4
|
||||
|
@ -12,11 +12,11 @@ declare void @llvm.dbg.value(metadata, i64, metadata, metadata) #1
|
||||
|
||||
define <4 x float> @inner_vectors(<4 x float> %a, <4 x float> %b) {
|
||||
entry:
|
||||
call void @llvm.dbg.value(metadata i32 undef, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !6), metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i32 undef, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !6), metadata !MDExpression()), !dbg !MDLocation(scope: !6)
|
||||
%mul = fmul <4 x float> %a, <float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00>
|
||||
call void @llvm.dbg.value(metadata i32 undef, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !6), metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i32 undef, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !6), metadata !MDExpression()), !dbg !MDLocation(scope: !6)
|
||||
%mul1 = fmul <4 x float> %b, <float 5.000000e+00, float 5.000000e+00, float 5.000000e+00, float 5.000000e+00>
|
||||
call void @llvm.dbg.value(metadata i32 undef, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !6), metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i32 undef, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !6), metadata !MDExpression()), !dbg !MDLocation(scope: !6)
|
||||
%add = fadd <4 x float> %mul, %mul1
|
||||
ret <4 x float> %add
|
||||
}
|
||||
@ -27,10 +27,10 @@ define float @outer_vectors(<4 x float> %a, <4 x float> %b) {
|
||||
; CHECK: ret float
|
||||
|
||||
entry:
|
||||
call void @llvm.dbg.value(metadata i32 undef, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !6), metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i32 undef, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !6), metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i32 undef, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !6), metadata !MDExpression()), !dbg !MDLocation(scope: !6)
|
||||
call void @llvm.dbg.value(metadata i32 undef, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !6), metadata !MDExpression()), !dbg !MDLocation(scope: !6)
|
||||
%call = call <4 x float> @inner_vectors(<4 x float> %a, <4 x float> %b)
|
||||
call void @llvm.dbg.value(metadata i32 undef, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !6), metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata i32 undef, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !6), metadata !MDExpression()), !dbg !MDLocation(scope: !6)
|
||||
%vecext = extractelement <4 x float> %call, i32 0
|
||||
%vecext1 = extractelement <4 x float> %call, i32 1
|
||||
%add = fadd float %vecext, %vecext1
|
||||
|
@ -72,7 +72,7 @@ for.body:
|
||||
|
||||
for.inc:
|
||||
%dec = add i64 %i.0, -1
|
||||
tail call void @llvm.dbg.value(metadata i64 %dec, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !0), metadata !MDExpression())
|
||||
tail call void @llvm.dbg.value(metadata i64 %dec, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !0), metadata !MDExpression()), !dbg !MDLocation(scope: !0)
|
||||
br label %for.cond
|
||||
|
||||
for.end:
|
||||
|
@ -16,7 +16,7 @@ for.body: ; preds = %_ZN8nsTArray9Elemen
|
||||
%tmp = bitcast %struct.nsTArrayHeader* %add.ptr.i to %struct.nsTArray*
|
||||
%arrayidx = getelementptr inbounds %struct.nsTArray, %struct.nsTArray* %tmp, i32 %i.06
|
||||
%add = add nsw i32 %i.06, 1
|
||||
call void @llvm.dbg.value(metadata %struct.nsTArray* %aValues, i64 0, metadata !0, metadata !MDExpression()) nounwind
|
||||
call void @llvm.dbg.value(metadata %struct.nsTArray* %aValues, i64 0, metadata !0, metadata !MDExpression()) nounwind, !dbg !MDLocation(scope: !MDSubprogram())
|
||||
br label %_ZN8nsTArray9ElementAtEi.exit
|
||||
|
||||
_ZN8nsTArray9ElementAtEi.exit: ; preds = %for.body
|
||||
|
@ -2684,8 +2684,8 @@ define {<2 x float>, <2 x float>} @"\01-[A z]"({}* %self, i8* nocapture %_cmd) n
|
||||
invoke.cont:
|
||||
%0 = bitcast {}* %self to i8*
|
||||
%1 = tail call i8* @objc_retain(i8* %0) nounwind
|
||||
tail call void @llvm.dbg.value(metadata {}* %self, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !2), metadata !MDExpression())
|
||||
tail call void @llvm.dbg.value(metadata {}* %self, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !2), metadata !MDExpression())
|
||||
tail call void @llvm.dbg.value(metadata {}* %self, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !2), metadata !MDExpression()), !dbg !MDLocation(scope: !2)
|
||||
tail call void @llvm.dbg.value(metadata {}* %self, i64 0, metadata !MDLocalVariable(tag: DW_TAG_auto_variable, scope: !2), metadata !MDExpression()), !dbg !MDLocation(scope: !2)
|
||||
%ivar = load i64, i64* @"OBJC_IVAR_$_A.myZ", align 8
|
||||
%add.ptr = getelementptr i8, i8* %0, i64 %ivar
|
||||
%tmp1 = bitcast i8* %add.ptr to float*
|
||||
|
@ -6,7 +6,7 @@
|
||||
define void @foo(i32 %a) {
|
||||
entry:
|
||||
%s = alloca i32
|
||||
call void @llvm.dbg.declare(metadata !"", metadata !MDLocalVariable(tag: DW_TAG_arg_variable, scope: !1), metadata !MDExpression())
|
||||
call void @llvm.dbg.declare(metadata !"", metadata !MDLocalVariable(tag: DW_TAG_arg_variable, scope: !1), metadata !MDExpression()), !dbg !MDLocation(scope: !1)
|
||||
ret void
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
define void @foo(i32 %a) {
|
||||
entry:
|
||||
%s = alloca i32
|
||||
call void @llvm.dbg.value(metadata !"", i64 0, metadata !MDLocalVariable(tag: DW_TAG_arg_variable, scope: !1), metadata !MDExpression())
|
||||
call void @llvm.dbg.value(metadata !"", i64 0, metadata !MDLocalVariable(tag: DW_TAG_arg_variable, scope: !1), metadata !MDExpression()), !dbg !MDLocation(scope: !1)
|
||||
ret void
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user