mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-24 05:23:45 +02:00
dd9ab77318
Currently the default C calling convention functions are treated the same as compute kernels. Make this explicit so the default calling convention can be changed to a non-kernel. Converted with perl -pi -e 's/define void/define amdgpu_kernel void/' on the relevant test directories (and undoing in one place that actually wanted a non-kernel). llvm-svn: 298444
22 lines
581 B
LLVM
22 lines
581 B
LLVM
; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
|
|
|
; Make sure we don't assert on empty functions
|
|
|
|
; SI: .text
|
|
; SI-LABEL: {{^}}empty_function_ret:
|
|
; SI: s_endpgm
|
|
; SI: codeLenInByte = 4
|
|
define amdgpu_kernel void @empty_function_ret() #0 {
|
|
ret void
|
|
}
|
|
|
|
; SI: .text
|
|
; SI-LABEL: {{^}}empty_function_unreachable:
|
|
; SI: codeLenInByte = 0
|
|
define amdgpu_kernel void @empty_function_unreachable() #0 {
|
|
unreachable
|
|
}
|
|
|
|
attributes #0 = { nounwind }
|