[clang] [clang][SPIR-V] Remove CC_SpirFunction calling convention (PR #216252)

Tom Honermann via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 17 20:24:54 PDT 2026


================
@@ -277,39 +277,38 @@ namespace clang {
 
   /// CallingConv - Specifies the calling convention that a function uses.
   enum CallingConv {
-    CC_C,                 // __attribute__((cdecl))
-    CC_X86StdCall,        // __attribute__((stdcall))
-    CC_X86FastCall,       // __attribute__((fastcall))
-    CC_X86ThisCall,       // __attribute__((thiscall))
-    CC_X86VectorCall,     // __attribute__((vectorcall))
-    CC_X86Pascal,         // __attribute__((pascal))
-    CC_Win64,             // __attribute__((ms_abi))
-    CC_X86_64SysV,        // __attribute__((sysv_abi))
-    CC_X86RegCall,        // __attribute__((regcall))
-    CC_AAPCS,             // __attribute__((pcs("aapcs")))
-    CC_AAPCS_VFP,         // __attribute__((pcs("aapcs-vfp")))
-    CC_IntelOclBicc,      // __attribute__((intel_ocl_bicc))
-    CC_SpirFunction,      // not assigned at the AST level, codegen-only on SPIR
----------------
tahonermann wrote:

Just noting for other prospective reviewers; the removal of this line is easily overlooked among the whitespace changes (which is why we typically recommend whitespace changes be made in separate PRs, but in this case, this appears to be reverting whitespace changes that were not intended in #210882).

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


More information about the cfe-commits mailing list