
Add the amdgpu_cs_chain and amdgpu_cs_chain_preserve keywords to LLVM IR and make sure we can parse and print them. Also make sure we perform some basic checks in the IR verifier - similar to what we check for many of the other AMDGPU calling conventions, plus the additional restriction that we can't have direct calls to functions with these calling conventions. Differential Revision: https://reviews.llvm.org/D151994
14 lines
349 B
LLVM
14 lines
349 B
LLVM
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
|
|
|
|
; CHECK: amdgpu_cs_chain void @amdgpu_cs_chain_cc
|
|
define amdgpu_cs_chain void @amdgpu_cs_chain_cc() {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
; CHECK: amdgpu_cs_chain_preserve void @amdgpu_cs_chain_preserve_cc
|
|
define amdgpu_cs_chain_preserve void @amdgpu_cs_chain_preserve_cc() {
|
|
entry:
|
|
ret void
|
|
}
|