[llvm] [llvm-c] Add LLVMDWARFTypeEncoding enum and update some other ones (PR #84456)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 8 02:38:43 PST 2024
https://github.com/edg-l created https://github.com/llvm/llvm-project/pull/84456
None
>From f41f7245c6eb9e0d970b856b09a6a7e20ee3eee0 Mon Sep 17 00:00:00 2001
From: Edgar Luque <git at edgarluque.com>
Date: Fri, 8 Mar 2024 11:38:11 +0100
Subject: [PATCH] [llvm-c] Add LLVMDWARFTypeEncoding enum and update some other
ones
---
llvm/include/llvm-c/Core.h | 91 +++++++++++++++++++--------------
llvm/include/llvm-c/DebugInfo.h | 33 +++++++++++-
2 files changed, 84 insertions(+), 40 deletions(-)
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index 09746bdaf0c94e..93f72dd1049d0f 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -211,47 +211,60 @@ 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,
+ 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,
+ LLVMAArch64VectorCall = 97,
+ LLVMAAArch64SVEVectorCall = 98,
+ LLVMWASMEmscriptenInvoke = 99,
+ LLVMAMDGPUGfx = 100,
+ LLVMM68kINTR = 101,
+ LLVMAArch64SMEABISupportRoutinesPreserveMostFromX0 = 102,
+ LLVMAArch64SMEABISupportRoutinesPreserveMostFromX2 = 103,
+ LLVMAMDGPUCSChain = 104,
+ LLVMAMDGPUCSChainPreserve = 105,
+ LLVMM68kRTD = 106,
+ LLVMGRAAL = 107,
+ LLVMARM64ECThunkX64 = 108,
+ LLVMARM64ECThunkNative = 109
} LLVMCallConv;
typedef enum {
diff --git a/llvm/include/llvm-c/DebugInfo.h b/llvm/include/llvm-c/DebugInfo.h
index 5924294708cc35..89706a88538d28 100644
--- a/llvm/include/llvm-c/DebugInfo.h
+++ b/llvm/include/llvm-c/DebugInfo.h
@@ -186,7 +186,30 @@ typedef unsigned LLVMMetadataKind;
/**
* An LLVM DWARF type encoding.
+ * @note Values are from DW_ATE_* constants in the DWARF specification.
*/
+enum {
+ LLVMDWARFTypeEncodingAddress = 0x1,
+ LLVMDWARFTypeEncodingBoolean = 0x2,
+ LLVMDWARFTypeEncodingComplexFloat = 0x3,
+ LLVMDWARFTypeEncodingFloat = 0x4,
+ LLVMDWARFTypeEncodingSigned = 0x5,
+ LLVMDWARFTypeEncodingSignedChar = 0x6,
+ LLVMDWARFTypeEncodingUnsigned = 0x7,
+ LLVMDWARFTypeEncodingUnsignedChar = 0x8,
+ LLVMDWARFTypeEncodingImaginaryFloat = 0x9,
+ LLVMDWARFTypeEncodingPackedDecimal = 0xa,
+ LLVMDWARFTypeEncodingNumericString = 0xb,
+ LLVMDWARFTypeEncodingEdited = 0xc,
+ LLVMDWARFTypeEncodingSignedFixed = 0xd,
+ LLVMDWARFTypeEncodingUnsignedFixed = 0xe,
+ LLVMDWARFTypeEncodingDecimalFloat = 0xf,
+ LLVMDWARFTypeEncodingUTF = 0x10,
+ LLVMDWARFTypeEncodingUCS = 0x11,
+ LLVMDWARFTypeEncodingASCII = 0x12,
+ LLVMDWARFTypeEncodingLoUser = 0x80,
+ LLVMDWARFTypeEncodingHiUser = 0xff,
+};
typedef unsigned LLVMDWARFTypeEncoding;
/**
@@ -199,7 +222,15 @@ typedef enum {
LLVMDWARFMacinfoRecordTypeMacro = 0x02,
LLVMDWARFMacinfoRecordTypeStartFile = 0x03,
LLVMDWARFMacinfoRecordTypeEndFile = 0x04,
- LLVMDWARFMacinfoRecordTypeVendorExt = 0xff
+ LLVMDWARFMacinfoRecordTypeDefineStrp = 0x05,
+ LLVMDWARFMacinfoRecordTypeUndefStrp = 0x06,
+ LLVMDWARFMacinfoRecordTypeImport = 0x07,
+ LLVMDWARFMacinfoRecordTypeDefineSup = 0x08,
+ LLVMDWARFMacinfoRecordTypeUndefSup = 0x09,
+ LLVMDWARFMacinfoRecordTypeImportSup = 0x0a,
+ LLVMDWARFMacinfoRecordTypeDefineStrx = 0x0b,
+ LLVMDWARFMacinfoRecordTypeUndefStrx = 0x0c,
+ LLVMDWARFMacinfoRecordTypeVendorExt = 0xff,
} LLVMDWARFMacinfoRecordType;
/**
More information about the llvm-commits
mailing list