[llvm] [Verifier][AMDGPU] Restrict targets for chain calling convention. (PR #157469)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 10 08:17:08 PDT 2025
================
@@ -2938,10 +2938,16 @@ void Verifier::visitFunction(const Function &F) {
"Calling convention parameter requires byval", &F);
break;
}
- case CallingConv::AMDGPU_KERNEL:
- case CallingConv::SPIR_KERNEL:
case CallingConv::AMDGPU_CS_Chain:
case CallingConv::AMDGPU_CS_ChainPreserve:
+ {
+ auto TT = M.getTargetTriple().str();
+ if (TT.find("gfx1200") || TT.find("gfx942"))
----------------
shiltian wrote:
This is unacceptable. We should never do this.
https://github.com/llvm/llvm-project/pull/157469
More information about the llvm-commits
mailing list