[llvm] [llvm-c] Update LLVMCallConv enum (PR #133581)

via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 29 05:42:14 PDT 2025


https://github.com/Qwinci created https://github.com/llvm/llvm-project/pull/133581

Update LLVMCallConv enum to match the C++ CallingConv enum.

>From 1e7781ee3a57890954411aba7f66b63b13c93d7c Mon Sep 17 00:00:00 2001
From: Qwinci <qwinci222 at gmail.com>
Date: Sat, 29 Mar 2025 14:39:58 +0200
Subject: [PATCH] [llvm-c] Update LLVMCallConv enum

---
 llvm/include/llvm-c/Core.h | 109 ++++++++++++++++++++++++-------------
 1 file changed, 70 insertions(+), 39 deletions(-)

diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index 871e5eb8457d7..d08dbd97a7fd5 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -211,47 +211,78 @@ typedef enum {
 } LLVMDLLStorageClass;
 
 typedef enum {
-  LLVMCCallConv             = 0,
-  LLVMFastCallConv          = 8,
-  LLVMColdCallConv          = 9,
-  LLVMGHCCallConv           = 10,
-  LLVMHiPECallConv          = 11,
-  LLVMAnyRegCallConv        = 13,
-  LLVMPreserveMostCallConv  = 14,
-  LLVMPreserveAllCallConv   = 15,
-  LLVMSwiftCallConv         = 16,
-  LLVMCXXFASTTLSCallConv    = 17,
-  LLVMX86StdcallCallConv    = 64,
-  LLVMX86FastcallCallConv   = 65,
-  LLVMARMAPCSCallConv       = 66,
-  LLVMARMAAPCSCallConv      = 67,
-  LLVMARMAAPCSVFPCallConv   = 68,
-  LLVMMSP430INTRCallConv    = 69,
-  LLVMX86ThisCallCallConv   = 70,
-  LLVMPTXKernelCallConv     = 71,
-  LLVMPTXDeviceCallConv     = 72,
-  LLVMSPIRFUNCCallConv      = 75,
-  LLVMSPIRKERNELCallConv    = 76,
-  LLVMIntelOCLBICallConv    = 77,
-  LLVMX8664SysVCallConv     = 78,
-  LLVMWin64CallConv         = 79,
+  LLVMCCallConv = 0,
+  LLVMFastCallConv = 8,
+  LLVMColdCallConv = 9,
+  LLVMGHCCallConv = 10,
+  LLVMHiPECallConv = 11,
+  LLVMAnyRegCallConv = 13,
+  LLVMPreserveMostCallConv = 14,
+  LLVMPreserveAllCallConv = 15,
+  LLVMSwiftCallConv = 16,
+  LLVMCXXFASTTLSCallConv = 17,
+  LLVMTailCallConv = 18,
+  LLVMCFGuardCheckCallConv = 19,
+  LLVMSwiftTailCallConv = 20,
+  LLVMPreserveNoneCallConv = 21,
+  LLVMX86StdcallCallConv = 64,
+  LLVMX86FastcallCallConv = 65,
+  LLVMARMAPCSCallConv = 66,
+  LLVMARMAAPCSCallConv = 67,
+  LLVMARMAAPCSVFPCallConv = 68,
+  LLVMMSP430INTRCallConv = 69,
+  LLVMX86ThisCallCallConv = 70,
+  LLVMPTXKernelCallConv = 71,
+  LLVMPTXDeviceCallConv = 72,
+  LLVMSPIRFUNCCallConv = 75,
+  LLVMSPIRKERNELCallConv = 76,
+  LLVMIntelOCLBICallConv = 77,
+  LLVMX8664SysVCallConv = 78,
+  LLVMWin64CallConv = 79,
   LLVMX86VectorCallCallConv = 80,
-  LLVMHHVMCallConv          = 81,
-  LLVMHHVMCCallConv         = 82,
-  LLVMX86INTRCallConv       = 83,
-  LLVMAVRINTRCallConv       = 84,
-  LLVMAVRSIGNALCallConv     = 85,
-  LLVMAVRBUILTINCallConv    = 86,
-  LLVMAMDGPUVSCallConv      = 87,
-  LLVMAMDGPUGSCallConv      = 88,
-  LLVMAMDGPUPSCallConv      = 89,
-  LLVMAMDGPUCSCallConv      = 90,
-  LLVMAMDGPUKERNELCallConv  = 91,
-  LLVMX86RegCallCallConv    = 92,
-  LLVMAMDGPUHSCallConv      = 93,
+  LLVMHHVMCallConv = 81,
+  LLVMHHVMCCallConv = 82,
+  LLVMX86INTRCallConv = 83,
+  LLVMAVRINTRCallConv = 84,
+  LLVMAVRSIGNALCallConv = 85,
+  LLVMAVRBUILTINCallConv = 86,
+  LLVMAMDGPUVSCallConv = 87,
+  LLVMAMDGPUGSCallConv = 88,
+  LLVMAMDGPUPSCallConv = 89,
+  LLVMAMDGPUCSCallConv = 90,
+  LLVMAMDGPUKERNELCallConv = 91,
+  LLVMX86RegCallCallConv = 92,
+  LLVMAMDGPUHSCallConv = 93,
   LLVMMSP430BUILTINCallConv = 94,
-  LLVMAMDGPULSCallConv      = 95,
-  LLVMAMDGPUESCallConv      = 96
+  LLVMAMDGPULSCallConv = 95,
+  LLVMAMDGPUESCallConv = 96,
+  LLVMAArch64VectorCallCallConv = 97,
+  LLVMAArch64SVEVectorCallCallConv = 98,
+  LLVMWASMEmscriptenInvokeCallConv = 99,
+  LLVMAMDGPUGfxCallConv = 100,
+  LLVMM68kINTRCallConv = 101,
+  LLVMAArch64SMEABISupportRoutinesPreserveMostFromX0CallConv = 102,
+  LLVMAArch64SMEABISupportRoutinesPreserveMostFromX2CallConv = 103,
+  LLVMAMDGPUCSChainCallConv = 104,
+  LLVMAMDGPUCSChainPreserveCallConv = 105,
+  LLVMM68kRTDCallConv = 106,
+  LLVMGRAALCallConv = 107,
+  LLVMARM64ECThunkX64CallConv = 108,
+  LLVMARM64ECThunkNativeCallConv = 109,
+  LLVMRISCVVectorCallCallConv = 110,
+  LLVMAArch64SMEABISupportRoutinesPreserveMostFromX1CallConv = 111,
+  LLVMRISCVVLSCall32CallConv = 112,
+  LLVMRISCVVLSCall64CallConv = 113,
+  LLVMRISCVVLSCall128CallConv = 114,
+  LLVMRISCVVLSCall256CallConv = 115,
+  LLVMRISCVVLSCall512CallConv = 116,
+  LLVMRISCVVLSCall1024CallConv = 117,
+  LLVMRISCVVLSCall2048CallConv = 118,
+  LLVMRISCVVLSCall4096CallConv = 119,
+  LLVMRISCVVLSCall8192CallConv = 120,
+  LLVMRISCVVLSCall16384CallConv = 121,
+  LLVMRISCVVLSCall32768CallConv = 122,
+  LLVMRISCVVLSCall65536CallConv = 123
 } LLVMCallConv;
 
 typedef enum {



More information about the llvm-commits mailing list