[clang] [clang][Sema][SYCL] Fix MSVC STL usage on AMDGPU (PR #135979)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 17 13:00:00 PDT 2025
================
@@ -5522,6 +5522,11 @@ bool Sema::CheckCallingConvAttr(const ParsedAttr &Attrs, CallingConv &CC,
A = HostTI->checkCallingConvention(CC);
if (A == TargetInfo::CCCR_OK && CheckDevice && DeviceTI)
A = DeviceTI->checkCallingConvention(CC);
+ } else if (LangOpts.SYCLIsDevice && TI.getTriple().isAMDGPU() &&
----------------
yxsamliu wrote:
maybe add a comment: assuming function with CC_X86VectorCall calling convention is always to be emitted on host target.
https://github.com/llvm/llvm-project/pull/135979
More information about the cfe-commits
mailing list