Skip to content

Commit 578a26a

Browse files
authored
[AMDGPU] Relax restrictions on amdgcn.cs.chain intrinsic (#169785)
We have a new use-case for chain functions, so slightly relax the restriction on which calling conventions may contain calls to chain functions.
1 parent 3847648 commit 578a26a

File tree

3 files changed

+642
-10
lines changed

3 files changed

+642
-10
lines changed

llvm/lib/IR/Verifier.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6761,11 +6761,15 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) {
67616761
case CallingConv::AMDGPU_CS:
67626762
case CallingConv::AMDGPU_CS_Chain:
67636763
case CallingConv::AMDGPU_CS_ChainPreserve:
6764+
case CallingConv::AMDGPU_ES:
6765+
case CallingConv::AMDGPU_GS:
6766+
case CallingConv::AMDGPU_HS:
6767+
case CallingConv::AMDGPU_LS:
6768+
case CallingConv::AMDGPU_VS:
67646769
break;
67656770
default:
6766-
CheckFailed("Intrinsic can only be used from functions with the "
6767-
"amdgpu_cs, amdgpu_cs_chain or amdgpu_cs_chain_preserve "
6768-
"calling conventions",
6771+
CheckFailed("Intrinsic cannot be called from functions with this "
6772+
"calling convention",
67696773
&Call);
67706774
break;
67716775
}

0 commit comments

Comments
 (0)