aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2017-10-11 22:18:53 +0000
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2017-10-11 22:18:53 +0000
commit44bc30dd6d6019569062b5dd9f1f33861290a737 (patch)
treef93971794b1a3b215aec00067a55dd16c0c940a6 /test
parentb4627db34f35839793634be9f0ae36d0ecc0871f (diff)
downloadllvm-44bc30dd6d6019569062b5dd9f1f33861290a737.tar.gz
AMDGPU/NFC: Rename code object metadata as HSA metadata
- Rename AMDGPUCodeObjectMetadata to AMDGPUMetadata (PAL metadata will be included in this file in the follow up change) - Rename AMDGPUCodeObjectMetadataStreamer to AMDGPUHSAMetadataStreamer - Introduce HSAMD namespace - Other minor name changes in function and test names git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315522 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg.ll (renamed from test/CodeGen/AMDGPU/code-object-metadata-deduce-ro-arg.ll)0
-rw-r--r--test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full.ll (renamed from test/CodeGen/AMDGPU/code-object-metadata-from-llvm-ir-full.ll)14
-rw-r--r--test/CodeGen/AMDGPU/hsa-metadata-images.ll (renamed from test/CodeGen/AMDGPU/code-object-metadata-images.ll)0
-rw-r--r--test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-1.ll (renamed from test/CodeGen/AMDGPU/code-object-metadata-invalid-ocl-version-1.ll)0
-rw-r--r--test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-2.ll (renamed from test/CodeGen/AMDGPU/code-object-metadata-invalid-ocl-version-2.ll)0
-rw-r--r--test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-3.ll (renamed from test/CodeGen/AMDGPU/code-object-metadata-invalid-ocl-version-3.ll)0
-rw-r--r--test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props.ll (renamed from test/CodeGen/AMDGPU/code-object-metadata-kernel-code-props.ll)0
-rw-r--r--test/CodeGen/AMDGPU/hsa-metadata-kernel-debug-props.ll (renamed from test/CodeGen/AMDGPU/code-object-metadata-kernel-debug-props.ll)0
-rw-r--r--test/MC/AMDGPU/hsa-metadata-kernel-args.s (renamed from test/MC/AMDGPU/code-object-metadata-kernel-args.s)8
-rw-r--r--test/MC/AMDGPU/hsa-metadata-kernel-attrs.s (renamed from test/MC/AMDGPU/code-object-metadata-kernel-attrs.s)8
-rw-r--r--test/MC/AMDGPU/hsa-metadata-kernel-code-props.s (renamed from test/MC/AMDGPU/code-object-metadata-kernel-code-props.s)6
-rw-r--r--test/MC/AMDGPU/hsa-metadata-kernel-debug-props.s (renamed from test/MC/AMDGPU/code-object-metadata-kernel-debug-props.s)6
-rw-r--r--test/MC/AMDGPU/hsa-metadata-unknown-key.s (renamed from test/MC/AMDGPU/code-object-metadata-unknown-key.s)4
-rw-r--r--test/MC/AMDGPU/hsa.s8
14 files changed, 27 insertions, 27 deletions
diff --git a/test/CodeGen/AMDGPU/code-object-metadata-deduce-ro-arg.ll b/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg.ll
index a33c3646e25..a33c3646e25 100644
--- a/test/CodeGen/AMDGPU/code-object-metadata-deduce-ro-arg.ll
+++ b/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg.ll
diff --git a/test/CodeGen/AMDGPU/code-object-metadata-from-llvm-ir-full.ll b/test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full.ll
index ae557875959..8fd529026e4 100644
--- a/test/CodeGen/AMDGPU/code-object-metadata-from-llvm-ir-full.ll
+++ b/test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full.ll
@@ -1,9 +1,9 @@
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -filetype=obj -o - < %s | llvm-readobj -amdgpu-code-object-metadata -elf-output-style=GNU -notes | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=NOTES %s
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx800 -filetype=obj -o - < %s | llvm-readobj -amdgpu-code-object-metadata -elf-output-style=GNU -notes | FileCheck --check-prefix=CHECK --check-prefix=GFX800 --check-prefix=NOTES %s
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readobj -amdgpu-code-object-metadata -elf-output-style=GNU -notes | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s
-; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -amdgpu-dump-comd -amdgpu-verify-comd -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s
-; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx800 -amdgpu-dump-comd -amdgpu-verify-comd -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s
-; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -amdgpu-dump-comd -amdgpu-verify-comd -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s
+; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -amdgpu-dump-hsa-metadata -amdgpu-verify-hsa-metadata -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s
+; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx800 -amdgpu-dump-hsa-metadata -amdgpu-verify-hsa-metadata -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s
+; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -amdgpu-dump-hsa-metadata -amdgpu-verify-hsa-metadata -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s
%struct.A = type { i8, float }
%opencl.image1d_t = type opaque
@@ -1203,7 +1203,7 @@ define amdgpu_kernel void @test_pointee_align(i64 addrspace(1)* %a,
; CHECK-NEXT: Language: OpenCL C
; CHECK-NEXT: LanguageVersion: [ 2, 0 ]
; CHECK-NEXT: Attrs:
-; CHECK-NEXT: RuntimeHandle: __test_block_invoke_kernel_runtime_handle
+; CHECK-NEXT: RuntimeHandle: __test_block_invoke_kernel_runtime_handle
; CHECK-NEXT: Args:
; CHECK-NEXT: - Size: 25
; CHECK-NEXT: Align: 1
@@ -1229,13 +1229,13 @@ define amdgpu_kernel void @test_pointee_align(i64 addrspace(1)* %a,
; CHECK-NEXT: ValueType: I8
; CHECK-NEXT: AddrSpaceQual: Global
define amdgpu_kernel void @__test_block_invoke_kernel(
- <{ i32, i32, i8 addrspace(4)*, i8 addrspace(1)*, i8 }> %arg) #1
+ <{ i32, i32, i8 addrspace(4)*, i8 addrspace(1)*, i8 }> %arg) #0
!kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !110
!kernel_arg_base_type !110 !kernel_arg_type_qual !4 {
ret void
}
-attributes #1 = { "runtime-handle"="__test_block_invoke_kernel_runtime_handle" }
+attributes #0 = { "runtime-handle"="__test_block_invoke_kernel_runtime_handle" }
!llvm.printf.fmts = !{!100, !101}
@@ -1300,4 +1300,4 @@ attributes #1 = { "runtime-handle"="__test_block_invoke_kernel_runtime_handle" }
; GFX800: AMD 0x000092e4 Unknown note type: (0x0000000a)
; GFX900: AMD 0x00008f64 Unknown note type: (0x0000000a)
-; PARSER: AMDGPU Code Object Metadata Parser Test: PASS
+; PARSER: AMDGPU HSA Metadata Parser Test: PASS
diff --git a/test/CodeGen/AMDGPU/code-object-metadata-images.ll b/test/CodeGen/AMDGPU/hsa-metadata-images.ll
index 91856046985..91856046985 100644
--- a/test/CodeGen/AMDGPU/code-object-metadata-images.ll
+++ b/test/CodeGen/AMDGPU/hsa-metadata-images.ll
diff --git a/test/CodeGen/AMDGPU/code-object-metadata-invalid-ocl-version-1.ll b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-1.ll
index f41da9f9213..f41da9f9213 100644
--- a/test/CodeGen/AMDGPU/code-object-metadata-invalid-ocl-version-1.ll
+++ b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-1.ll
diff --git a/test/CodeGen/AMDGPU/code-object-metadata-invalid-ocl-version-2.ll b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-2.ll
index 0509663d984..0509663d984 100644
--- a/test/CodeGen/AMDGPU/code-object-metadata-invalid-ocl-version-2.ll
+++ b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-2.ll
diff --git a/test/CodeGen/AMDGPU/code-object-metadata-invalid-ocl-version-3.ll b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-3.ll
index 7404cec5d78..7404cec5d78 100644
--- a/test/CodeGen/AMDGPU/code-object-metadata-invalid-ocl-version-3.ll
+++ b/test/CodeGen/AMDGPU/hsa-metadata-invalid-ocl-version-3.ll
diff --git a/test/CodeGen/AMDGPU/code-object-metadata-kernel-code-props.ll b/test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props.ll
index 3b232e40cf2..3b232e40cf2 100644
--- a/test/CodeGen/AMDGPU/code-object-metadata-kernel-code-props.ll
+++ b/test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props.ll
diff --git a/test/CodeGen/AMDGPU/code-object-metadata-kernel-debug-props.ll b/test/CodeGen/AMDGPU/hsa-metadata-kernel-debug-props.ll
index 0ffc9220315..0ffc9220315 100644
--- a/test/CodeGen/AMDGPU/code-object-metadata-kernel-debug-props.ll
+++ b/test/CodeGen/AMDGPU/hsa-metadata-kernel-debug-props.ll
diff --git a/test/MC/AMDGPU/code-object-metadata-kernel-args.s b/test/MC/AMDGPU/hsa-metadata-kernel-args.s
index 46cf4f506a5..3416fff2814 100644
--- a/test/MC/AMDGPU/code-object-metadata-kernel-args.s
+++ b/test/MC/AMDGPU/hsa-metadata-kernel-args.s
@@ -2,7 +2,7 @@
// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx800 -show-encoding %s | FileCheck --check-prefix=CHECK --check-prefix=GFX800 %s
// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx900 -show-encoding %s | FileCheck --check-prefix=CHECK --check-prefix=GFX900 %s
-// CHECK: .amdgpu_code_object_metadata
+// CHECK: .amd_amdgpu_hsa_metadata
// CHECK: Version: [ 1, 0 ]
// CHECK: Printf:
// CHECK: - '1:1:4:%d\n'
@@ -35,8 +35,8 @@
// CHECK: ValueKind: HiddenPrintfBuffer
// CHECK: ValueType: I8
// CHECK: AddrSpaceQual: Global
-// CHECK: .end_amdgpu_code_object_metadata
-.amdgpu_code_object_metadata
+// CHECK: .end_amd_amdgpu_hsa_metadata
+.amd_amdgpu_hsa_metadata
Version: [ 1, 0 ]
Printf: [ '1:1:4:%d\n', '2:1:8:%g\n' ]
Kernels:
@@ -67,4 +67,4 @@
ValueKind: HiddenPrintfBuffer
ValueType: I8
AddrSpaceQual: Global
-.end_amdgpu_code_object_metadata
+.end_amd_amdgpu_hsa_metadata
diff --git a/test/MC/AMDGPU/code-object-metadata-kernel-attrs.s b/test/MC/AMDGPU/hsa-metadata-kernel-attrs.s
index 7884b6672e7..525d25e521d 100644
--- a/test/MC/AMDGPU/code-object-metadata-kernel-attrs.s
+++ b/test/MC/AMDGPU/hsa-metadata-kernel-attrs.s
@@ -2,7 +2,7 @@
// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx800 -show-encoding %s | FileCheck --check-prefix=CHECK --check-prefix=GFX800 %s
// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx900 -show-encoding %s | FileCheck --check-prefix=CHECK --check-prefix=GFX900 %s
-// CHECK: .amdgpu_code_object_metadata
+// CHECK: .amd_amdgpu_hsa_metadata
// CHECK: Version: [ 1, 0 ]
// CHECK: Printf:
// CHECK: - '1:1:4:%d\n'
@@ -15,8 +15,8 @@
// CHECK: ReqdWorkGroupSize: [ 1, 2, 4 ]
// CHECK: WorkGroupSizeHint: [ 8, 16, 32 ]
// CHECK: VecTypeHint: int
-// CHECK: .end_amdgpu_code_object_metadata
-.amdgpu_code_object_metadata
+// CHECK: .end_amd_amdgpu_hsa_metadata
+.amd_amdgpu_hsa_metadata
Version: [ 1, 0 ]
Printf: [ '1:1:4:%d\n', '2:1:8:%g\n' ]
Kernels:
@@ -27,4 +27,4 @@
ReqdWorkGroupSize: [ 1, 2, 4 ]
WorkGroupSizeHint: [ 8, 16, 32 ]
VecTypeHint: int
-.end_amdgpu_code_object_metadata
+.end_amd_amdgpu_hsa_metadata
diff --git a/test/MC/AMDGPU/code-object-metadata-kernel-code-props.s b/test/MC/AMDGPU/hsa-metadata-kernel-code-props.s
index da4c8c1028d..062e671357a 100644
--- a/test/MC/AMDGPU/code-object-metadata-kernel-code-props.s
+++ b/test/MC/AMDGPU/hsa-metadata-kernel-code-props.s
@@ -2,7 +2,7 @@
// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx800 -show-encoding %s | FileCheck --check-prefix=CHECK --check-prefix=GFX800 %s
// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx900 -show-encoding %s | FileCheck --check-prefix=CHECK --check-prefix=GFX900 %s
-// CHECK: .amdgpu_code_object_metadata
+// CHECK: .amd_amdgpu_hsa_metadata
// CHECK: Version: [ 1, 0 ]
// CHECK: Kernels:
// CHECK: - Name: test_kernel
@@ -11,7 +11,7 @@
// CHECK: WorkitemPrivateSegmentSize: 16
// CHECK: WavefrontNumSGPRs: 6
// CHECK: WorkitemNumVGPRs: 12
-.amdgpu_code_object_metadata
+.amd_amdgpu_hsa_metadata
Version: [ 1, 0 ]
Printf: [ '1:1:4:%d\n', '2:1:8:%g\n' ]
Kernels:
@@ -21,4 +21,4 @@
WorkitemPrivateSegmentSize: 16
WavefrontNumSGPRs: 6
WorkitemNumVGPRs: 12
-.end_amdgpu_code_object_metadata
+.end_amd_amdgpu_hsa_metadata
diff --git a/test/MC/AMDGPU/code-object-metadata-kernel-debug-props.s b/test/MC/AMDGPU/hsa-metadata-kernel-debug-props.s
index 4153737bf33..950049d115e 100644
--- a/test/MC/AMDGPU/code-object-metadata-kernel-debug-props.s
+++ b/test/MC/AMDGPU/hsa-metadata-kernel-debug-props.s
@@ -2,7 +2,7 @@
// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx800 -show-encoding %s | FileCheck --check-prefix=CHECK --check-prefix=GFX800 %s
// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx900 -show-encoding %s | FileCheck --check-prefix=CHECK --check-prefix=GFX900 %s
-// CHECK: .amdgpu_code_object_metadata
+// CHECK: .amd_amdgpu_hsa_metadata
// CHECK: Version: [ 1, 0 ]
// CHECK: Kernels:
// CHECK: - Name: test_kernel
@@ -12,7 +12,7 @@
// CHECK: ReservedFirstVGPR: 11
// CHECK: PrivateSegmentBufferSGPR: 0
// CHECK: WavefrontPrivateSegmentOffsetSGPR: 11
-.amdgpu_code_object_metadata
+.amd_amdgpu_hsa_metadata
Version: [ 1, 0 ]
Printf: [ '1:1:4:%d\n', '2:1:8:%g\n' ]
Kernels:
@@ -23,4 +23,4 @@
ReservedFirstVGPR: 11
PrivateSegmentBufferSGPR: 0
WavefrontPrivateSegmentOffsetSGPR: 11
-.end_amdgpu_code_object_metadata \ No newline at end of file
+.end_amd_amdgpu_hsa_metadata
diff --git a/test/MC/AMDGPU/code-object-metadata-unknown-key.s b/test/MC/AMDGPU/hsa-metadata-unknown-key.s
index 9add19f6e55..58d40209831 100644
--- a/test/MC/AMDGPU/code-object-metadata-unknown-key.s
+++ b/test/MC/AMDGPU/hsa-metadata-unknown-key.s
@@ -6,7 +6,7 @@
// RUN: not llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx900 -filetype=obj %s 2>&1 | FileCheck %s
// CHECK: error: unknown key 'UnknownKey'
-.amdgpu_code_object_metadata
+.amd_amdgpu_hsa_metadata
UnknownKey: [ 2, 0 ]
Version: [ 1, 0 ]
Printf: [ '1:1:4:%d\n', '2:1:8:%g\n' ]
@@ -38,4 +38,4 @@
ValueKind: HiddenPrintfBuffer
ValueType: I8
AddrSpaceQual: Global
-.end_amdgpu_code_object_metadata
+.end_amd_amdgpu_hsa_metadata
diff --git a/test/MC/AMDGPU/hsa.s b/test/MC/AMDGPU/hsa.s
index 5f1297e0f37..710f115adb1 100644
--- a/test/MC/AMDGPU/hsa.s
+++ b/test/MC/AMDGPU/hsa.s
@@ -37,19 +37,19 @@
.hsa_code_object_isa 7,0,0,"AMD","AMDGPU"
// ASM: .hsa_code_object_isa 7,0,0,"AMD","AMDGPU"
-.amdgpu_code_object_metadata
+.amd_amdgpu_hsa_metadata
Version: [ 3, 0 ]
Kernels:
- Name: amd_kernel_code_t_test_all
- Name: amd_kernel_code_t_minimal
-.end_amdgpu_code_object_metadata
+.end_amd_amdgpu_hsa_metadata
-// ASM: .amdgpu_code_object_metadata
+// ASM: .amd_amdgpu_hsa_metadata
// ASM: Version: [ 3, 0 ]
// ASM: Kernels:
// ASM: - Name: amd_kernel_code_t_test_all
// ASM: - Name: amd_kernel_code_t_minimal
-// ASM: .end_amdgpu_code_object_metadata
+// ASM: .end_amd_amdgpu_hsa_metadata
.amdgpu_hsa_kernel amd_kernel_code_t_test_all
.amdgpu_hsa_kernel amd_kernel_code_t_minimal