[llvm] 1e22873 - [AMDGPU][NFC] Rename two LIT test files

Changpeng Fang via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 10 11:33:51 PDT 2023


Author: Changpeng Fang
Date: 2023-08-10T11:31:14-07:00
New Revision: 1e22873ef4b2d40ec3a7e78040acc58d68c122a7

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

LOG: [AMDGPU][NFC] Rename two LIT test files

Added: 
    llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg-v2.ll

Modified: 
    llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg.ll

Removed: 
    llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg-v3.ll


################################################################################
diff  --git a/llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg-v2.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg-v2.ll
new file mode 100644
index 00000000000000..414a1d79208b2e
--- /dev/null
+++ b/llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg-v2.ll
@@ -0,0 +1,35 @@
+; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s
+
+; CHECK:      - Name:            test_ro_arg
+; CHECK-NEXT:   SymbolName:      'test_ro_arg at kd'
+; CHECK-NEXT:   Args:
+; CHECK-NEXT: - Name:            in
+; CHECK-NEXT:   TypeName:        'float*'
+; CHECK-NEXT:   Size:            8
+; CHECK-NEXT:   Align:           8
+; CHECK-NEXT:   ValueKind:       GlobalBuffer
+; CHECK-NEXT:   AddrSpaceQual:   Global
+; CHECK-NEXT:   AccQual:         ReadOnly
+; CHECK-NEXT:   IsConst:         true
+; CHECK-NEXT:   IsRestrict:      true
+; CHECK-NEXT: - Name:            out
+; CHECK-NEXT:   TypeName:        'float*'
+; CHECK-NEXT:   Size:            8
+; CHECK-NEXT:   Align:           8
+; CHECK-NEXT:   ValueKind:       GlobalBuffer
+; CHECK-NEXT:   AddrSpaceQual:   Global
+; CHECK-NEXT:   AccQual:         Default
+
+define amdgpu_kernel void @test_ro_arg(ptr addrspace(1) noalias readonly %in, ptr addrspace(1) %out)
+    !kernel_arg_addr_space !0 !kernel_arg_access_qual !1 !kernel_arg_type !2
+    !kernel_arg_base_type !2 !kernel_arg_type_qual !3 {
+  ret void
+}
+
+!0 = !{i32 1, i32 1}
+!1 = !{!"none", !"none"}
+!2 = !{!"float*", !"float*"}
+!3 = !{!"const restrict", !""}
+
+!llvm.module.flags = !{!99}
+!99 = !{i32 1, !"amdgpu_code_object_version", i32 200}

diff  --git a/llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg-v3.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg-v3.ll
deleted file mode 100644
index f5fc387f419b19..00000000000000
--- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg-v3.ll
+++ /dev/null
@@ -1,31 +0,0 @@
-; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s
-
-; CHECK:        - .args:
-; CHECK-NEXT:       - .access:         read_only
-; CHECK-NEXT:         .address_space:  global
-; CHECK-NEXT:         .is_const:       true
-; CHECK-NEXT:         .is_restrict:    true
-; CHECK-NEXT:         .name:           in
-; CHECK-NEXT:         .offset:         0
-; CHECK-NEXT:         .size:           8
-; CHECK-NEXT:         .type_name:      'float*'
-; CHECK-NEXT:         .value_kind:     global_buffer
-; CHECK-NEXT:       - .address_space:  global
-; CHECK-NEXT:         .name:           out
-; CHECK-NEXT:         .offset:         8
-; CHECK-NEXT:         .size:           8
-; CHECK-NEXT:         .type_name:      'float*'
-; CHECK-NEXT:         .value_kind:     global_buffer
-; CHECK:          .name:           test_ro_arg
-; CHECK:          .symbol:         test_ro_arg.kd
-
-define amdgpu_kernel void @test_ro_arg(ptr addrspace(1) noalias readonly %in, ptr addrspace(1) %out)
-    !kernel_arg_addr_space !0 !kernel_arg_access_qual !1 !kernel_arg_type !2
-    !kernel_arg_base_type !2 !kernel_arg_type_qual !3 {
-  ret void
-}
-
-!0 = !{i32 1, i32 1}
-!1 = !{!"none", !"none"}
-!2 = !{!"float*", !"float*"}
-!3 = !{!"const restrict", !""}

diff  --git a/llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg.ll
index 414a1d79208b2e..f5fc387f419b19 100644
--- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg.ll
+++ b/llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg.ll
@@ -1,24 +1,23 @@
 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s
 
-; CHECK:      - Name:            test_ro_arg
-; CHECK-NEXT:   SymbolName:      'test_ro_arg at kd'
-; CHECK-NEXT:   Args:
-; CHECK-NEXT: - Name:            in
-; CHECK-NEXT:   TypeName:        'float*'
-; CHECK-NEXT:   Size:            8
-; CHECK-NEXT:   Align:           8
-; CHECK-NEXT:   ValueKind:       GlobalBuffer
-; CHECK-NEXT:   AddrSpaceQual:   Global
-; CHECK-NEXT:   AccQual:         ReadOnly
-; CHECK-NEXT:   IsConst:         true
-; CHECK-NEXT:   IsRestrict:      true
-; CHECK-NEXT: - Name:            out
-; CHECK-NEXT:   TypeName:        'float*'
-; CHECK-NEXT:   Size:            8
-; CHECK-NEXT:   Align:           8
-; CHECK-NEXT:   ValueKind:       GlobalBuffer
-; CHECK-NEXT:   AddrSpaceQual:   Global
-; CHECK-NEXT:   AccQual:         Default
+; CHECK:        - .args:
+; CHECK-NEXT:       - .access:         read_only
+; CHECK-NEXT:         .address_space:  global
+; CHECK-NEXT:         .is_const:       true
+; CHECK-NEXT:         .is_restrict:    true
+; CHECK-NEXT:         .name:           in
+; CHECK-NEXT:         .offset:         0
+; CHECK-NEXT:         .size:           8
+; CHECK-NEXT:         .type_name:      'float*'
+; CHECK-NEXT:         .value_kind:     global_buffer
+; CHECK-NEXT:       - .address_space:  global
+; CHECK-NEXT:         .name:           out
+; CHECK-NEXT:         .offset:         8
+; CHECK-NEXT:         .size:           8
+; CHECK-NEXT:         .type_name:      'float*'
+; CHECK-NEXT:         .value_kind:     global_buffer
+; CHECK:          .name:           test_ro_arg
+; CHECK:          .symbol:         test_ro_arg.kd
 
 define amdgpu_kernel void @test_ro_arg(ptr addrspace(1) noalias readonly %in, ptr addrspace(1) %out)
     !kernel_arg_addr_space !0 !kernel_arg_access_qual !1 !kernel_arg_type !2
@@ -30,6 +29,3 @@ define amdgpu_kernel void @test_ro_arg(ptr addrspace(1) noalias readonly %in, pt
 !1 = !{!"none", !"none"}
 !2 = !{!"float*", !"float*"}
 !3 = !{!"const restrict", !""}
-
-!llvm.module.flags = !{!99}
-!99 = !{i32 1, !"amdgpu_code_object_version", i32 200}


        


More information about the llvm-commits mailing list