[llvm] f75dd8b - [BugPoint] Convert tests to opaque pointers (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 13 07:07:01 PST 2022


Author: Nikita Popov
Date: 2022-12-13T16:06:06+01:00
New Revision: f75dd8b04c770e5818d304cff13b6ef0e50a9748

URL: https://github.com/llvm/llvm-project/commit/f75dd8b04c770e5818d304cff13b6ef0e50a9748
DIFF: https://github.com/llvm/llvm-project/commit/f75dd8b04c770e5818d304cff13b6ef0e50a9748.diff

LOG: [BugPoint] Convert tests to opaque pointers (NFC)

Added: 
    

Modified: 
    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

Removed: 
    


################################################################################
diff  --git a/llvm/test/BugPoint/attr-crash.ll b/llvm/test/BugPoint/attr-crash.ll
index 08e43808ec50c..c79671a00dba6 100644
--- a/llvm/test/BugPoint/attr-crash.ll
+++ b/llvm/test/BugPoint/attr-crash.ll
@@ -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
 }
 

diff  --git a/llvm/test/BugPoint/metadata.ll b/llvm/test/BugPoint/metadata.ll
index b5a1e7377000f..b1fb6c0110414 100644
--- a/llvm/test/BugPoint/metadata.ll
+++ b/llvm/test/BugPoint/metadata.ll
@@ -19,11 +19,11 @@
 ; 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
 }

diff  --git a/llvm/test/BugPoint/remove_arguments_test.ll b/llvm/test/BugPoint/remove_arguments_test.ll
index aaf12a193b6e9..9e9c51eaafc38 100644
--- a/llvm/test/BugPoint/remove_arguments_test.ll
+++ b/llvm/test/BugPoint/remove_arguments_test.ll
@@ -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
 }

diff  --git a/llvm/test/BugPoint/replace-funcs-with-null.ll b/llvm/test/BugPoint/replace-funcs-with-null.ll
index 3bc4acd01b2ad..783c8a07911c0 100644
--- a/llvm/test/BugPoint/replace-funcs-with-null.ll
+++ b/llvm/test/BugPoint/replace-funcs-with-null.ll
@@ -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
 
- at foo2 = alias i32 (), i32 ()* @foo
+ at foo2 = alias i32 (), ptr @foo
 
 define i32 @foo() { ret i32 1 }
 
@@ -14,4 +14,4 @@ define i32 @test() {
 
 define i32 @bar() { ret i32 2 }
 
- at llvm.used = appending global [1 x i8*] [i8* bitcast (i32 ()* @foo to i8*)], section "llvm.metadata"
+ at llvm.used = appending global [1 x ptr] [ptr @foo], section "llvm.metadata"


        


More information about the llvm-commits mailing list