[llvm] 779df38 - [LoongArch] Convert tests to opaque pointers (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 16 01:20:55 PST 2023
Author: Nikita Popov
Date: 2023-01-16T10:20:46+01:00
New Revision: 779df38242447d1b2ca7e5331c95613b17d11932
URL: https://github.com/llvm/llvm-project/commit/779df38242447d1b2ca7e5331c95613b17d11932
DIFF: https://github.com/llvm/llvm-project/commit/779df38242447d1b2ca7e5331c95613b17d11932.diff
LOG: [LoongArch] Convert tests to opaque pointers (NFC)
Added:
Modified:
llvm/test/CodeGen/LoongArch/blockaddress-symbol.ll
llvm/test/CodeGen/LoongArch/inline-asm-constraint-f.ll
llvm/test/CodeGen/LoongArch/stack-realignment-with-variable-sized-objects.ll
llvm/test/CodeGen/LoongArch/stack-realignment.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/LoongArch/blockaddress-symbol.ll b/llvm/test/CodeGen/LoongArch/blockaddress-symbol.ll
index 3f0d34ea41f63..d07092230a4da 100644
--- a/llvm/test/CodeGen/LoongArch/blockaddress-symbol.ll
+++ b/llvm/test/CodeGen/LoongArch/blockaddress-symbol.ll
@@ -18,7 +18,7 @@ define void @operand_block_address() nounwind {
; CHECK-NEXT: .Ltmp0: # Block address taken
; CHECK-NEXT: # %bb.1: # %bb
; CHECK-NEXT: ret
- call void asm sideeffect "b $0", "i"(i8* blockaddress(@operand_block_address, %bb))
+ call void asm sideeffect "b $0", "i"(ptr blockaddress(@operand_block_address, %bb))
br label %bb
bb:
ret void
diff --git a/llvm/test/CodeGen/LoongArch/inline-asm-constraint-f.ll b/llvm/test/CodeGen/LoongArch/inline-asm-constraint-f.ll
index a5569cdf9a5b2..fa675e4bbb324 100644
--- a/llvm/test/CodeGen/LoongArch/inline-asm-constraint-f.ll
+++ b/llvm/test/CodeGen/LoongArch/inline-asm-constraint-f.ll
@@ -26,7 +26,7 @@ define double @constraint_f_double(double %a) nounwind {
; LA64-NEXT: fadd.d $fa0, $fa0, $fa1
; LA64-NEXT: #NO_APP
; LA64-NEXT: ret
- %1 = load double, double* @gd
+ %1 = load double, ptr @gd
%2 = tail call double asm "fadd.d $0, $1, $2", "=f,f,f"(double %a, double %1)
ret double %2
}
diff --git a/llvm/test/CodeGen/LoongArch/stack-realignment-with-variable-sized-objects.ll b/llvm/test/CodeGen/LoongArch/stack-realignment-with-variable-sized-objects.ll
index 7e2f8246bca44..667a7aff8b9b7 100644
--- a/llvm/test/CodeGen/LoongArch/stack-realignment-with-variable-sized-objects.ll
+++ b/llvm/test/CodeGen/LoongArch/stack-realignment-with-variable-sized-objects.ll
@@ -4,7 +4,7 @@
; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \
; RUN: | FileCheck %s --check-prefix=LA64
-declare void @callee(i8*, i32*)
+declare void @callee(ptr, ptr)
define void @caller(i32 %n) {
; LA32-LABEL: caller:
@@ -68,6 +68,6 @@ define void @caller(i32 %n) {
; LA64-NEXT: ret
%1 = alloca i8, i32 %n
%2 = alloca i32, align 64
- call void @callee(i8* %1, i32 *%2)
+ call void @callee(ptr %1, ptr %2)
ret void
}
diff --git a/llvm/test/CodeGen/LoongArch/stack-realignment.ll b/llvm/test/CodeGen/LoongArch/stack-realignment.ll
index b49fe3559fd83..a9f3fc4e2a0e5 100644
--- a/llvm/test/CodeGen/LoongArch/stack-realignment.ll
+++ b/llvm/test/CodeGen/LoongArch/stack-realignment.ll
@@ -4,7 +4,7 @@
; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \
; RUN: | FileCheck %s --check-prefix=LA64
-declare void @callee(i8*)
+declare void @callee(ptr)
define void @caller32() {
; LA32-LABEL: caller32:
@@ -47,7 +47,7 @@ define void @caller32() {
; LA64-NEXT: addi.d $sp, $sp, 32
; LA64-NEXT: ret
%1 = alloca i8, align 32
- call void @callee(i8* %1)
+ call void @callee(ptr %1)
ret void
}
@@ -76,7 +76,7 @@ define void @caller_no_realign32() "no-realign-stack" {
; LA64-NEXT: addi.d $sp, $sp, 16
; LA64-NEXT: ret
%1 = alloca i8, align 32
- call void @callee(i8* %1)
+ call void @callee(ptr %1)
ret void
}
@@ -121,7 +121,7 @@ define void @caller64() {
; LA64-NEXT: addi.d $sp, $sp, 64
; LA64-NEXT: ret
%1 = alloca i8, align 64
- call void @callee(i8* %1)
+ call void @callee(ptr %1)
ret void
}
@@ -150,7 +150,7 @@ define void @caller_no_realign64() "no-realign-stack" {
; LA64-NEXT: addi.d $sp, $sp, 16
; LA64-NEXT: ret
%1 = alloca i8, align 64
- call void @callee(i8* %1)
+ call void @callee(ptr %1)
ret void
}
@@ -195,7 +195,7 @@ define void @caller128() {
; LA64-NEXT: addi.d $sp, $sp, 128
; LA64-NEXT: ret
%1 = alloca i8, align 128
- call void @callee(i8* %1)
+ call void @callee(ptr %1)
ret void
}
@@ -224,7 +224,7 @@ define void @caller_no_realign128() "no-realign-stack" {
; LA64-NEXT: addi.d $sp, $sp, 16
; LA64-NEXT: ret
%1 = alloca i8, align 128
- call void @callee(i8* %1)
+ call void @callee(ptr %1)
ret void
}
@@ -269,7 +269,7 @@ define void @caller256() {
; LA64-NEXT: addi.d $sp, $sp, 256
; LA64-NEXT: ret
%1 = alloca i8, align 256
- call void @callee(i8* %1)
+ call void @callee(ptr %1)
ret void
}
@@ -298,7 +298,7 @@ define void @caller_no_realign256() "no-realign-stack" {
; LA64-NEXT: addi.d $sp, $sp, 16
; LA64-NEXT: ret
%1 = alloca i8, align 256
- call void @callee(i8* %1)
+ call void @callee(ptr %1)
ret void
}
@@ -343,7 +343,7 @@ define void @caller512() {
; LA64-NEXT: addi.d $sp, $sp, 1024
; LA64-NEXT: ret
%1 = alloca i8, align 512
- call void @callee(i8* %1)
+ call void @callee(ptr %1)
ret void
}
@@ -372,7 +372,7 @@ define void @caller_no_realign512() "no-realign-stack" {
; LA64-NEXT: addi.d $sp, $sp, 16
; LA64-NEXT: ret
%1 = alloca i8, align 512
- call void @callee(i8* %1)
+ call void @callee(ptr %1)
ret void
}
@@ -421,7 +421,7 @@ define void @caller1024() {
; LA64-NEXT: addi.d $sp, $sp, 2032
; LA64-NEXT: ret
%1 = alloca i8, align 1024
- call void @callee(i8* %1)
+ call void @callee(ptr %1)
ret void
}
@@ -450,7 +450,7 @@ define void @caller_no_realign1024() "no-realign-stack" {
; LA64-NEXT: addi.d $sp, $sp, 16
; LA64-NEXT: ret
%1 = alloca i8, align 1024
- call void @callee(i8* %1)
+ call void @callee(ptr %1)
ret void
}
@@ -507,7 +507,7 @@ define void @caller2048() {
; LA64-NEXT: addi.d $sp, $sp, 2032
; LA64-NEXT: ret
%1 = alloca i8, align 2048
- call void @callee(i8* %1)
+ call void @callee(ptr %1)
ret void
}
@@ -536,7 +536,7 @@ define void @caller_no_realign2048() "no-realign-stack" {
; LA64-NEXT: addi.d $sp, $sp, 16
; LA64-NEXT: ret
%1 = alloca i8, align 2048
- call void @callee(i8* %1)
+ call void @callee(ptr %1)
ret void
}
@@ -597,7 +597,7 @@ define void @caller4096() {
; LA64-NEXT: addi.d $sp, $sp, 2032
; LA64-NEXT: ret
%1 = alloca i8, align 4096
- call void @callee(i8* %1)
+ call void @callee(ptr %1)
ret void
}
@@ -626,6 +626,6 @@ define void @caller_no_realign4096() "no-realign-stack" {
; LA64-NEXT: addi.d $sp, $sp, 16
; LA64-NEXT: ret
%1 = alloca i8, align 4096
- call void @callee(i8* %1)
+ call void @callee(ptr %1)
ret void
}
More information about the llvm-commits
mailing list