Skip to content

Commit 8d4c9d6

Browse files
committed
Regenerating libLLVM bindings
1 parent 337e58d commit 8d4c9d6

File tree

10 files changed

+121
-151
lines changed

10 files changed

+121
-151
lines changed

sources/LLVMSharp.Interop/Manual/LLVMMetadataKind.cs

Lines changed: 0 additions & 45 deletions
This file was deleted.

sources/LLVMSharp.Interop/llvm/LLVM.cs

Lines changed: 17 additions & 99 deletions
Large diffs are not rendered by default.
File renamed without changes.

sources/LLVMSharp.Interop/llvm/LLVMDWARFSourceLanguage.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ public enum LLVMDWARFSourceLanguage
4444
LLVMDWARFSourceLanguageFortran08,
4545
LLVMDWARFSourceLanguageRenderScript,
4646
LLVMDWARFSourceLanguageBLISS,
47+
LLVMDWARFSourceLanguageKotlin,
48+
LLVMDWARFSourceLanguageZig,
49+
LLVMDWARFSourceLanguageCrystal,
50+
LLVMDWARFSourceLanguageC_plus_plus_17,
51+
LLVMDWARFSourceLanguageC_plus_plus_20,
52+
LLVMDWARFSourceLanguageC17,
53+
LLVMDWARFSourceLanguageFortran18,
54+
LLVMDWARFSourceLanguageAda2005,
55+
LLVMDWARFSourceLanguageAda2012,
4756
LLVMDWARFSourceLanguageMips_Assembler,
4857
LLVMDWARFSourceLanguageGOOGLE_RenderScript,
4958
LLVMDWARFSourceLanguageBORLAND_Delphi,

sources/LLVMSharp.Interop/llvm/LLVMJITSymbolGenericFlags.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77

88
namespace LLVMSharp.Interop;
99

10-
[NativeTypeName("int")]
1110
[Flags]
12-
public enum LLVMJITSymbolGenericFlags : uint
11+
public enum LLVMJITSymbolGenericFlags
1312
{
1413
LLVMJITSymbolGenericFlagsNone = 0,
15-
LLVMJITSymbolGenericFlagsExported = 1U << 0,
16-
LLVMJITSymbolGenericFlagsWeak = 1U << 1,
17-
LLVMJITSymbolGenericFlagsCallable = 1U << 2,
18-
LLVMJITSymbolGenericFlagsMaterializationSideEffectsOnly = 1U << 3,
14+
LLVMJITSymbolGenericFlagsExported = 1 << 0,
15+
LLVMJITSymbolGenericFlagsWeak = 1 << 1,
16+
LLVMJITSymbolGenericFlagsCallable = 1 << 2,
17+
LLVMJITSymbolGenericFlagsMaterializationSideEffectsOnly = 1 << 3,
1918
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
2+
3+
// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-16.0.6/llvm/include/llvm-c
4+
// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information.
5+
6+
namespace LLVMSharp.Interop;
7+
8+
public enum LLVMMetadataKind
9+
{
10+
LLVMMDStringMetadataKind,
11+
LLVMConstantAsMetadataMetadataKind,
12+
LLVMLocalAsMetadataMetadataKind,
13+
LLVMDistinctMDOperandPlaceholderMetadataKind,
14+
LLVMMDTupleMetadataKind,
15+
LLVMDILocationMetadataKind,
16+
LLVMDIExpressionMetadataKind,
17+
LLVMDIGlobalVariableExpressionMetadataKind,
18+
LLVMGenericDINodeMetadataKind,
19+
LLVMDISubrangeMetadataKind,
20+
LLVMDIEnumeratorMetadataKind,
21+
LLVMDIBasicTypeMetadataKind,
22+
LLVMDIDerivedTypeMetadataKind,
23+
LLVMDICompositeTypeMetadataKind,
24+
LLVMDISubroutineTypeMetadataKind,
25+
LLVMDIFileMetadataKind,
26+
LLVMDICompileUnitMetadataKind,
27+
LLVMDISubprogramMetadataKind,
28+
LLVMDILexicalBlockMetadataKind,
29+
LLVMDILexicalBlockFileMetadataKind,
30+
LLVMDINamespaceMetadataKind,
31+
LLVMDIModuleMetadataKind,
32+
LLVMDITemplateTypeParameterMetadataKind,
33+
LLVMDITemplateValueParameterMetadataKind,
34+
LLVMDIGlobalVariableMetadataKind,
35+
LLVMDILocalVariableMetadataKind,
36+
LLVMDILabelMetadataKind,
37+
LLVMDIObjCPropertyMetadataKind,
38+
LLVMDIImportedEntityMetadataKind,
39+
LLVMDIMacroMetadataKind,
40+
LLVMDIMacroFileMetadataKind,
41+
LLVMDICommonBlockMetadataKind,
42+
LLVMDIStringTypeMetadataKind,
43+
LLVMDIGenericSubrangeMetadataKind,
44+
LLVMDIArgListMetadataKind,
45+
LLVMDIAssignIDMetadataKind,
46+
}

sources/LLVMSharp.Interop/llvm/LLVMTypeKind.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ public enum LLVMTypeKind
2727
LLVMScalableVectorTypeKind,
2828
LLVMBFloatTypeKind,
2929
LLVMX86_AMXTypeKind,
30+
LLVMTargetExtTypeKind,
3031
}

sources/LLVMSharp.Interop/llvm/LLVMValueKind.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ public enum LLVMValueKind
3333
LLVMInlineAsmValueKind,
3434
LLVMInstructionValueKind,
3535
LLVMPoisonValueValueKind,
36+
LLVMConstantTargetNoneValueKind,
3637
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
2+
3+
###############################################################################
4+
# EditorConfig is awesome: http://EditorConfig.org
5+
###############################################################################
6+
7+
###############################################################################
8+
# Not top-most EditorConfig file
9+
###############################################################################
10+
root = false
11+
12+
###############################################################################
13+
# Set dotnet naming rules to:
14+
# disable any parent naming rules since they are not applicable to interop
15+
###############################################################################
16+
[*.cs]
17+
dotnet_naming_rule.async_methods_should_be_pascal_case_suffixed_with_async.severity = none
18+
dotnet_naming_rule.const_fields_and_locals_should_be_pascal_case.severity = none
19+
dotnet_naming_rule.interfaces_should_be_pascal_case_prefixed_with_i.severity = none
20+
dotnet_naming_rule.locals_should_be_camel_case.severity = none
21+
dotnet_naming_rule.parameters_should_be_camel_case.severity = none
22+
dotnet_naming_rule.private_and_internal_static_fields_should_be_camel_case_prefixed_with_s_and_underscore.severity = none
23+
dotnet_naming_rule.private_and_internal_fields_should_be_camel_case_prefixed_with_underscore.severity = none
24+
dotnet_naming_rule.public_and_protected_declarations_should_be_pascal_case.severity = none
25+
dotnet_naming_rule.type_parameters_should_be_pascal_case_prefixed_with_t.severity = none
26+
27+
###############################################################################
28+
# Set dotnet style options to:
29+
# disable certain parent style options since they are not applicable to interop
30+
###############################################################################
31+
csharp_style_expression_bodied_methods = when_on_single_line:none
32+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:none
33+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:none
34+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:none
35+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:none
36+
dotnet_style_prefer_conditional_expression_over_assignment = true:none
37+
dotnet_style_prefer_conditional_expression_over_return = true:none
38+
csharp_style_prefer_pattern_matching = true:none
39+
csharp_style_var_elsewhere = true:none
40+
csharp_style_var_for_built_in_types = true:none
41+
csharp_style_var_when_type_is_apparent = true:none

tests/LLVMSharp.UnitTests/Interop/llvm_blake3_hasherTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace LLVMSharp.Interop.UnitTests;
1010

1111
/// <summary>Provides validation of the <see cref="llvm_blake3_hasher" /> struct.</summary>
12-
public static unsafe partial class llvm_blake3_hasherTests
12+
public static unsafe partial class @llvm_blake3_hasherTests
1313
{
1414
/// <summary>Validates that the <see cref="llvm_blake3_hasher" /> struct is blittable.</summary>
1515
[Test]

0 commit comments

Comments
 (0)