Skip to content

Commit

Permalink
Convert DebugInfo tests to opaque pointers (#2126)
Browse files Browse the repository at this point in the history
This is a bulk conversion done using the migration script.
  • Loading branch information
svenvh authored Aug 16, 2023
1 parent 2bb5fed commit 36936af
Show file tree
Hide file tree
Showing 94 changed files with 563 additions and 589 deletions.
2 changes: 1 addition & 1 deletion test/DebugInfo/DebugInfoChecksum.ll
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ target triple = "spir"
define i32 @main() #0 !dbg !10 {
entry:
%retval = alloca i32, align 4
store i32 0, i32* %retval, align 4
store i32 0, ptr %retval, align 4
ret i32 0, !dbg !15
}

Expand Down
6 changes: 3 additions & 3 deletions test/DebugInfo/DebugInfoLLVMArg.ll
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ entry:
%x = alloca i32, align 4
; CHECK-LLVM-OCL: call void @llvm.dbg.value(metadata !DIArgList(ptr %x), metadata ![[#]], metadata !DIExpression(DW_OP_LLVM_arg, 0))
; CHECK-LLVM-200: call void @llvm.dbg.value(metadata !DIArgList(ptr %x), metadata ![[#]], metadata !DIExpression(DW_OP_LLVM_arg, 0))
call void @llvm.dbg.value(metadata !DIArgList(i32* %x), metadata !6, metadata !DIExpression(DW_OP_LLVM_arg, 0)), !dbg !10
call void @llvm.dbg.value(metadata !DIArgList(ptr %x), metadata !6, metadata !DIExpression(DW_OP_LLVM_arg, 0)), !dbg !10
; CHECK-LLVM-OCL: call void @llvm.dbg.value(metadata ptr undef, metadata ![[#]], metadata !DIExpression())
; CHECK-LLVM-200: call void @llvm.dbg.value(metadata !DIArgList(ptr %x, ptr %x), metadata ![[#]], metadata !DIExpression(DW_OP_LLVM_arg, 0, DW_OP_LLVM_arg, 1, DW_OP_plus))
call void @llvm.dbg.value(metadata !DIArgList(i32* %x, i32* %x), metadata !6, metadata !DIExpression(DW_OP_LLVM_arg, 0, DW_OP_LLVM_arg, 1, DW_OP_plus)), !dbg !10
store i32 42, i32* %x, align 4
call void @llvm.dbg.value(metadata !DIArgList(ptr %x, ptr %x), metadata !6, metadata !DIExpression(DW_OP_LLVM_arg, 0, DW_OP_LLVM_arg, 1, DW_OP_plus)), !dbg !10
store i32 42, ptr %x, align 4
ret void
}

Expand Down
4 changes: 2 additions & 2 deletions test/DebugInfo/DebugInfoLexicalBlockDependency.ll
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ target triple = "spir64-unknown-unknown"
define spir_kernel void @test(i64 %value) #0 !dbg !9 {
entry:
%value.addr = alloca i32, align 1, !dbg !17
call void @llvm.dbg.declare(metadata i32* %value.addr, metadata !13, metadata !DIExpression()), !dbg !18
call void @llvm.dbg.declare(metadata ptr %value.addr, metadata !13, metadata !DIExpression()), !dbg !18
%value.trunc = trunc i64 %value to i32, !dbg !17
store i32 %value.trunc, i32* %value.addr, align 4, !dbg !17
store i32 %value.trunc, ptr %value.addr, align 4, !dbg !17
ret void
}

Expand Down
2 changes: 1 addition & 1 deletion test/DebugInfo/DebugInfoProducer.ll
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ target triple = "spir"
define i32 @main() #0 !dbg !8 {
entry:
%retval = alloca i32, align 4
store i32 0, i32* %retval, align 4
store i32 0, ptr %retval, align 4
ret i32 0, !dbg !13
}

Expand Down
8 changes: 4 additions & 4 deletions test/DebugInfo/Generic/2010-01-05-DbgScope.ll
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64"
target triple = "spir64-unknown-unknown"
; PR 5942
define i8* @foo() nounwind {
define ptr @foo() nounwind {
entry:
%0 = load i32, i32* undef, align 4, !dbg !0 ; <i32> [#uses=1]
%1 = inttoptr i32 %0 to i8*, !dbg !0 ; <i8*> [#uses=1]
ret i8* %1, !dbg !10
%0 = load i32, ptr undef, align 4, !dbg !0 ; <i32> [#uses=1]
%1 = inttoptr i32 %0 to ptr, !dbg !0 ; <ptr> [#uses=1]
ret ptr %1, !dbg !10

}

Expand Down
2 changes: 1 addition & 1 deletion test/DebugInfo/Generic/2010-03-12-llc-crash.ll
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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 !DIExpression()), !dbg !DILocation(scope: !1)
call void @llvm.dbg.declare(metadata ptr undef, metadata !0, metadata !DIExpression()), !dbg !DILocation(scope: !1)
ret void
}

Expand Down
30 changes: 15 additions & 15 deletions test/DebugInfo/Generic/2010-03-24-MemberFn.ll
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,33 @@ target triple = "spir64-unknown-unknown"

define i32 @_Z3barv() nounwind ssp !dbg !3 {
entry:
%retval = alloca i32 ; <i32*> [#uses=2]
%0 = alloca i32 ; <i32*> [#uses=2]
%s1 = alloca %struct.S ; <%struct.S*> [#uses=1]
%retval = alloca i32 ; <ptr> [#uses=2]
%0 = alloca i32 ; <ptr> [#uses=2]
%s1 = alloca %struct.S ; <ptr> [#uses=1]
%"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
call void @llvm.dbg.declare(metadata %struct.S* %s1, metadata !0, metadata !DIExpression()), !dbg !16
%1 = call i32 @_ZN1S3fooEv(%struct.S* %s1) nounwind, !dbg !17 ; <i32> [#uses=1]
store i32 %1, i32* %0, align 4, !dbg !17
%2 = load i32, i32* %0, align 4, !dbg !17 ; <i32> [#uses=1]
store i32 %2, i32* %retval, align 4, !dbg !17
call void @llvm.dbg.declare(metadata ptr %s1, metadata !0, metadata !DIExpression()), !dbg !16
%1 = call i32 @_ZN1S3fooEv(ptr %s1) nounwind, !dbg !17 ; <i32> [#uses=1]
store i32 %1, ptr %0, align 4, !dbg !17
%2 = load i32, ptr %0, align 4, !dbg !17 ; <i32> [#uses=1]
store i32 %2, ptr %retval, align 4, !dbg !17
br label %return, !dbg !17

return: ; preds = %entry
%retval1 = load i32, i32* %retval, !dbg !17 ; <i32> [#uses=1]
%retval1 = load i32, ptr %retval, !dbg !17 ; <i32> [#uses=1]
ret i32 %retval1, !dbg !16
}

define linkonce_odr i32 @_ZN1S3fooEv(%struct.S* %this) nounwind ssp align 2 !dbg !12 {
define linkonce_odr i32 @_ZN1S3fooEv(ptr %this) nounwind ssp align 2 !dbg !12 {
entry:
%this_addr = alloca %struct.S* ; <%struct.S**> [#uses=1]
%retval = alloca i32 ; <i32*> [#uses=1]
%this_addr = alloca ptr ; <ptr> [#uses=1]
%retval = alloca i32 ; <ptr> [#uses=1]
%"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
call void @llvm.dbg.declare(metadata %struct.S** %this_addr, metadata !18, metadata !DIExpression(DW_OP_deref)), !dbg !21
store %struct.S* %this, %struct.S** %this_addr
call void @llvm.dbg.declare(metadata ptr %this_addr, metadata !18, metadata !DIExpression(DW_OP_deref)), !dbg !21
store ptr %this, ptr %this_addr
br label %return, !dbg !21

return: ; preds = %entry
%retval1 = load i32, i32* %retval, !dbg !21 ; <i32> [#uses=1]
%retval1 = load i32, ptr %retval, !dbg !21 ; <i32> [#uses=1]
ret i32 %retval1, !dbg !22
}

Expand Down
12 changes: 6 additions & 6 deletions test/DebugInfo/Generic/2010-04-19-FramePtr.ll
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ target triple = "spir64-unknown-unknown"

define i32 @foo() nounwind ssp !dbg !1 {
entry:
%retval = alloca i32 ; <i32*> [#uses=2]
%0 = alloca i32 ; <i32*> [#uses=2]
%retval = alloca i32 ; <ptr> [#uses=2]
%0 = alloca i32 ; <ptr> [#uses=2]
%"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
store i32 42, i32* %0, align 4, !dbg !0
%1 = load i32, i32* %0, align 4, !dbg !0 ; <i32> [#uses=1]
store i32 %1, i32* %retval, align 4, !dbg !0
store i32 42, ptr %0, align 4, !dbg !0
%1 = load i32, ptr %0, align 4, !dbg !0 ; <i32> [#uses=1]
store i32 %1, ptr %retval, align 4, !dbg !0
br label %return, !dbg !0

return: ; preds = %entry
%retval1 = load i32, i32* %retval, !dbg !0 ; <i32> [#uses=1]
%retval1 = load i32, ptr %retval, !dbg !0 ; <i32> [#uses=1]
ret i32 %retval1, !dbg !7
}

Expand Down
4 changes: 2 additions & 2 deletions test/DebugInfo/Generic/2010-06-29-InlinedFnLocalVar.ll
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ declare void @llvm.dbg.value(metadata, metadata, metadata) #0
; Function Attrs: nounwind ssp
define i32 @bar() #1 !dbg !8 {
entry:
%0 = load i32, i32* @i, align 4, !dbg !11
%0 = load i32, ptr @i, align 4, !dbg !11
tail call void @llvm.dbg.value(metadata i32 %0, metadata !13, metadata !24), !dbg !25
tail call void @llvm.dbg.declare(metadata !5, metadata !18, metadata !24), !dbg !26
%1 = mul nsw i32 %0, %0, !dbg !27
store i32 %1, i32* @i, align 4, !dbg !11
store i32 %1, ptr @i, align 4, !dbg !11
ret i32 %1, !dbg !28
}

Expand Down
6 changes: 3 additions & 3 deletions test/DebugInfo/Generic/2010-10-01-crash.ll
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64"
target triple = "spir64-unknown-unknown"

define void @CGRectStandardize(i32* sret(i32) %agg.result, i32* byval(i32) %rect) nounwind ssp !dbg !0 {
define void @CGRectStandardize(ptr sret(i32) %agg.result, ptr byval(i32) %rect) nounwind ssp !dbg !0 {
entry:
call void @llvm.dbg.declare(metadata i32* %rect, metadata !23, metadata !DIExpression()), !dbg !24
call void @llvm.dbg.declare(metadata ptr %rect, metadata !23, metadata !DIExpression()), !dbg !24
ret void
}

declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone

declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i1) nounwind
declare void @llvm.memcpy.p0.p0.i32(ptr nocapture, ptr nocapture, i32, i1) nounwind


!llvm.dbg.cu = !{!2}
Expand Down
52 changes: 26 additions & 26 deletions test/DebugInfo/Generic/PR20038.ll
Original file line number Diff line number Diff line change
Expand Up @@ -64,58 +64,58 @@ target triple = "spir64-unknown-unknown"
; Function Attrs: nounwind
define void @_Z4fun4v() #0 !dbg !12 {
entry:
%this.addr.i.i = alloca %struct.C*, align 8, !dbg !21
%this.addr.i = alloca %struct.C*, align 8, !dbg !22
%this.addr.i.i = alloca ptr, align 8, !dbg !21
%this.addr.i = alloca ptr, align 8, !dbg !22
%agg.tmp.ensured = alloca %struct.C, align 1
%cleanup.cond = alloca i1
%0 = load i8, i8* @b, align 1, !dbg !24
%0 = load i8, ptr @b, align 1, !dbg !24
%tobool = trunc i8 %0 to i1, !dbg !24
store i1 false, i1* %cleanup.cond
store i1 false, ptr %cleanup.cond
br i1 %tobool, label %land.rhs, label %land.end, !dbg !24

land.rhs: ; preds = %entry
store i1 true, i1* %cleanup.cond, !dbg !25
store i1 true, ptr %cleanup.cond, !dbg !25
br label %land.end

land.end: ; preds = %land.rhs, %entry
%1 = phi i1 [ false, %entry ], [ true, %land.rhs ]
%cleanup.is_active = load i1, i1* %cleanup.cond, !dbg !27
%cleanup.is_active = load i1, ptr %cleanup.cond, !dbg !27
br i1 %cleanup.is_active, label %cleanup.action, label %cleanup.done, !dbg !27

cleanup.action: ; preds = %land.end
store %struct.C* %agg.tmp.ensured, %struct.C** %this.addr.i, align 8, !dbg !22
call void @llvm.dbg.declare(metadata %struct.C** %this.addr.i, metadata !129, metadata !DIExpression()), !dbg !31
%this1.i = load %struct.C*, %struct.C** %this.addr.i, !dbg !22
store %struct.C* %this1.i, %struct.C** %this.addr.i.i, align 8, !dbg !21
call void @llvm.dbg.declare(metadata %struct.C** %this.addr.i.i, metadata !132, metadata !DIExpression()), !dbg !33
%this1.i.i = load %struct.C*, %struct.C** %this.addr.i.i, !dbg !21
store ptr %agg.tmp.ensured, ptr %this.addr.i, align 8, !dbg !22
call void @llvm.dbg.declare(metadata ptr %this.addr.i, metadata !129, metadata !DIExpression()), !dbg !31
%this1.i = load ptr, ptr %this.addr.i, !dbg !22
store ptr %this1.i, ptr %this.addr.i.i, align 8, !dbg !21
call void @llvm.dbg.declare(metadata ptr %this.addr.i.i, metadata !132, metadata !DIExpression()), !dbg !33
%this1.i.i = load ptr, ptr %this.addr.i.i, !dbg !21
br label %cleanup.done, !dbg !22

cleanup.done: ; preds = %cleanup.action, %land.end
ret void, !dbg !34
}

; Function Attrs: alwaysinline nounwind
define void @_ZN1CD1Ev(%struct.C* %this) unnamed_addr #1 align 2 !dbg !17 {
define void @_ZN1CD1Ev(ptr %this) unnamed_addr #1 align 2 !dbg !17 {
entry:
%this.addr.i = alloca %struct.C*, align 8, !dbg !37
%this.addr = alloca %struct.C*, align 8
store %struct.C* %this, %struct.C** %this.addr, align 8
call void @llvm.dbg.declare(metadata %struct.C** %this.addr, metadata !29, metadata !DIExpression()), !dbg !38
%this1 = load %struct.C*, %struct.C** %this.addr
store %struct.C* %this1, %struct.C** %this.addr.i, align 8, !dbg !37
call void @llvm.dbg.declare(metadata %struct.C** %this.addr.i, metadata !232, metadata !DIExpression()), !dbg !39
%this1.i = load %struct.C*, %struct.C** %this.addr.i, !dbg !37
%this.addr.i = alloca ptr, align 8, !dbg !37
%this.addr = alloca ptr, align 8
store ptr %this, ptr %this.addr, align 8
call void @llvm.dbg.declare(metadata ptr %this.addr, metadata !29, metadata !DIExpression()), !dbg !38
%this1 = load ptr, ptr %this.addr
store ptr %this1, ptr %this.addr.i, align 8, !dbg !37
call void @llvm.dbg.declare(metadata ptr %this.addr.i, metadata !232, metadata !DIExpression()), !dbg !39
%this1.i = load ptr, ptr %this.addr.i, !dbg !37
ret void, !dbg !37
}

; Function Attrs: alwaysinline nounwind
define void @_ZN1CD2Ev(%struct.C* %this) unnamed_addr #1 align 2 !dbg !16 {
define void @_ZN1CD2Ev(ptr %this) unnamed_addr #1 align 2 !dbg !16 {
entry:
%this.addr = alloca %struct.C*, align 8
store %struct.C* %this, %struct.C** %this.addr, align 8
call void @llvm.dbg.declare(metadata %struct.C** %this.addr, metadata !32, metadata !DIExpression()), !dbg !40
%this1 = load %struct.C*, %struct.C** %this.addr
%this.addr = alloca ptr, align 8
store ptr %this, ptr %this.addr, align 8
call void @llvm.dbg.declare(metadata ptr %this.addr, metadata !32, metadata !DIExpression()), !dbg !40
%this1 = load ptr, ptr %this.addr
ret void, !dbg !41
}

Expand Down
4 changes: 2 additions & 2 deletions test/DebugInfo/Generic/dead-argument-order.ll
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ target triple = "spir64-unknown-unknown"
; Function Attrs: nounwind readnone uwtable
define i32 @_Z8function1Si(i32 %s.coerce, i32 %i) #0 !dbg !9 {
entry:
tail call void @llvm.dbg.declare(metadata %struct.S* undef, metadata !14, metadata !DIExpression()), !dbg !20
tail call void @llvm.dbg.declare(metadata ptr undef, metadata !14, metadata !DIExpression()), !dbg !20
tail call void @llvm.dbg.value(metadata i32 %i, metadata !15, metadata !DIExpression()), !dbg !20
%add = add nsw i32 %i, %s.coerce, !dbg !20
ret i32 %add, !dbg !20
Expand Down Expand Up @@ -82,6 +82,6 @@ attributes #1 = { nounwind readnone }
!16 = !{i32 2, !"Dwarf Version", i32 4}
!17 = !{i32 2, !"Debug Info Version", i32 3}
!18 = !{!"clang version 3.5.0 "}
!19 = !{%struct.S* undef}
!19 = !{ptr undef}
!20 = !DILocation(line: 2, scope: !9)

6 changes: 3 additions & 3 deletions test/DebugInfo/Generic/debug-info-eis-option.ll
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ target triple = "spir64-unknown-unknown"
source_filename = "linear-dbg-value.ll"

; Function Attrs: nounwind readonly uwtable
define i32 @foo(i32* nocapture readonly %a, i32 %N) local_unnamed_addr #0 !dbg !6 {
define i32 @foo(ptr nocapture readonly %a, i32 %N) local_unnamed_addr #0 !dbg !6 {
entry:
%cmp6 = icmp sgt i32 %N, 0, !dbg !11
br i1 %cmp6, label %for.body.preheader, label %for.cond.cleanup, !dbg !15
Expand All @@ -38,8 +38,8 @@ for.body: ; preds = %for.body, %for.body
; CHECK: DBG_VALUE {{.*}} ![[X]], !DIExpression()
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %for.body.preheader ]
%x.07 = phi i32 [ %add, %for.body ], [ 0, %for.body.preheader ]
%arrayidx = getelementptr inbounds i32, i32* %a, i64 %indvars.iv, !dbg !17
%0 = load i32, i32* %arrayidx, align 4, !dbg !17
%arrayidx = getelementptr inbounds i32, ptr %a, i64 %indvars.iv, !dbg !17
%0 = load i32, ptr %arrayidx, align 4, !dbg !17
%add = add nsw i32 %0, %x.07, !dbg !17
call void @llvm.dbg.value(metadata i32 %add, metadata !9, metadata !DIExpression()), !dbg !20
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1, !dbg !21
Expand Down
16 changes: 8 additions & 8 deletions test/DebugInfo/Generic/dwarf-public-names.ll
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ source_filename = "test/DebugInfo/Generic/dwarf-public-names.ll"
@_ZN2ns25global_namespace_variableE = global i32 1, align 4, !dbg !17

; Function Attrs: nounwind uwtable
define void @_ZN1C15member_functionEv(%struct.C* %this) #0 align 2 !dbg !23 {
define void @_ZN1C15member_functionEv(ptr %this) #0 align 2 !dbg !23 {
entry:
%this.addr = alloca %struct.C*, align 8
store %struct.C* %this, %struct.C** %this.addr, align 8
call void @llvm.dbg.declare(metadata %struct.C** %this.addr, metadata !24, metadata !26), !dbg !27
%this1 = load %struct.C*, %struct.C** %this.addr
store i32 0, i32* @_ZN1C22static_member_variableE, align 4, !dbg !28
%this.addr = alloca ptr, align 8
store ptr %this, ptr %this.addr, align 8
call void @llvm.dbg.declare(metadata ptr %this.addr, metadata !24, metadata !26), !dbg !27
%this1 = load ptr, ptr %this.addr
store i32 0, ptr @_ZN1C22static_member_variableE, align 4, !dbg !28
ret void, !dbg !29
}

Expand All @@ -81,7 +81,7 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
; Function Attrs: nounwind uwtable
define i32 @_ZN1C22static_member_functionEv() #0 align 2 !dbg !30 {
entry:
%0 = load i32, i32* @_ZN1C22static_member_variableE, align 4, !dbg !31
%0 = load i32, ptr @_ZN1C22static_member_variableE, align 4, !dbg !31
ret i32 %0, !dbg !31
}

Expand All @@ -94,7 +94,7 @@ entry:
; Function Attrs: nounwind uwtable
define void @_ZN2ns25global_namespace_functionEv() #0 !dbg !34 {
entry:
call void @_ZN1C15member_functionEv(%struct.C* @global_variable), !dbg !37
call void @_ZN1C15member_functionEv(ptr @global_variable), !dbg !37
ret void, !dbg !38
}

Expand Down
4 changes: 2 additions & 2 deletions test/DebugInfo/Generic/enum.ll
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ source_filename = "test/DebugInfo/Generic/enum.ll"
define void @_Z4funcv() #0 !dbg !17 {
entry:
%b = alloca i32, align 4
call void @llvm.dbg.declare(metadata i32* %b, metadata !20, metadata !22), !dbg !23
store i32 0, i32* %b, align 4, !dbg !23
call void @llvm.dbg.declare(metadata ptr %b, metadata !20, metadata !22), !dbg !23
store i32 0, ptr %b, align 4, !dbg !23
ret void, !dbg !24
}

Expand Down
2 changes: 1 addition & 1 deletion test/DebugInfo/Generic/func-using-decl.ll
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ source_filename = "test/DebugInfo/Generic/func-using-decl.ll"
define dso_local i32 @main() #0 !dbg !14 {
entry:
%retval = alloca i32, align 4
store i32 0, i32* %retval, align 4
store i32 0, ptr %retval, align 4
ret i32 0, !dbg !17
}

Expand Down
8 changes: 4 additions & 4 deletions test/DebugInfo/Generic/incorrect-variable-debugloc1.ll
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ define i32 @main() #0 !dbg !4 {
entry:
%c = alloca i32, align 4
tail call void @llvm.dbg.value(metadata i32 13, metadata !10, metadata !16), !dbg !17
store volatile i32 13, i32* %c, align 4, !dbg !18
store volatile i32 13, ptr %c, align 4, !dbg !18
%call = tail call i32 @_Z4funcv(), !dbg !19
tail call void @llvm.dbg.value(metadata i32 %call, metadata !10, metadata !16), !dbg !17
store volatile i32 %call, i32* %c, align 4, !dbg !19
tail call void @llvm.dbg.value(metadata i32* %c, metadata !10, metadata !21), !dbg !17
%c.0.c.0. = load volatile i32, i32* %c, align 4, !dbg !20
store volatile i32 %call, ptr %c, align 4, !dbg !19
tail call void @llvm.dbg.value(metadata ptr %c, metadata !10, metadata !21), !dbg !17
%c.0.c.0. = load volatile i32, ptr %c, align 4, !dbg !20
ret i32 %c.0.c.0., !dbg !20
}

Expand Down
Loading

0 comments on commit 36936af

Please sign in to comment.