Skip to content

Commit 5fe5a50

Browse files
committed
Regenerating bindings for LLVM 13.0.0
1 parent 3b08208 commit 5fe5a50

26 files changed

+469
-53
lines changed

sources/LLVMSharp.Interop/Internals/NativeTypeNameAttribute.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,21 @@
55

66
namespace LLVMSharp.Interop
77
{
8+
/// <summary>Defines the type of a member as it was used in the native signature.</summary>
9+
[AttributeUsage(AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = false, Inherited = true)]
810
[Conditional("DEBUG")]
9-
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = false, Inherited = true)]
10-
internal sealed class NativeTypeNameAttribute : System.Attribute
11+
internal sealed partial class NativeTypeNameAttribute : Attribute
1112
{
13+
private readonly string _name;
14+
15+
/// <summary>Initializes a new instance of the <see cref="NativeTypeNameAttribute" /> class.</summary>
16+
/// <param name="name">The name of the type that was used in the native signature.</param>
1217
public NativeTypeNameAttribute(string name)
1318
{
14-
Name = name;
19+
_name = name;
1520
}
1621

17-
public string Name { get; }
22+
/// <summary>Gets the name of the type that was used in the native signature.</summary>
23+
public string Name => _name;
1824
}
1925
}

sources/LLVMSharp.Interop/LLVM.cs

Lines changed: 208 additions & 45 deletions
Large diffs are not rendered by default.

sources/LLVMSharp.Interop/Extensions/LLVMAttributeIndex.cs renamed to sources/LLVMSharp.Interop/LLVMAttributeIndex.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// 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.
22

3-
// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c
3+
// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-13.0.0/llvm/include/llvm-c
44
// 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.
55

66
namespace LLVMSharp.Interop

sources/LLVMSharp.Interop/LLVMComdatSelectionKind.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public enum LLVMComdatSelectionKind
1010
LLVMAnyComdatSelectionKind,
1111
LLVMExactMatchComdatSelectionKind,
1212
LLVMLargestComdatSelectionKind,
13-
LLVMNoDuplicatesComdatSelectionKind,
13+
LLVMNoDeduplicateComdatSelectionKind,
1414
LLVMSameSizeComdatSelectionKind,
1515
}
1616
}

sources/LLVMSharp.Interop/LLVMJITEvaluatedSymbol.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace LLVMSharp.Interop
77
{
88
public partial struct LLVMJITEvaluatedSymbol
99
{
10-
[NativeTypeName("LLVMOrcJITTargetAddress")]
10+
[NativeTypeName("LLVMOrcExecutorAddress")]
1111
public ulong Address;
1212

1313
public LLVMJITSymbolFlags Flags;

sources/LLVMSharp.Interop/LLVMJITSymbolGenericFlags.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77

88
namespace LLVMSharp.Interop
99
{
10+
[NativeTypeName("int")]
1011
[Flags]
1112
public enum LLVMJITSymbolGenericFlags : uint
1213
{
1314
LLVMJITSymbolGenericFlagsExported = 1U << 0,
1415
LLVMJITSymbolGenericFlagsWeak = 1U << 1,
16+
LLVMJITSymbolGenericFlagsCallable = 1U << 2,
17+
LLVMJITSymbolGenericFlagsMaterializationSideEffectsOnly = 1U << 3,
1518
}
1619
}

sources/LLVMSharp.Interop/Extensions/LLVMMetadataKind.cs renamed to sources/LLVMSharp.Interop/LLVMMetadataKind.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// 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.
22

3-
// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c
3+
// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-13.0.0/llvm/include/llvm-c
44
// 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.
55

66
namespace LLVMSharp.Interop
@@ -39,5 +39,8 @@ public enum LLVMMetadataKind
3939
LLVMDIMacroMetadataKind,
4040
LLVMDIMacroFileMetadataKind,
4141
LLVMDICommonBlockMetadataKind,
42+
LLVMDIStringTypeMetadataKind,
43+
LLVMDIGenericSubrangeMetadataKind,
44+
LLVMDIArgListMetadataKind,
4245
}
4346
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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-13.0.0/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 partial struct LLVMOpaquePassBuilderOptions
9+
{
10+
}
11+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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-13.0.0/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 unsafe partial struct LLVMOrcCDependenceMapPair
9+
{
10+
[NativeTypeName("LLVMOrcJITDylibRef")]
11+
public LLVMOrcOpaqueJITDylib* JD;
12+
13+
public LLVMOrcCSymbolsList Names;
14+
}
15+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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-13.0.0/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 unsafe partial struct LLVMOrcCSymbolAliasMapEntry
9+
{
10+
[NativeTypeName("LLVMOrcSymbolStringPoolEntryRef")]
11+
public LLVMOrcOpaqueSymbolStringPoolEntry* Name;
12+
13+
public LLVMJITSymbolFlags Flags;
14+
}
15+
}

0 commit comments

Comments
 (0)