[llvm] 5c6453e - PlaceSafepoints: Convert tests to opaque pointers
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 28 06:47:55 PST 2022
Author: Matt Arsenault
Date: 2022-11-28T09:35:04-05:00
New Revision: 5c6453eb1863c988c102006cc5bbbdd770ea1657
URL: https://github.com/llvm/llvm-project/commit/5c6453eb1863c988c102006cc5bbbdd770ea1657
DIFF: https://github.com/llvm/llvm-project/commit/5c6453eb1863c988c102006cc5bbbdd770ea1657.diff
LOG: PlaceSafepoints: Convert tests to opaque pointers
Added:
Modified:
llvm/test/Transforms/PlaceSafepoints/memset.ll
llvm/test/Transforms/PlaceSafepoints/statepoint-frameescape.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/PlaceSafepoints/memset.ll b/llvm/test/Transforms/PlaceSafepoints/memset.ll
index d5d8ec91ecbc6..dbe93c249b5ac 100644
--- a/llvm/test/Transforms/PlaceSafepoints/memset.ll
+++ b/llvm/test/Transforms/PlaceSafepoints/memset.ll
@@ -1,17 +1,17 @@
; RUN: opt < %s -S -place-safepoints -enable-new-pm=0 | FileCheck %s
-define void @test(i32, i8 addrspace(1)* %ptr) gc "statepoint-example" {
+define void @test(i32, ptr addrspace(1) %ptr) gc "statepoint-example" {
; CHECK-LABEL: @test
; CHECK-NEXT: llvm.memset
; CHECK: do_safepoint
; CHECK: @foo
- call void @llvm.memset.p1i8.i64(i8 addrspace(1)* align 8 %ptr, i8 0, i64 24, i1 false)
+ call void @llvm.memset.p1.i64(ptr addrspace(1) align 8 %ptr, i8 0, i64 24, i1 false)
call void @foo()
ret void
}
declare void @foo()
-declare void @llvm.memset.p1i8.i64(i8 addrspace(1)*, i8, i64, i1)
+declare void @llvm.memset.p1.i64(ptr addrspace(1), i8, i64, i1)
declare void @do_safepoint()
define void @gc.safepoint_poll() {
diff --git a/llvm/test/Transforms/PlaceSafepoints/statepoint-frameescape.ll b/llvm/test/Transforms/PlaceSafepoints/statepoint-frameescape.ll
index c97eb76fe657c..fbd6852da99d8 100644
--- a/llvm/test/Transforms/PlaceSafepoints/statepoint-frameescape.ll
+++ b/llvm/test/Transforms/PlaceSafepoints/statepoint-frameescape.ll
@@ -11,7 +11,7 @@ entry:
; CHECK-NEXT: localescape
; CHECK-NEXT: call void @do_safepoint
%ptr = alloca i32
- call void (...) @llvm.localescape(i32* %ptr)
+ call void (...) @llvm.localescape(ptr %ptr)
ret void
}
More information about the llvm-commits
mailing list