Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate LLVMSharp using multi-file generation #97

Merged
merged 2 commits into from
May 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,267 changes: 3 additions & 1,264 deletions src/Generated.cs → src/Generated/LLVM.cs

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions src/Generated/LLVMAtomicOrdering.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
namespace LLVMSharp
{
public enum LLVMAtomicOrdering
{
LLVMAtomicOrderingNotAtomic = 0,
LLVMAtomicOrderingUnordered = 1,
LLVMAtomicOrderingMonotonic = 2,
LLVMAtomicOrderingAcquire = 4,
LLVMAtomicOrderingRelease = 5,
LLVMAtomicOrderingAcquireRelease = 6,
LLVMAtomicOrderingSequentiallyConsistent = 7,
}
}
17 changes: 17 additions & 0 deletions src/Generated/LLVMAtomicRMWBinOp.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace LLVMSharp
{
public enum LLVMAtomicRMWBinOp
{
LLVMAtomicRMWBinOpXchg = 0,
LLVMAtomicRMWBinOpAdd = 1,
LLVMAtomicRMWBinOpSub = 2,
LLVMAtomicRMWBinOpAnd = 3,
LLVMAtomicRMWBinOpNand = 4,
LLVMAtomicRMWBinOpOr = 5,
LLVMAtomicRMWBinOpXor = 6,
LLVMAtomicRMWBinOpMax = 7,
LLVMAtomicRMWBinOpMin = 8,
LLVMAtomicRMWBinOpUMax = 9,
LLVMAtomicRMWBinOpUMin = 10,
}
}
8 changes: 8 additions & 0 deletions src/Generated/LLVMAttributeIndex.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace LLVMSharp
{
public enum LLVMAttributeIndex
{
LLVMAttributeReturnIndex = 0,
LLVMAttributeFunctionIndex = -1,
}
}
14 changes: 14 additions & 0 deletions src/Generated/LLVMAttributeRef.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;

namespace LLVMSharp
{
public partial struct LLVMAttributeRef
{
public LLVMAttributeRef(IntPtr pointer)
{
Pointer = pointer;
}

public IntPtr Pointer;
}
}
14 changes: 14 additions & 0 deletions src/Generated/LLVMBasicBlockRef.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;

namespace LLVMSharp
{
public partial struct LLVMBasicBlockRef
{
public LLVMBasicBlockRef(IntPtr pointer)
{
Pointer = pointer;
}

public IntPtr Pointer;
}
}
12 changes: 12 additions & 0 deletions src/Generated/LLVMBool.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace LLVMSharp
{
public partial struct LLVMBool
{
public LLVMBool(int value)
{
Value = value;
}

public int Value;
}
}
14 changes: 14 additions & 0 deletions src/Generated/LLVMBuilderRef.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;

namespace LLVMSharp
{
public partial struct LLVMBuilderRef
{
public LLVMBuilderRef(IntPtr pointer)
{
Pointer = pointer;
}

public IntPtr Pointer;
}
}
8 changes: 8 additions & 0 deletions src/Generated/LLVMByteOrdering.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace LLVMSharp
{
public enum LLVMByteOrdering
{
LLVMBigEndian = 0,
LLVMLittleEndian = 1,
}
}
48 changes: 48 additions & 0 deletions src/Generated/LLVMCallConv.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
namespace LLVMSharp
{
public enum LLVMCallConv
{
LLVMCCallConv = 0,
LLVMFastCallConv = 8,
LLVMColdCallConv = 9,
LLVMGHCCallConv = 10,
LLVMHiPECallConv = 11,
LLVMWebKitJSCallConv = 12,
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,
LLVMMSP430BUILTINCallConv = 94,
LLVMAMDGPULSCallConv = 95,
LLVMAMDGPUESCallConv = 96,
}
}
8 changes: 8 additions & 0 deletions src/Generated/LLVMCodeGenFileType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace LLVMSharp
{
public enum LLVMCodeGenFileType
{
LLVMAssemblyFile = 0,
LLVMObjectFile = 1,
}
}
10 changes: 10 additions & 0 deletions src/Generated/LLVMCodeGenOptLevel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace LLVMSharp
{
public enum LLVMCodeGenOptLevel
{
LLVMCodeGenLevelNone = 0,
LLVMCodeGenLevelLess = 1,
LLVMCodeGenLevelDefault = 2,
LLVMCodeGenLevelAggressive = 3,
}
}
13 changes: 13 additions & 0 deletions src/Generated/LLVMCodeModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
namespace LLVMSharp
{
public enum LLVMCodeModel
{
LLVMCodeModelDefault = 0,
LLVMCodeModelJITDefault = 1,
LLVMCodeModelTiny = 2,
LLVMCodeModelSmall = 3,
LLVMCodeModelKernel = 4,
LLVMCodeModelMedium = 5,
LLVMCodeModelLarge = 6,
}
}
6 changes: 6 additions & 0 deletions src/Generated/LLVMComdat.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace LLVMSharp
{
public partial struct LLVMComdat
{
}
}
14 changes: 14 additions & 0 deletions src/Generated/LLVMComdatRef.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;

namespace LLVMSharp
{
public partial struct LLVMComdatRef
{
public LLVMComdatRef(IntPtr pointer)
{
Pointer = pointer;
}

public IntPtr Pointer;
}
}
11 changes: 11 additions & 0 deletions src/Generated/LLVMComdatSelectionKind.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace LLVMSharp
{
public enum LLVMComdatSelectionKind
{
LLVMAnyComdatSelectionKind = 0,
LLVMExactMatchComdatSelectionKind = 1,
LLVMLargestComdatSelectionKind = 2,
LLVMNoDuplicatesComdatSelectionKind = 3,
LLVMSameSizeComdatSelectionKind = 4,
}
}
14 changes: 14 additions & 0 deletions src/Generated/LLVMContextRef.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;

namespace LLVMSharp
{
public partial struct LLVMContextRef
{
public LLVMContextRef(IntPtr pointer)
{
Pointer = pointer;
}

public IntPtr Pointer;
}
}
14 changes: 14 additions & 0 deletions src/Generated/LLVMDIBuilderRef.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;

namespace LLVMSharp
{
public partial struct LLVMDIBuilderRef
{
public LLVMDIBuilderRef(IntPtr pointer)
{
Pointer = pointer;
}

public IntPtr Pointer;
}
}
42 changes: 42 additions & 0 deletions src/Generated/LLVMDIFlags.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
namespace LLVMSharp
{
public enum LLVMDIFlags
{
LLVMDIFlagZero = 0,
LLVMDIFlagPrivate = 1,
LLVMDIFlagProtected = 2,
LLVMDIFlagPublic = 3,
LLVMDIFlagFwdDecl = 4,
LLVMDIFlagAppleBlock = 8,
LLVMDIFlagBlockByrefStruct = 16,
LLVMDIFlagVirtual = 32,
LLVMDIFlagArtificial = 64,
LLVMDIFlagExplicit = 128,
LLVMDIFlagPrototyped = 256,
LLVMDIFlagObjcClassComplete = 512,
LLVMDIFlagObjectPointer = 1024,
LLVMDIFlagVector = 2048,
LLVMDIFlagStaticMember = 4096,
LLVMDIFlagLValueReference = 8192,
LLVMDIFlagRValueReference = 16384,
LLVMDIFlagReserved = 32768,
LLVMDIFlagSingleInheritance = 65536,
LLVMDIFlagMultipleInheritance = 131072,
LLVMDIFlagVirtualInheritance = 196608,
LLVMDIFlagIntroducedVirtual = 262144,
LLVMDIFlagBitField = 524288,
LLVMDIFlagNoReturn = 1048576,
LLVMDIFlagMainSubprogram = 2097152,
LLVMDIFlagTypePassByValue = 4194304,
LLVMDIFlagTypePassByReference = 8388608,
LLVMDIFlagEnumClass = 16777216,
LLVMDIFlagFixedEnum = 16777216,
LLVMDIFlagThunk = 33554432,
LLVMDIFlagTrivial = 67108864,
LLVMDIFlagBigEndian = 134217728,
LLVMDIFlagLittleEndian = 268435456,
LLVMDIFlagIndirectVirtualBase = 36,
LLVMDIFlagAccessibility = 3,
LLVMDIFlagPtrToMemberRep = 196608,
}
}
9 changes: 9 additions & 0 deletions src/Generated/LLVMDLLStorageClass.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace LLVMSharp
{
public enum LLVMDLLStorageClass
{
LLVMDefaultStorageClass = 0,
LLVMDLLImportStorageClass = 1,
LLVMDLLExportStorageClass = 2,
}
}
9 changes: 9 additions & 0 deletions src/Generated/LLVMDWARFEmissionKind.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace LLVMSharp
{
public enum LLVMDWARFEmissionKind
{
LLVMDWARFEmissionNone = 0,
LLVMDWARFEmissionFull = 1,
LLVMDWARFEmissionLineTablesOnly = 2,
}
}
46 changes: 46 additions & 0 deletions src/Generated/LLVMDWARFSourceLanguage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
namespace LLVMSharp
{
public enum LLVMDWARFSourceLanguage
{
LLVMDWARFSourceLanguageC89 = 0,
LLVMDWARFSourceLanguageC = 1,
LLVMDWARFSourceLanguageAda83 = 2,
LLVMDWARFSourceLanguageC_plus_plus = 3,
LLVMDWARFSourceLanguageCobol74 = 4,
LLVMDWARFSourceLanguageCobol85 = 5,
LLVMDWARFSourceLanguageFortran77 = 6,
LLVMDWARFSourceLanguageFortran90 = 7,
LLVMDWARFSourceLanguagePascal83 = 8,
LLVMDWARFSourceLanguageModula2 = 9,
LLVMDWARFSourceLanguageJava = 10,
LLVMDWARFSourceLanguageC99 = 11,
LLVMDWARFSourceLanguageAda95 = 12,
LLVMDWARFSourceLanguageFortran95 = 13,
LLVMDWARFSourceLanguagePLI = 14,
LLVMDWARFSourceLanguageObjC = 15,
LLVMDWARFSourceLanguageObjC_plus_plus = 16,
LLVMDWARFSourceLanguageUPC = 17,
LLVMDWARFSourceLanguageD = 18,
LLVMDWARFSourceLanguagePython = 19,
LLVMDWARFSourceLanguageOpenCL = 20,
LLVMDWARFSourceLanguageGo = 21,
LLVMDWARFSourceLanguageModula3 = 22,
LLVMDWARFSourceLanguageHaskell = 23,
LLVMDWARFSourceLanguageC_plus_plus_03 = 24,
LLVMDWARFSourceLanguageC_plus_plus_11 = 25,
LLVMDWARFSourceLanguageOCaml = 26,
LLVMDWARFSourceLanguageRust = 27,
LLVMDWARFSourceLanguageC11 = 28,
LLVMDWARFSourceLanguageSwift = 29,
LLVMDWARFSourceLanguageJulia = 30,
LLVMDWARFSourceLanguageDylan = 31,
LLVMDWARFSourceLanguageC_plus_plus_14 = 32,
LLVMDWARFSourceLanguageFortran03 = 33,
LLVMDWARFSourceLanguageFortran08 = 34,
LLVMDWARFSourceLanguageRenderScript = 35,
LLVMDWARFSourceLanguageBLISS = 36,
LLVMDWARFSourceLanguageMips_Assembler = 37,
LLVMDWARFSourceLanguageGOOGLE_RenderScript = 38,
LLVMDWARFSourceLanguageBORLAND_Delphi = 39,
}
}
12 changes: 12 additions & 0 deletions src/Generated/LLVMDWARFTypeEncoding.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace LLVMSharp
{
public partial struct LLVMDWARFTypeEncoding
{
public LLVMDWARFTypeEncoding(uint value)
{
Value = value;
}

public uint Value;
}
}
8 changes: 8 additions & 0 deletions src/Generated/LLVMDiagnosticHandler.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;
using System.Runtime.InteropServices;

namespace LLVMSharp
{
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void LLVMDiagnosticHandler(LLVMDiagnosticInfoRef param0, IntPtr param1);
}
Loading