llvm-project/llvm/test/Assembler/amdgpu-cs-chain-cc.ll
Diana Picus 29dcc4c143 [AMDGPU] Add amdgpu_cs_chain[_preserve] CCs to IR & verifier
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
2023-06-22 10:02:45 +02:00

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
}