[llvm] 0d2271b - SampleProfile: Convert tests to opaque pointers
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 27 18:41:24 PST 2022
Author: Matt Arsenault
Date: 2022-11-27T21:27:50-05:00
New Revision: 0d2271bb446d1a8cc7cbfbcd28827c305916d8ec
URL: https://github.com/llvm/llvm-project/commit/0d2271bb446d1a8cc7cbfbcd28827c305916d8ec
DIFF: https://github.com/llvm/llvm-project/commit/0d2271bb446d1a8cc7cbfbcd28827c305916d8ec.diff
LOG: SampleProfile: Convert tests to opaque pointers
syntax.ll required removing some diffs that apparently looked like
pointers in message checking.
Added:
Modified:
llvm/test/Transforms/SampleProfile/misexpect-zero.ll
llvm/test/Transforms/SampleProfile/misexpect.ll
llvm/test/Transforms/SampleProfile/pseudo-probe-icp-factor.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/SampleProfile/misexpect-zero.ll b/llvm/test/Transforms/SampleProfile/misexpect-zero.ll
index c20c6ac8253ac..7f2e46fd033da 100644
--- a/llvm/test/Transforms/SampleProfile/misexpect-zero.ll
+++ b/llvm/test/Transforms/SampleProfile/misexpect-zero.ll
@@ -5,7 +5,7 @@
define i32 @main() #0 !dbg !36 {
; CHECK-LABEL: @main(
; CHECK-NEXT: for.cond:
-; CHECK-NEXT: %0 = load i32, i32* null, align 4, !dbg !44
+; CHECK-NEXT: %0 = load i32, ptr null, align 4, !dbg !44
; CHECK-NEXT: br i1 false, label %for.body, label %for.end, !prof !49
; CHECK: for.body:
; CHECK-NEXT: ret i32 0
@@ -13,7 +13,7 @@ define i32 @main() #0 !dbg !36 {
; CHECK-NEXT: ret i32 0
; NOT: warning:
for.cond:
- %0 = load i32, i32* null, align 4, !dbg !43
+ %0 = load i32, ptr null, align 4, !dbg !43
br i1 false, label %for.body, label %for.end, !prof !48
for.body: ; preds = %for.cond
diff --git a/llvm/test/Transforms/SampleProfile/misexpect.ll b/llvm/test/Transforms/SampleProfile/misexpect.ll
index 51cc0c87d94de..26f76ee5fccbf 100644
--- a/llvm/test/Transforms/SampleProfile/misexpect.ll
+++ b/llvm/test/Transforms/SampleProfile/misexpect.ll
@@ -38,111 +38,111 @@
@.str = private unnamed_addr constant [15 x i8] c"result is %lf\0A\00", align 1
; Function Attrs: uwtable
-define i32 @main(i32 %argc, i8** %argv) #0 !dbg !6 {
+define i32 @main(i32 %argc, ptr %argv) #0 !dbg !6 {
entry:
%retval = alloca i32, align 4
%argc.addr = alloca i32, align 4
- %argv.addr = alloca i8**, align 8
+ %argv.addr = alloca ptr, align 8
%result = alloca double, align 8
%limit = alloca i32, align 4
%s = alloca double, align 8
%u = alloca i32, align 4
%x = alloca double, align 8
- store i32 0, i32* %retval, align 4
- store i32 %argc, i32* %argc.addr, align 4
- call void @llvm.dbg.declare(metadata i32* %argc.addr, metadata !16, metadata !17), !dbg !18
- store i8** %argv, i8*** %argv.addr, align 8
- call void @llvm.dbg.declare(metadata i8*** %argv.addr, metadata !19, metadata !17), !dbg !20
- %0 = load i32, i32* %argc.addr, align 4, !dbg !21
+ store i32 0, ptr %retval, align 4
+ store i32 %argc, ptr %argc.addr, align 4
+ call void @llvm.dbg.declare(metadata ptr %argc.addr, metadata !16, metadata !17), !dbg !18
+ store ptr %argv, ptr %argv.addr, align 8
+ call void @llvm.dbg.declare(metadata ptr %argv.addr, metadata !19, metadata !17), !dbg !20
+ %0 = load i32, ptr %argc.addr, align 4, !dbg !21
%cmp = icmp slt i32 %0, 2, !dbg !23
br i1 %cmp, label %if.then, label %if.end, !dbg !24
if.then: ; preds = %entry
- store i32 1, i32* %retval, align 4, !dbg !25
+ store i32 1, ptr %retval, align 4, !dbg !25
br label %return, !dbg !25
if.end: ; preds = %entry
- call void @llvm.dbg.declare(metadata double* %result, metadata !26, metadata !17), !dbg !27
- call void @llvm.dbg.declare(metadata i32* %limit, metadata !28, metadata !17), !dbg !29
- %1 = load i8**, i8*** %argv.addr, align 8, !dbg !30
- %arrayidx = getelementptr inbounds i8*, i8** %1, i64 1, !dbg !30
- %2 = load i8*, i8** %arrayidx, align 8, !dbg !30
- %call = call i32 @atoi(i8* %2) #4, !dbg !31
- store i32 %call, i32* %limit, align 4, !dbg !29
- %3 = load i32, i32* %limit, align 4, !dbg !32
+ call void @llvm.dbg.declare(metadata ptr %result, metadata !26, metadata !17), !dbg !27
+ call void @llvm.dbg.declare(metadata ptr %limit, metadata !28, metadata !17), !dbg !29
+ %1 = load ptr, ptr %argv.addr, align 8, !dbg !30
+ %arrayidx = getelementptr inbounds ptr, ptr %1, i64 1, !dbg !30
+ %2 = load ptr, ptr %arrayidx, align 8, !dbg !30
+ %call = call i32 @atoi(ptr %2) #4, !dbg !31
+ store i32 %call, ptr %limit, align 4, !dbg !29
+ %3 = load i32, ptr %limit, align 4, !dbg !32
%exp = call i32 @llvm.expect.i32(i32 %3, i32 0)
%tobool = icmp ne i32 %exp, 0, !dbg !34
br i1 %tobool, label %if.then.2, label %if.else, !dbg !35
if.then.2: ; preds = %if.end
- call void @llvm.dbg.declare(metadata double* %s, metadata !36, metadata !17), !dbg !38
- %4 = load i8**, i8*** %argv.addr, align 8, !dbg !39
- %arrayidx3 = getelementptr inbounds i8*, i8** %4, i64 2, !dbg !39
- %5 = load i8*, i8** %arrayidx3, align 8, !dbg !39
- %call4 = call i32 @atoi(i8* %5) #4, !dbg !40
+ call void @llvm.dbg.declare(metadata ptr %s, metadata !36, metadata !17), !dbg !38
+ %4 = load ptr, ptr %argv.addr, align 8, !dbg !39
+ %arrayidx3 = getelementptr inbounds ptr, ptr %4, i64 2, !dbg !39
+ %5 = load ptr, ptr %arrayidx3, align 8, !dbg !39
+ %call4 = call i32 @atoi(ptr %5) #4, !dbg !40
%conv = sitofp i32 %call4 to double, !dbg !40
%mul = fmul double 0x40370ABE6A337A81, %conv, !dbg !41
- store double %mul, double* %s, align 8, !dbg !38
- call void @llvm.dbg.declare(metadata i32* %u, metadata !42, metadata !17), !dbg !44
- store i32 0, i32* %u, align 4, !dbg !44
+ store double %mul, ptr %s, align 8, !dbg !38
+ call void @llvm.dbg.declare(metadata ptr %u, metadata !42, metadata !17), !dbg !44
+ store i32 0, ptr %u, align 4, !dbg !44
br label %for.cond, !dbg !45
for.cond: ; preds = %for.inc, %if.then.2
- %6 = load i32, i32* %u, align 4, !dbg !46
- %7 = load i32, i32* %limit, align 4, !dbg !48
+ %6 = load i32, ptr %u, align 4, !dbg !46
+ %7 = load i32, ptr %limit, align 4, !dbg !48
%expval = call i32 @llvm.expect.i32(i32 %6, i32 1)
%cmp5 = icmp ne i32 %expval, 0, !dbg !49
br i1 %cmp5, label %for.body, label %for.end, !dbg !50
for.body: ; preds = %for.cond
- call void @llvm.dbg.declare(metadata double* %x, metadata !51, metadata !17), !dbg !53
- %8 = load double, double* %s, align 8, !dbg !54
- store double %8, double* %x, align 8, !dbg !53
- %9 = load double, double* %x, align 8, !dbg !55
+ call void @llvm.dbg.declare(metadata ptr %x, metadata !51, metadata !17), !dbg !53
+ %8 = load double, ptr %s, align 8, !dbg !54
+ store double %8, ptr %x, align 8, !dbg !53
+ %9 = load double, ptr %x, align 8, !dbg !55
%add = fadd double %9, 3.049000e+00, !dbg !56
- %10 = load i32, i32* %u, align 4, !dbg !57
+ %10 = load i32, ptr %u, align 4, !dbg !57
%conv6 = sitofp i32 %10 to double, !dbg !57
%add7 = fadd double %add, %conv6, !dbg !58
- store double %add7, double* %s, align 8, !dbg !59
- %11 = load double, double* %s, align 8, !dbg !60
- %12 = load double, double* %x, align 8, !dbg !61
+ store double %add7, ptr %s, align 8, !dbg !59
+ %11 = load double, ptr %s, align 8, !dbg !60
+ %12 = load double, ptr %x, align 8, !dbg !61
%div = fdiv double 3.940000e+00, %12, !dbg !62
%mul8 = fmul double %div, 3.200000e-01, !dbg !63
%add9 = fadd double %11, %mul8, !dbg !64
- %13 = load double, double* %s, align 8, !dbg !65
+ %13 = load double, ptr %s, align 8, !dbg !65
%sub = fsub double %13, %add9, !dbg !65
- store double %sub, double* %s, align 8, !dbg !65
+ store double %sub, ptr %s, align 8, !dbg !65
br label %for.inc, !dbg !66
for.inc: ; preds = %for.body
- %14 = load i32, i32* %u, align 4, !dbg !67
+ %14 = load i32, ptr %u, align 4, !dbg !67
%inc = add nsw i32 %14, 1, !dbg !67
- store i32 %inc, i32* %u, align 4, !dbg !67
+ store i32 %inc, ptr %u, align 4, !dbg !67
br label %for.cond, !dbg !68
for.end: ; preds = %for.cond
- %15 = load double, double* %s, align 8, !dbg !69
- store double %15, double* %result, align 8, !dbg !70
+ %15 = load double, ptr %s, align 8, !dbg !69
+ store double %15, ptr %result, align 8, !dbg !70
br label %if.end.13, !dbg !71
if.else: ; preds = %if.end
- %16 = load i8**, i8*** %argv.addr, align 8, !dbg !72
- %arrayidx10 = getelementptr inbounds i8*, i8** %16, i64 2, !dbg !72
- %17 = load i8*, i8** %arrayidx10, align 8, !dbg !72
- %call11 = call i32 @atoi(i8* %17) #4, !dbg !74
+ %16 = load ptr, ptr %argv.addr, align 8, !dbg !72
+ %arrayidx10 = getelementptr inbounds ptr, ptr %16, i64 2, !dbg !72
+ %17 = load ptr, ptr %arrayidx10, align 8, !dbg !72
+ %call11 = call i32 @atoi(ptr %17) #4, !dbg !74
%conv12 = sitofp i32 %call11 to double, !dbg !74
- store double %conv12, double* %result, align 8, !dbg !75
+ store double %conv12, ptr %result, align 8, !dbg !75
br label %if.end.13
if.end.13: ; preds = %if.else, %for.end
- %18 = load double, double* %result, align 8, !dbg !76
- %call14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i32 0, i32 0), double %18), !dbg !77
- store i32 0, i32* %retval, align 4, !dbg !78
+ %18 = load double, ptr %result, align 8, !dbg !76
+ %call14 = call i32 (ptr, ...) @printf(ptr @.str, double %18), !dbg !77
+ store i32 0, ptr %retval, align 4, !dbg !78
br label %return, !dbg !78
return: ; preds = %if.end.13, %if.then
- %19 = load i32, i32* %retval, align 4, !dbg !79
+ %19 = load i32, ptr %retval, align 4, !dbg !79
ret i32 %19, !dbg !79
}
@@ -150,9 +150,9 @@ return: ; preds = %if.end.13, %if.then
declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
; Function Attrs: nounwind readonly
-declare i32 @atoi(i8*) #2
+declare i32 @atoi(ptr) #2
-declare i32 @printf(i8*, ...) #3
+declare i32 @printf(ptr, ...) #3
; Function Attrs: nounwind readnone willreturn
declare i32 @llvm.expect.i32(i32, i32) #5
diff --git a/llvm/test/Transforms/SampleProfile/pseudo-probe-icp-factor.ll b/llvm/test/Transforms/SampleProfile/pseudo-probe-icp-factor.ll
index 4275e267b6702..b662efab9b2f2 100644
--- a/llvm/test/Transforms/SampleProfile/pseudo-probe-icp-factor.ll
+++ b/llvm/test/Transforms/SampleProfile/pseudo-probe-icp-factor.ll
@@ -9,13 +9,13 @@ target triple = "x86_64-unknown-linux-gnu"
define dso_local i32 @bar(i32 %arg) #0 !dbg !13 {
bb:
%i = alloca i32, align 4
- store i32 %arg, i32* %i, align 4, !tbaa !19
- call void @llvm.dbg.declare(metadata i32* %i, metadata !18, metadata !DIExpression()), !dbg !23
+ store i32 %arg, ptr %i, align 4, !tbaa !19
+ call void @llvm.dbg.declare(metadata ptr %i, metadata !18, metadata !DIExpression()), !dbg !23
call void @llvm.pseudoprobe(i64 -2012135647395072713, i64 1, i32 0, i64 -1), !dbg !24
- %i1 = load i32, i32* %i, align 4, !dbg !24, !tbaa !19
+ %i1 = load i32, ptr %i, align 4, !dbg !24, !tbaa !19
%i2 = add nsw i32 %i1, 1, !dbg !24
- store i32 %i2, i32* %i, align 4, !dbg !24, !tbaa !19
- %i3 = load i32, i32* %i, align 4, !dbg !25, !tbaa !19
+ store i32 %i2, ptr %i, align 4, !dbg !24, !tbaa !19
+ %i3 = load i32, ptr %i, align 4, !dbg !25, !tbaa !19
%i4 = add nsw i32 %i3, 1, !dbg !26
ret i32 %i4, !dbg !27
}
@@ -27,28 +27,27 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
define dso_local i32 @baz(i32 %arg) #0 !dbg !28 {
bb:
%i = alloca i32, align 4
- store i32 %arg, i32* %i, align 4, !tbaa !19
- call void @llvm.dbg.declare(metadata i32* %i, metadata !30, metadata !DIExpression()), !dbg !31
+ store i32 %arg, ptr %i, align 4, !tbaa !19
+ call void @llvm.dbg.declare(metadata ptr %i, metadata !30, metadata !DIExpression()), !dbg !31
call void @llvm.pseudoprobe(i64 7546896869197086323, i64 1, i32 0, i64 -1), !dbg !32
- %i1 = load i32, i32* %i, align 4, !dbg !32, !tbaa !19
+ %i1 = load i32, ptr %i, align 4, !dbg !32, !tbaa !19
%i2 = add nsw i32 %i1, 10, !dbg !33
ret i32 %i2, !dbg !34
}
; Function Attrs: nounwind uwtable
-define dso_local i32 @foo(i32 %arg, i32 (...)* %arg1) #0 !dbg !35 {
+define dso_local i32 @foo(i32 %arg, ptr %arg1) #0 !dbg !35 {
bb:
%i = alloca i32, align 4
- %i2 = alloca i32 (...)*, align 8
- store i32 %arg, i32* %i, align 4, !tbaa !19
- call void @llvm.dbg.declare(metadata i32* %i, metadata !42, metadata !DIExpression()), !dbg !44
- store i32 (...)* %arg1, i32 (...)** %i2, align 8, !tbaa !45
- call void @llvm.dbg.declare(metadata i32 (...)** %i2, metadata !43, metadata !DIExpression()), !dbg !47
+ %i2 = alloca ptr, align 8
+ store i32 %arg, ptr %i, align 4, !tbaa !19
+ call void @llvm.dbg.declare(metadata ptr %i, metadata !42, metadata !DIExpression()), !dbg !44
+ store ptr %arg1, ptr %i2, align 8, !tbaa !45
+ call void @llvm.dbg.declare(metadata ptr %i2, metadata !43, metadata !DIExpression()), !dbg !47
call void @llvm.pseudoprobe(i64 6699318081062747564, i64 1, i32 0, i64 -1), !dbg !48
- %i3 = load i32 (...)*, i32 (...)** %i2, align 8, !dbg !48, !tbaa !45
- %i4 = load i32, i32* %i, align 4, !dbg !49, !tbaa !19
- %i5 = bitcast i32 (...)* %i3 to i32 (i32, ...)*, !dbg !48
- %i6 = call i32 (i32, ...) %i5(i32 %i4), !dbg !50
+ %i3 = load ptr, ptr %i2, align 8, !dbg !48, !tbaa !45
+ %i4 = load i32, ptr %i, align 4, !dbg !49, !tbaa !19
+ %i6 = call i32 (i32, ...) %i3(i32 %i4), !dbg !50
ret i32 %i6, !dbg !52
}
@@ -56,89 +55,82 @@ bb:
define dso_local i32 @main() #0 !dbg !53 {
bb:
%i = alloca i32, align 4
- %i1 = alloca i32 (i32)*, align 8
+ %i1 = alloca ptr, align 8
%i2 = alloca i32, align 4
%i3 = alloca i32, align 4
- store i32 0, i32* %i, align 4
+ store i32 0, ptr %i, align 4
call void @llvm.pseudoprobe(i64 -2624081020897602054, i64 1, i32 0, i64 -1), !dbg !62
- %i4 = bitcast i32 (i32)** %i1 to i8*, !dbg !62
- call void @llvm.lifetime.start.p0i8(i64 8, i8* %i4), !dbg !62
- call void @llvm.dbg.declare(metadata i32 (i32)** %i1, metadata !57, metadata !DIExpression()), !dbg !63
- %i5 = bitcast i32* %i2 to i8*, !dbg !64
- call void @llvm.lifetime.start.p0i8(i64 4, i8* %i5), !dbg !64
- call void @llvm.dbg.declare(metadata i32* %i2, metadata !59, metadata !DIExpression()), !dbg !65
- store i32 0, i32* %i2, align 4, !dbg !65, !tbaa !19
- %i6 = bitcast i32* %i3 to i8*, !dbg !66
- call void @llvm.lifetime.start.p0i8(i64 4, i8* %i6), !dbg !66
- call void @llvm.dbg.declare(metadata i32* %i3, metadata !60, metadata !DIExpression()), !dbg !67
- store i32 0, i32* %i3, align 4, !dbg !67, !tbaa !19
+ call void @llvm.lifetime.start.p0(i64 8, ptr %i1), !dbg !62
+ call void @llvm.dbg.declare(metadata ptr %i1, metadata !57, metadata !DIExpression()), !dbg !63
+ call void @llvm.lifetime.start.p0(i64 4, ptr %i2), !dbg !64
+ call void @llvm.dbg.declare(metadata ptr %i2, metadata !59, metadata !DIExpression()), !dbg !65
+ store i32 0, ptr %i2, align 4, !dbg !65, !tbaa !19
+ call void @llvm.lifetime.start.p0(i64 4, ptr %i3), !dbg !66
+ call void @llvm.dbg.declare(metadata ptr %i3, metadata !60, metadata !DIExpression()), !dbg !67
+ store i32 0, ptr %i3, align 4, !dbg !67, !tbaa !19
br label %bb7, !dbg !66
bb7: ; preds = %bb25, %bb
call void @llvm.pseudoprobe(i64 -2624081020897602054, i64 2, i32 0, i64 -1), !dbg !68
- %i8 = load i32, i32* %i3, align 4, !dbg !68, !tbaa !19
+ %i8 = load i32, ptr %i3, align 4, !dbg !68, !tbaa !19
%i9 = icmp slt i32 %i8, 1000000000, !dbg !70
br i1 %i9, label %bb12, label %bb10, !dbg !71
bb10: ; preds = %bb7
call void @llvm.pseudoprobe(i64 -2624081020897602054, i64 3, i32 0, i64 -1), !dbg !72
- %i11 = bitcast i32* %i3 to i8*, !dbg !72
- call void @llvm.lifetime.end.p0i8(i64 4, i8* %i11), !dbg !72
+ call void @llvm.lifetime.end.p0(i64 4, ptr %i3), !dbg !72
br label %bb28
bb12: ; preds = %bb7
call void @llvm.pseudoprobe(i64 -2624081020897602054, i64 4, i32 0, i64 -1), !dbg !73
- %i13 = load i32, i32* %i3, align 4, !dbg !73, !tbaa !19
+ %i13 = load i32, ptr %i3, align 4, !dbg !73, !tbaa !19
%i14 = srem i32 %i13, 100, !dbg !76
%i15 = icmp eq i32 %i14, 0, !dbg !77
br i1 %i15, label %bb16, label %bb17, !dbg !78
bb16: ; preds = %bb12
call void @llvm.pseudoprobe(i64 -2624081020897602054, i64 5, i32 0, i64 -1), !dbg !79
- store i32 (i32)* @bar, i32 (i32)** %i1, align 8, !dbg !79, !tbaa !45
+ store ptr @bar, ptr %i1, align 8, !dbg !79, !tbaa !45
br label %bb18, !dbg !80
bb17: ; preds = %bb12
call void @llvm.pseudoprobe(i64 -2624081020897602054, i64 6, i32 0, i64 -1), !dbg !81
- store i32 (i32)* @baz, i32 (i32)** %i1, align 8, !dbg !81, !tbaa !45
+ store ptr @baz, ptr %i1, align 8, !dbg !81, !tbaa !45
br label %bb18
bb18: ; preds = %bb17, %bb16
call void @llvm.pseudoprobe(i64 -2624081020897602054, i64 7, i32 0, i64 -1), !dbg !82
- %i19 = load i32, i32* %i3, align 4, !dbg !82, !tbaa !19
- %i20 = load i32 (i32)*, i32 (i32)** %i1, align 8, !dbg !83, !tbaa !45
- %i21 = bitcast i32 (i32)* %i20 to i32 (...)*, !dbg !83
- %i22 = call i32 @foo(i32 %i19, i32 (...)* %i21), !dbg !84
- %i23 = load i32, i32* %i2, align 4, !dbg !86, !tbaa !19
+ %i19 = load i32, ptr %i3, align 4, !dbg !82, !tbaa !19
+ %i20 = load ptr, ptr %i1, align 8, !dbg !83, !tbaa !45
+ %i22 = call i32 @foo(i32 %i19, ptr %i20), !dbg !84
+ %i23 = load i32, ptr %i2, align 4, !dbg !86, !tbaa !19
%i24 = add nsw i32 %i23, %i22, !dbg !86
- store i32 %i24, i32* %i2, align 4, !dbg !86, !tbaa !19
+ store i32 %i24, ptr %i2, align 4, !dbg !86, !tbaa !19
br label %bb25, !dbg !87
bb25: ; preds = %bb18
call void @llvm.pseudoprobe(i64 -2624081020897602054, i64 8, i32 0, i64 -1), !dbg !88
- %i26 = load i32, i32* %i3, align 4, !dbg !88, !tbaa !19
+ %i26 = load i32, ptr %i3, align 4, !dbg !88, !tbaa !19
%i27 = add nsw i32 %i26, 1, !dbg !88
- store i32 %i27, i32* %i3, align 4, !dbg !88, !tbaa !19
+ store i32 %i27, ptr %i3, align 4, !dbg !88, !tbaa !19
br label %bb7, !dbg !72, !llvm.loop !89
bb28: ; preds = %bb10
call void @llvm.pseudoprobe(i64 -2624081020897602054, i64 9, i32 0, i64 -1), !dbg !92
- %i29 = load i32, i32* %i2, align 4, !dbg !92, !tbaa !19
- %i30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %i29), !dbg !93
- %i31 = bitcast i32* %i2 to i8*, !dbg !95
- call void @llvm.lifetime.end.p0i8(i64 4, i8* %i31), !dbg !95
- %i32 = bitcast i32 (i32)** %i1 to i8*, !dbg !95
- call void @llvm.lifetime.end.p0i8(i64 8, i8* %i32), !dbg !95
+ %i29 = load i32, ptr %i2, align 4, !dbg !92, !tbaa !19
+ %i30 = call i32 (ptr, ...) @printf(ptr @.str, i32 %i29), !dbg !93
+ call void @llvm.lifetime.end.p0(i64 4, ptr %i2), !dbg !95
+ call void @llvm.lifetime.end.p0(i64 8, ptr %i1), !dbg !95
ret i32 0, !dbg !96
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
-declare void @llvm.lifetime.start.p0i8(i64 immarg, i8* nocapture) #2
+declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
-declare void @llvm.lifetime.end.p0i8(i64 immarg, i8* nocapture) #2
+declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
-declare dso_local i32 @printf(i8*, ...)
+declare dso_local i32 @printf(ptr, ...)
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite)
declare void @llvm.pseudoprobe(i64, i64, i32, i64) #3
More information about the llvm-commits
mailing list