[llvm] [AMDGPU] Relax restrictions on amdgcn.cs.chain intrinsic (PR #169785)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 8 07:25:04 PST 2025
================
@@ -6761,11 +6761,15 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) {
case CallingConv::AMDGPU_CS:
case CallingConv::AMDGPU_CS_Chain:
case CallingConv::AMDGPU_CS_ChainPreserve:
+ case CallingConv::AMDGPU_ES:
+ case CallingConv::AMDGPU_GS:
+ case CallingConv::AMDGPU_HS:
+ case CallingConv::AMDGPU_LS:
+ case CallingConv::AMDGPU_VS:
break;
default:
- CheckFailed("Intrinsic can only be used from functions with the "
- "amdgpu_cs, amdgpu_cs_chain or amdgpu_cs_chain_preserve "
- "calling conventions",
+ CheckFailed("Intrinsic can't be called from functions with this "
----------------
arsenm wrote:
```suggestion
CheckFailed("Intrinsic cannot be called from functions with this "
```
Avoid contractions in error messages
https://github.com/llvm/llvm-project/pull/169785
More information about the llvm-commits
mailing list