mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
2405f803ac
Continue to present HSA metadata as YAML in ASM and when output by tools (e.g. llvm-readobj), but encode it in Messagepack in the code object. Differential Revision: https://reviews.llvm.org/D48179 llvm-svn: 348963
96 lines
4.3 KiB
LLVM
96 lines
4.3 KiB
LLVM
; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -filetype=obj -o - < %s | llvm-readobj -elf-output-style=GNU -notes | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=NOTES %s
|
|
; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -filetype=obj -o - < %s | llvm-readobj -elf-output-style=GNU -notes | FileCheck --check-prefix=CHECK --check-prefix=GFX802 --check-prefix=NOTES %s
|
|
; RUN: llc -mattr=+code-object-v3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readobj -elf-output-style=GNU -notes | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s
|
|
|
|
%opencl.image1d_t = type opaque
|
|
%opencl.image1d_array_t = type opaque
|
|
%opencl.image1d_buffer_t = type opaque
|
|
%opencl.image2d_t = type opaque
|
|
%opencl.image2d_array_t = type opaque
|
|
%opencl.image2d_array_depth_t = type opaque
|
|
%opencl.image2d_array_msaa_t = type opaque
|
|
%opencl.image2d_array_msaa_depth_t = type opaque
|
|
%opencl.image2d_depth_t = type opaque
|
|
%opencl.image2d_msaa_t = type opaque
|
|
%opencl.image2d_msaa_depth_t = type opaque
|
|
%opencl.image3d_t = type opaque
|
|
|
|
; CHECK: ---
|
|
; CHECK: amdhsa.kernels:
|
|
; CHECK: .symbol: test.kd
|
|
; CHECK: .name: test
|
|
; CHECK: .args:
|
|
; CHECK: - .type_name: image1d_t
|
|
; CHECK: .value_kind: image
|
|
; CHECK: .name: a
|
|
; CHECK: .size: 8
|
|
; CHECK: - .type_name: image1d_array_t
|
|
; CHECK: .value_kind: image
|
|
; CHECK: .name: b
|
|
; CHECK: .size: 8
|
|
; CHECK: - .type_name: image1d_buffer_t
|
|
; CHECK: .value_kind: image
|
|
; CHECK: .name: c
|
|
; CHECK: .size: 8
|
|
; CHECK: - .type_name: image2d_t
|
|
; CHECK: .value_kind: image
|
|
; CHECK: .name: d
|
|
; CHECK: .size: 8
|
|
; CHECK: - .type_name: image2d_array_t
|
|
; CHECK: .value_kind: image
|
|
; CHECK: .name: e
|
|
; CHECK: .size: 8
|
|
; CHECK: - .type_name: image2d_array_depth_t
|
|
; CHECK: .value_kind: image
|
|
; CHECK: .name: f
|
|
; CHECK: .size: 8
|
|
; CHECK: - .type_name: image2d_array_msaa_t
|
|
; CHECK: .value_kind: image
|
|
; CHECK: .name: g
|
|
; CHECK: .size: 8
|
|
; CHECK: - .type_name: image2d_array_msaa_depth_t
|
|
; CHECK: .value_kind: image
|
|
; CHECK: .name: h
|
|
; CHECK: .size: 8
|
|
; CHECK: - .type_name: image2d_depth_t
|
|
; CHECK: .value_kind: image
|
|
; CHECK: .name: i
|
|
; CHECK: .size: 8
|
|
; CHECK: - .type_name: image2d_msaa_t
|
|
; CHECK: .value_kind: image
|
|
; CHECK: .name: j
|
|
; CHECK: .size: 8
|
|
; CHECK: - .type_name: image2d_msaa_depth_t
|
|
; CHECK: .value_kind: image
|
|
; CHECK: .name: k
|
|
; CHECK: .size: 8
|
|
; CHECK: - .type_name: image3d_t
|
|
; CHECK: .value_kind: image
|
|
; CHECK: .name: l
|
|
; CHECK: .size: 8
|
|
define amdgpu_kernel void @test(%opencl.image1d_t addrspace(1)* %a,
|
|
%opencl.image1d_array_t addrspace(1)* %b,
|
|
%opencl.image1d_buffer_t addrspace(1)* %c,
|
|
%opencl.image2d_t addrspace(1)* %d,
|
|
%opencl.image2d_array_t addrspace(1)* %e,
|
|
%opencl.image2d_array_depth_t addrspace(1)* %f,
|
|
%opencl.image2d_array_msaa_t addrspace(1)* %g,
|
|
%opencl.image2d_array_msaa_depth_t addrspace(1)* %h,
|
|
%opencl.image2d_depth_t addrspace(1)* %i,
|
|
%opencl.image2d_msaa_t addrspace(1)* %j,
|
|
%opencl.image2d_msaa_depth_t addrspace(1)* %k,
|
|
%opencl.image3d_t addrspace(1)* %l)
|
|
!kernel_arg_type !1 !kernel_arg_base_type !1 {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: amdhsa.version:
|
|
; CHECK-NEXT: - 1
|
|
; CHECK-NEXT: - 0
|
|
|
|
!1 = !{!"image1d_t", !"image1d_array_t", !"image1d_buffer_t",
|
|
!"image2d_t", !"image2d_array_t", !"image2d_array_depth_t",
|
|
!"image2d_array_msaa_t", !"image2d_array_msaa_depth_t",
|
|
!"image2d_depth_t", !"image2d_msaa_t", !"image2d_msaa_depth_t",
|
|
!"image3d_t"}
|