[llvm] afeaf27 - StripSymbols: Convert tests to opaque pointers
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 28 06:47:52 PST 2022
Author: Matt Arsenault
Date: 2022-11-28T09:34:38-05:00
New Revision: afeaf279d3f75d482ba38c3e2715f0ad0e85e83e
URL: https://github.com/llvm/llvm-project/commit/afeaf279d3f75d482ba38c3e2715f0ad0e85e83e
DIFF: https://github.com/llvm/llvm-project/commit/afeaf279d3f75d482ba38c3e2715f0ad0e85e83e.diff
LOG: StripSymbols: Convert tests to opaque pointers
Added:
Modified:
llvm/test/Transforms/StripSymbols/2007-01-15-llvm.used.ll
llvm/test/Transforms/StripSymbols/block-address.ll
llvm/test/Transforms/StripSymbols/strip-dead-debug-info.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/StripSymbols/2007-01-15-llvm.used.ll b/llvm/test/Transforms/StripSymbols/2007-01-15-llvm.used.ll
index 3a7bcff922606..f95560a162e08 100644
--- a/llvm/test/Transforms/StripSymbols/2007-01-15-llvm.used.ll
+++ b/llvm/test/Transforms/StripSymbols/2007-01-15-llvm.used.ll
@@ -5,8 +5,8 @@
; CHECK: foo
; CHECK: bar
- at llvm.used = appending global [2 x i8*] [ i8* bitcast (i32* @foo to i8*), i8* bitcast (i32 ()* @bar to i8*) ], section "llvm.metadata" ; <[2 x i8*]*> [#uses=0]
- at foo = internal constant i32 41 ; <i32*> [#uses=1]
+ at llvm.used = appending global [2 x ptr] [ ptr @foo, ptr @bar ], section "llvm.metadata" ; <ptr> [#uses=0]
+ at foo = internal constant i32 41 ; <ptr> [#uses=1]
define internal i32 @bar() nounwind {
entry:
diff --git a/llvm/test/Transforms/StripSymbols/block-address.ll b/llvm/test/Transforms/StripSymbols/block-address.ll
index 6c2efa6d08358..746c89ff28494 100644
--- a/llvm/test/Transforms/StripSymbols/block-address.ll
+++ b/llvm/test/Transforms/StripSymbols/block-address.ll
@@ -1,17 +1,17 @@
; RUN: opt -passes=strip -S < %s | FileCheck %s
; PR10286
- at main_addrs = constant [2 x i8*] [i8* blockaddress(@f, %FOO), i8* blockaddress(@f, %BAR)]
-; CHECK: @main_addrs = constant [2 x i8*] [i8* blockaddress(@f, %2), i8* blockaddress(@f, %3)]
+ at main_addrs = constant [2 x ptr] [ptr blockaddress(@f, %FOO), ptr blockaddress(@f, %BAR)]
+; CHECK: @main_addrs = constant [2 x ptr] [ptr blockaddress(@f, %2), ptr blockaddress(@f, %3)]
declare void @foo() nounwind
declare void @bar() nounwind
-define void @f(i8* %indirect.goto.dest) nounwind uwtable ssp {
+define void @f(ptr %indirect.goto.dest) nounwind uwtable ssp {
entry:
- indirectbr i8* %indirect.goto.dest, [label %FOO, label %BAR]
+ indirectbr ptr %indirect.goto.dest, [label %FOO, label %BAR]
- ; CHECK: indirectbr i8* %0, [label %2, label %3]
+ ; CHECK: indirectbr ptr %0, [label %2, label %3]
FOO:
call void @foo()
diff --git a/llvm/test/Transforms/StripSymbols/strip-dead-debug-info.ll b/llvm/test/Transforms/StripSymbols/strip-dead-debug-info.ll
index 837e2724c23fa..13911d3b1e928 100644
--- a/llvm/test/Transforms/StripSymbols/strip-dead-debug-info.ll
+++ b/llvm/test/Transforms/StripSymbols/strip-dead-debug-info.ll
@@ -25,7 +25,7 @@ entry:
define i32 @foo(i32 %i) #2 !dbg !15 {
entry:
tail call void @llvm.dbg.value(metadata i32 %i, metadata !18, metadata !19), !dbg !20
- %.0 = load i32, i32* @xyz, align 4, !dbg !30
+ %.0 = load i32, ptr @xyz, align 4, !dbg !30
ret i32 %.0, !dbg !21
}
More information about the llvm-commits
mailing list