[BugPoint] Convert tests to opaque pointers (NFC)
authorNikita Popov <npopov@redhat.com>
Tue, 13 Dec 2022 15:05:27 +0000 (16:05 +0100)
committerNikita Popov <npopov@redhat.com>
Tue, 13 Dec 2022 15:06:06 +0000 (16:06 +0100)
llvm/test/BugPoint/attr-crash.ll
llvm/test/BugPoint/metadata.ll
llvm/test/BugPoint/remove_arguments_test.ll
llvm/test/BugPoint/replace-funcs-with-null.ll

index 08e4380..c79671a 100644 (file)
@@ -8,7 +8,7 @@ target triple = "x86_64-unknown-linux-gnu"
 
 
 ; Function Attrs: noinline nounwind optnone uwtable
-define dso_local i32 @main(i32 %argc, i8** %argv) local_unnamed_addr #0 {
+define dso_local i32 @main(i32 %argc, ptr %argv) local_unnamed_addr #0 {
   ret i32 0
 }
 
index b5a1e73..b1fb6c0 100644 (file)
 ; NOTYPE-NOT: !DIBasicType
 
 %rust_task = type {}
-define void @test(i32* %a, i8* %b) !dbg !9 {
+define void @test(ptr %a, ptr %b) !dbg !9 {
     %s = mul i8 22, 9, !attach !0, !dbg !10
-    store i8 %s, i8* %b, !attach !1, !dbg !11
+    store i8 %s, ptr %b, !attach !1, !dbg !11
     call void @foo(), !attach !2, !dbg !12
-    store i32 7, i32* %a, !attach !3, !dbg !13
+    store i32 7, ptr %a, !attach !3, !dbg !13
     %t = add i32 0, 5, !attach !4, !dbg !14
     ret void
 }
index aaf12a1..9e9c51e 100644 (file)
@@ -12,7 +12,7 @@
 declare i32 @test2()
 
 ; CHECK: define void @test() {
-define i32 @test(i32 %A, %struct.anon* %B, float %C) {
+define i32 @test(i32 %A, ptr %B, float %C) {
        call i32 @test2()
        ret i32 %1
 }
index 3bc4acd..783c8a0 100644 (file)
@@ -3,7 +3,7 @@
 ; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -replace-funcs-with-null -bugpoint-crash-decl-funcs -silence-passes -safe-run-llc
 ; REQUIRES: plugins
 
-@foo2 = alias i32 (), i32 ()* @foo
+@foo2 = alias i32 (), ptr @foo
 
 define i32 @foo() { ret i32 1 }
 
@@ -14,4 +14,4 @@ define i32 @test() {
 
 define i32 @bar() { ret i32 2 }
 
-@llvm.used = appending global [1 x i8*] [i8* bitcast (i32 ()* @foo to i8*)], section "llvm.metadata"
+@llvm.used = appending global [1 x ptr] [ptr @foo], section "llvm.metadata"