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

Regenerating LLVMSharp using the EnumConstantDecl changes #98

Merged
merged 1 commit into from
May 11, 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
22 changes: 11 additions & 11 deletions src/Generated/LLVMAtomicRMWBinOp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ 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,
LLVMAtomicRMWBinOpXchg,
LLVMAtomicRMWBinOpAdd,
LLVMAtomicRMWBinOpSub,
LLVMAtomicRMWBinOpAnd,
LLVMAtomicRMWBinOpNand,
LLVMAtomicRMWBinOpOr,
LLVMAtomicRMWBinOpXor,
LLVMAtomicRMWBinOpMax,
LLVMAtomicRMWBinOpMin,
LLVMAtomicRMWBinOpUMax,
LLVMAtomicRMWBinOpUMin,
}
}
4 changes: 2 additions & 2 deletions src/Generated/LLVMByteOrdering.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace LLVMSharp
{
public enum LLVMByteOrdering
{
LLVMBigEndian = 0,
LLVMLittleEndian = 1,
LLVMBigEndian,
LLVMLittleEndian,
}
}
4 changes: 2 additions & 2 deletions src/Generated/LLVMCodeGenFileType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace LLVMSharp
{
public enum LLVMCodeGenFileType
{
LLVMAssemblyFile = 0,
LLVMObjectFile = 1,
LLVMAssemblyFile,
LLVMObjectFile,
}
}
8 changes: 4 additions & 4 deletions src/Generated/LLVMCodeGenOptLevel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ namespace LLVMSharp
{
public enum LLVMCodeGenOptLevel
{
LLVMCodeGenLevelNone = 0,
LLVMCodeGenLevelLess = 1,
LLVMCodeGenLevelDefault = 2,
LLVMCodeGenLevelAggressive = 3,
LLVMCodeGenLevelNone,
LLVMCodeGenLevelLess,
LLVMCodeGenLevelDefault,
LLVMCodeGenLevelAggressive,
}
}
14 changes: 7 additions & 7 deletions src/Generated/LLVMCodeModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ namespace LLVMSharp
{
public enum LLVMCodeModel
{
LLVMCodeModelDefault = 0,
LLVMCodeModelJITDefault = 1,
LLVMCodeModelTiny = 2,
LLVMCodeModelSmall = 3,
LLVMCodeModelKernel = 4,
LLVMCodeModelMedium = 5,
LLVMCodeModelLarge = 6,
LLVMCodeModelDefault,
LLVMCodeModelJITDefault,
LLVMCodeModelTiny,
LLVMCodeModelSmall,
LLVMCodeModelKernel,
LLVMCodeModelMedium,
LLVMCodeModelLarge,
}
}
10 changes: 5 additions & 5 deletions src/Generated/LLVMComdatSelectionKind.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ namespace LLVMSharp
{
public enum LLVMComdatSelectionKind
{
LLVMAnyComdatSelectionKind = 0,
LLVMExactMatchComdatSelectionKind = 1,
LLVMLargestComdatSelectionKind = 2,
LLVMNoDuplicatesComdatSelectionKind = 3,
LLVMSameSizeComdatSelectionKind = 4,
LLVMAnyComdatSelectionKind,
LLVMExactMatchComdatSelectionKind,
LLVMLargestComdatSelectionKind,
LLVMNoDuplicatesComdatSelectionKind,
LLVMSameSizeComdatSelectionKind,
}
}
64 changes: 32 additions & 32 deletions src/Generated/LLVMDIFlags.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,37 @@ public enum LLVMDIFlags
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,
LLVMDIFlagFwdDecl = 1 << 2,
LLVMDIFlagAppleBlock = 1 << 3,
LLVMDIFlagBlockByrefStruct = 1 << 4,
LLVMDIFlagVirtual = 1 << 5,
LLVMDIFlagArtificial = 1 << 6,
LLVMDIFlagExplicit = 1 << 7,
LLVMDIFlagPrototyped = 1 << 8,
LLVMDIFlagObjcClassComplete = 1 << 9,
LLVMDIFlagObjectPointer = 1 << 10,
LLVMDIFlagVector = 1 << 11,
LLVMDIFlagStaticMember = 1 << 12,
LLVMDIFlagLValueReference = 1 << 13,
LLVMDIFlagRValueReference = 1 << 14,
LLVMDIFlagReserved = 1 << 15,
LLVMDIFlagSingleInheritance = 1 << 16,
LLVMDIFlagMultipleInheritance = 2 << 16,
LLVMDIFlagVirtualInheritance = 3 << 16,
LLVMDIFlagIntroducedVirtual = 1 << 18,
LLVMDIFlagBitField = 1 << 19,
LLVMDIFlagNoReturn = 1 << 20,
LLVMDIFlagMainSubprogram = 1 << 21,
LLVMDIFlagTypePassByValue = 1 << 22,
LLVMDIFlagTypePassByReference = 1 << 23,
LLVMDIFlagEnumClass = 1 << 24,
LLVMDIFlagFixedEnum = LLVMDIFlagEnumClass,
LLVMDIFlagThunk = 1 << 25,
LLVMDIFlagTrivial = 1 << 26,
LLVMDIFlagBigEndian = 1 << 27,
LLVMDIFlagLittleEndian = 1 << 28,
LLVMDIFlagIndirectVirtualBase = (1 << 2) | (1 << 5),
LLVMDIFlagAccessibility = LLVMDIFlagPrivate | LLVMDIFlagProtected | LLVMDIFlagPublic,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An example of more complex expressions being handled 🎉

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(explicitly called out other examples in the ClangSharp version)

LLVMDIFlagPtrToMemberRep = LLVMDIFlagSingleInheritance | LLVMDIFlagMultipleInheritance | LLVMDIFlagVirtualInheritance,
}
}
4 changes: 2 additions & 2 deletions src/Generated/LLVMDWARFEmissionKind.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace LLVMSharp
public enum LLVMDWARFEmissionKind
{
LLVMDWARFEmissionNone = 0,
LLVMDWARFEmissionFull = 1,
LLVMDWARFEmissionLineTablesOnly = 2,
LLVMDWARFEmissionFull,
LLVMDWARFEmissionLineTablesOnly,
}
}
80 changes: 40 additions & 40 deletions src/Generated/LLVMDWARFSourceLanguage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,45 @@ 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,
LLVMDWARFSourceLanguageC89,
LLVMDWARFSourceLanguageC,
LLVMDWARFSourceLanguageAda83,
LLVMDWARFSourceLanguageC_plus_plus,
LLVMDWARFSourceLanguageCobol74,
LLVMDWARFSourceLanguageCobol85,
LLVMDWARFSourceLanguageFortran77,
LLVMDWARFSourceLanguageFortran90,
LLVMDWARFSourceLanguagePascal83,
LLVMDWARFSourceLanguageModula2,
LLVMDWARFSourceLanguageJava,
LLVMDWARFSourceLanguageC99,
LLVMDWARFSourceLanguageAda95,
LLVMDWARFSourceLanguageFortran95,
LLVMDWARFSourceLanguagePLI,
LLVMDWARFSourceLanguageObjC,
LLVMDWARFSourceLanguageObjC_plus_plus,
LLVMDWARFSourceLanguageUPC,
LLVMDWARFSourceLanguageD,
LLVMDWARFSourceLanguagePython,
LLVMDWARFSourceLanguageOpenCL,
LLVMDWARFSourceLanguageGo,
LLVMDWARFSourceLanguageModula3,
LLVMDWARFSourceLanguageHaskell,
LLVMDWARFSourceLanguageC_plus_plus_03,
LLVMDWARFSourceLanguageC_plus_plus_11,
LLVMDWARFSourceLanguageOCaml,
LLVMDWARFSourceLanguageRust,
LLVMDWARFSourceLanguageC11,
LLVMDWARFSourceLanguageSwift,
LLVMDWARFSourceLanguageJulia,
LLVMDWARFSourceLanguageDylan,
LLVMDWARFSourceLanguageC_plus_plus_14,
LLVMDWARFSourceLanguageFortran03,
LLVMDWARFSourceLanguageFortran08,
LLVMDWARFSourceLanguageRenderScript,
LLVMDWARFSourceLanguageBLISS,
LLVMDWARFSourceLanguageMips_Assembler,
LLVMDWARFSourceLanguageGOOGLE_RenderScript,
LLVMDWARFSourceLanguageBORLAND_Delphi,
}
}
8 changes: 4 additions & 4 deletions src/Generated/LLVMDiagnosticSeverity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ namespace LLVMSharp
{
public enum LLVMDiagnosticSeverity
{
LLVMDSError = 0,
LLVMDSWarning = 1,
LLVMDSRemark = 2,
LLVMDSNote = 3,
LLVMDSError,
LLVMDSWarning,
LLVMDSRemark,
LLVMDSNote,
}
}
4 changes: 2 additions & 2 deletions src/Generated/LLVMInlineAsmDialect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace LLVMSharp
{
public enum LLVMInlineAsmDialect
{
LLVMInlineAsmDialectATT = 0,
LLVMInlineAsmDialectIntel = 1,
LLVMInlineAsmDialectATT,
LLVMInlineAsmDialectIntel,
}
}
18 changes: 9 additions & 9 deletions src/Generated/LLVMIntPredicate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ namespace LLVMSharp
public enum LLVMIntPredicate
{
LLVMIntEQ = 32,
LLVMIntNE = 33,
LLVMIntUGT = 34,
LLVMIntUGE = 35,
LLVMIntULT = 36,
LLVMIntULE = 37,
LLVMIntSGT = 38,
LLVMIntSGE = 39,
LLVMIntSLT = 40,
LLVMIntSLE = 41,
LLVMIntNE,
LLVMIntUGT,
LLVMIntUGE,
LLVMIntULT,
LLVMIntULE,
LLVMIntSGT,
LLVMIntSGE,
LLVMIntSLT,
LLVMIntSLE,
}
}
4 changes: 2 additions & 2 deletions src/Generated/LLVMLandingPadClauseTy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace LLVMSharp
{
public enum LLVMLandingPadClauseTy
{
LLVMLandingPadCatch = 0,
LLVMLandingPadFilter = 1,
LLVMLandingPadCatch,
LLVMLandingPadFilter,
}
}
34 changes: 17 additions & 17 deletions src/Generated/LLVMLinkage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ namespace LLVMSharp
{
public enum LLVMLinkage
{
LLVMExternalLinkage = 0,
LLVMAvailableExternallyLinkage = 1,
LLVMLinkOnceAnyLinkage = 2,
LLVMLinkOnceODRLinkage = 3,
LLVMLinkOnceODRAutoHideLinkage = 4,
LLVMWeakAnyLinkage = 5,
LLVMWeakODRLinkage = 6,
LLVMAppendingLinkage = 7,
LLVMInternalLinkage = 8,
LLVMPrivateLinkage = 9,
LLVMDLLImportLinkage = 10,
LLVMDLLExportLinkage = 11,
LLVMExternalWeakLinkage = 12,
LLVMGhostLinkage = 13,
LLVMCommonLinkage = 14,
LLVMLinkerPrivateLinkage = 15,
LLVMLinkerPrivateWeakLinkage = 16,
LLVMExternalLinkage,
LLVMAvailableExternallyLinkage,
LLVMLinkOnceAnyLinkage,
LLVMLinkOnceODRLinkage,
LLVMLinkOnceODRAutoHideLinkage,
LLVMWeakAnyLinkage,
LLVMWeakODRLinkage,
LLVMAppendingLinkage,
LLVMInternalLinkage,
LLVMPrivateLinkage,
LLVMDLLImportLinkage,
LLVMDLLExportLinkage,
LLVMExternalWeakLinkage,
LLVMGhostLinkage,
LLVMCommonLinkage,
LLVMLinkerPrivateLinkage,
LLVMLinkerPrivateWeakLinkage,
}
}
Loading