[clang] [clang][SPIR-V] Add x86 calling conventions and sse/sse2 for MSVC hosts (PR #227665)

Tony Guillot via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 30 06:15:46 PDT 2026


================
@@ -185,9 +185,17 @@ class LLVM_LIBRARY_VISIBILITY BaseSPIRTargetInfo : public TargetInfo {
   }
 
   CallingConvCheckResult checkCallingConvention(CallingConv CC) const override {
-    return (CC == CC_C || CC == CC_DeviceKernel) ? CCCR_OK : CCCR_Warning;
+    return (CC == CC_C || CC == CC_DeviceKernel || CC == CC_X86RegCall ||
+            CC == CC_X86VectorCall)
+               ? CCCR_OK
+               : CCCR_Warning;
----------------
to268 wrote:

I am not sure if the ternary is considered convoluted enough to be changed to an if statement.

https://github.com/llvm/llvm-project/pull/227665


More information about the cfe-commits mailing list