@@ -276,31 +276,43 @@ namespace clang {
276
276
277
277
// / CallingConv - Specifies the calling convention that a function uses.
278
278
enum CallingConv {
279
- CC_C, // __attribute__((cdecl))
280
- CC_X86StdCall, // __attribute__((stdcall))
281
- CC_X86FastCall, // __attribute__((fastcall))
282
- CC_X86ThisCall, // __attribute__((thiscall))
283
- CC_X86VectorCall, // __attribute__((vectorcall))
284
- CC_X86Pascal, // __attribute__((pascal))
285
- CC_Win64, // __attribute__((ms_abi))
286
- CC_X86_64SysV, // __attribute__((sysv_abi))
287
- CC_X86RegCall, // __attribute__((regcall))
288
- CC_AAPCS, // __attribute__((pcs("aapcs")))
289
- CC_AAPCS_VFP, // __attribute__((pcs("aapcs-vfp")))
290
- CC_IntelOclBicc, // __attribute__((intel_ocl_bicc))
291
- CC_SpirFunction, // default for OpenCL functions on SPIR target
292
- CC_OpenCLKernel, // inferred for OpenCL kernels
293
- CC_Swift, // __attribute__((swiftcall))
294
- CC_SwiftAsync, // __attribute__((swiftasynccall))
295
- CC_PreserveMost, // __attribute__((preserve_most))
296
- CC_PreserveAll, // __attribute__((preserve_all))
297
- CC_AArch64VectorCall, // __attribute__((aarch64_vector_pcs))
298
- CC_AArch64SVEPCS, // __attribute__((aarch64_sve_pcs))
299
- CC_AMDGPUKernelCall, // __attribute__((amdgpu_kernel))
300
- CC_M68kRTD, // __attribute__((m68k_rtd))
301
- CC_PreserveNone, // __attribute__((preserve_none))
302
- CC_RISCVVectorCall, // __attribute__((riscv_vector_cc))
303
- CC_RISCVVLSCall, // __attribute__((riscv_vls_cc))
279
+ CC_C, // __attribute__((cdecl))
280
+ CC_X86StdCall, // __attribute__((stdcall))
281
+ CC_X86FastCall, // __attribute__((fastcall))
282
+ CC_X86ThisCall, // __attribute__((thiscall))
283
+ CC_X86VectorCall, // __attribute__((vectorcall))
284
+ CC_X86Pascal, // __attribute__((pascal))
285
+ CC_Win64, // __attribute__((ms_abi))
286
+ CC_X86_64SysV, // __attribute__((sysv_abi))
287
+ CC_X86RegCall, // __attribute__((regcall))
288
+ CC_AAPCS, // __attribute__((pcs("aapcs")))
289
+ CC_AAPCS_VFP, // __attribute__((pcs("aapcs-vfp")))
290
+ CC_IntelOclBicc, // __attribute__((intel_ocl_bicc))
291
+ CC_SpirFunction, // default for OpenCL functions on SPIR target
292
+ CC_OpenCLKernel, // inferred for OpenCL kernels
293
+ CC_Swift, // __attribute__((swiftcall))
294
+ CC_SwiftAsync, // __attribute__((swiftasynccall))
295
+ CC_PreserveMost, // __attribute__((preserve_most))
296
+ CC_PreserveAll, // __attribute__((preserve_all))
297
+ CC_AArch64VectorCall, // __attribute__((aarch64_vector_pcs))
298
+ CC_AArch64SVEPCS, // __attribute__((aarch64_sve_pcs))
299
+ CC_AMDGPUKernelCall, // __attribute__((amdgpu_kernel))
300
+ CC_M68kRTD, // __attribute__((m68k_rtd))
301
+ CC_PreserveNone, // __attribute__((preserve_none))
302
+ CC_RISCVVectorCall, // __attribute__((riscv_vector_cc))
303
+ CC_RISCVVLSCall_32, // __attribute__((riscv_vls_cc(32)))
304
+ CC_RISCVVLSCall_64, // __attribute__((riscv_vls_cc(64)))
305
+ CC_RISCVVLSCall_128, // __attribute__((riscv_vls_cc)) or
306
+ // __attribute__((riscv_vls_cc(128)))
307
+ CC_RISCVVLSCall_256, // __attribute__((riscv_vls_cc(256)))
308
+ CC_RISCVVLSCall_512, // __attribute__((riscv_vls_cc(512)))
309
+ CC_RISCVVLSCall_1024, // __attribute__((riscv_vls_cc(1024)))
310
+ CC_RISCVVLSCall_2048, // __attribute__((riscv_vls_cc(2048)))
311
+ CC_RISCVVLSCall_4096, // __attribute__((riscv_vls_cc(4096)))
312
+ CC_RISCVVLSCall_8192, // __attribute__((riscv_vls_cc(8192)))
313
+ CC_RISCVVLSCall_16384, // __attribute__((riscv_vls_cc(16384)))
314
+ CC_RISCVVLSCall_32768, // __attribute__((riscv_vls_cc(32768)))
315
+ CC_RISCVVLSCall_65536, // __attribute__((riscv_vls_cc(65536)))
304
316
};
305
317
306
318
// / Checks whether the given calling convention supports variadic
0 commit comments