mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 23:18:51 +00:00
a2ee7d2991
Currently runtime metadata is emitted as an ELF section with name .AMDGPU.runtime_metadata. However there is a standard way to convey vendor specific information about how to run an ELF binary, which is called vendor-specific note element (http://www.netbsd.org/docs/kernel/elf-notes.html). This patch lets AMDGPU backend emits runtime metadata as a note element in .note section. Differential Revision: https://reviews.llvm.org/D25781 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286502 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
305 B
LLVM
12 lines
305 B
LLVM
; RUN: llc -mtriple=amdgcn--amdhsa < %s | FileCheck %s
|
|
; check llc does not crash for invalid opencl version metadata
|
|
|
|
; CHECK: .section .note,#alloc
|
|
; CHECK-NEXT: .long 4
|
|
; CHECK-NEXT: .long {{.+}}
|
|
; CHECK-NEXT: .long 7
|
|
; CHECK-NEXT: .asciz "AMD"
|
|
|
|
!opencl.ocl.version = !{!0}
|
|
!0 = !{i32 1}
|