Skip to content

Commit 1198b12

Browse files
committed
Regenerating bindings
1 parent 7152857 commit 1198b12

18 files changed

+370
-97
lines changed

sources/LLVMSharp.Interop/Extensions/LLVM.Manual.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ public static unsafe partial class LLVM
5151
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSparcTargetInfo", ExactSpelling = true)]
5252
public static extern void InitializeSparcTargetInfo();
5353

54+
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSPIRVTargetInfo", ExactSpelling = true)]
55+
public static extern void InitializeSPIRVTargetInfo();
56+
5457
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSystemZTargetInfo", ExactSpelling = true)]
5558
public static extern void InitializeSystemZTargetInfo();
5659

@@ -108,6 +111,9 @@ public static unsafe partial class LLVM
108111
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSparcTarget", ExactSpelling = true)]
109112
public static extern void InitializeSparcTarget();
110113

114+
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSPIRVTarget", ExactSpelling = true)]
115+
public static extern void InitializeSPIRVTarget();
116+
111117
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSystemZTarget", ExactSpelling = true)]
112118
public static extern void InitializeSystemZTarget();
113119

@@ -165,6 +171,9 @@ public static unsafe partial class LLVM
165171
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSparcTargetMC", ExactSpelling = true)]
166172
public static extern void InitializeSparcTargetMC();
167173

174+
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSPIRVTargetMC", ExactSpelling = true)]
175+
public static extern void InitializeSPIRVTargetMC();
176+
168177
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSystemZTargetMC", ExactSpelling = true)]
169178
public static extern void InitializeSystemZTargetMC();
170179

@@ -222,6 +231,9 @@ public static unsafe partial class LLVM
222231
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSparcAsmPrinter", ExactSpelling = true)]
223232
public static extern void InitializeSparcAsmPrinter();
224233

234+
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSPIRVAsmPrinter", ExactSpelling = true)]
235+
public static extern void InitializeSPIRVAsmPrinter();
236+
225237
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSystemZAsmPrinter", ExactSpelling = true)]
226238
public static extern void InitializeSystemZAsmPrinter();
227239

sources/LLVMSharp.Interop/Extensions/LLVMBuilderRef.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -491,14 +491,6 @@ public readonly LLVMValueRef BuildNUWMul(LLVMValueRef LHS, LLVMValueRef RHS, Rea
491491
return LLVM.BuildNUWMul(this, LHS, RHS, marshaledName);
492492
}
493493

494-
public readonly LLVMValueRef BuildNUWNeg(LLVMValueRef V, string Name = "") => BuildNUWNeg(V, Name.AsSpan());
495-
496-
public readonly LLVMValueRef BuildNUWNeg(LLVMValueRef V, ReadOnlySpan<char> Name)
497-
{
498-
using var marshaledName = new MarshaledString(Name);
499-
return LLVM.BuildNUWNeg(this, V, marshaledName);
500-
}
501-
502494
public readonly LLVMValueRef BuildNUWSub(LLVMValueRef LHS, LLVMValueRef RHS, string Name = "") => BuildNUWSub(LHS, RHS, Name.AsSpan());
503495

504496
public readonly LLVMValueRef BuildNUWSub(LLVMValueRef LHS, LLVMValueRef RHS, ReadOnlySpan<char> Name)

sources/LLVMSharp.Interop/Extensions/LLVMContextRef.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ public unsafe partial struct LLVMContextRef(IntPtr handle) : IDisposable, IEquat
3939

4040
public readonly LLVMTypeRef X86FP80Type => (Handle != IntPtr.Zero) ? LLVM.X86FP80TypeInContext(this) : default;
4141

42-
public readonly LLVMTypeRef X86MMXType => (Handle != IntPtr.Zero) ? LLVM.X86MMXTypeInContext(this) : default;
43-
4442
public readonly LLVMTypeRef X86AMXType => (Handle != IntPtr.Zero) ? LLVM.X86AMXTypeInContext(this) : default;
4543

4644
public static implicit operator LLVMContextRef(LLVMOpaqueContext* value) => new LLVMContextRef((IntPtr)value);
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
using System;
4+
5+
namespace LLVMSharp.Interop;
6+
7+
public unsafe partial struct LLVMDbgRecordRef(IntPtr handle) : IEquatable<LLVMDbgRecordRef>
8+
{
9+
public IntPtr Handle = handle;
10+
11+
public static implicit operator LLVMDbgRecordRef(LLVMOpaqueDbgRecord* Comdat) => new LLVMDbgRecordRef((IntPtr)Comdat);
12+
13+
public static implicit operator LLVMOpaqueDbgRecord*(LLVMDbgRecordRef Comdat) => (LLVMOpaqueDbgRecord*)Comdat.Handle;
14+
15+
public static bool operator ==(LLVMDbgRecordRef left, LLVMDbgRecordRef right) => left.Handle == right.Handle;
16+
17+
public static bool operator !=(LLVMDbgRecordRef left, LLVMDbgRecordRef right) => !(left == right);
18+
19+
public override readonly bool Equals(object? obj) => (obj is LLVMDbgRecordRef other) && Equals(other);
20+
21+
public readonly bool Equals(LLVMDbgRecordRef other) => this == other;
22+
23+
public override readonly int GetHashCode() => Handle.GetHashCode();
24+
25+
public override readonly string ToString() => $"{nameof(LLVMDbgRecordRef)}: {Handle:X}";
26+
}

sources/LLVMSharp.Interop/Extensions/LLVMTypeRef.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ public unsafe partial struct LLVMTypeRef(IntPtr handle) : IEquatable<LLVMTypeRef
3636

3737
public static LLVMTypeRef X86FP80 => LLVM.X86FP80Type();
3838

39-
public static LLVMTypeRef X86MMX => LLVM.X86MMXType();
40-
4139
public static LLVMTypeRef X86AMX => LLVM.X86AMXType();
4240

4341
public readonly LLVMValueRef AlignOf => (Handle != IntPtr.Zero) ? LLVM.AlignOf(this) : default;

sources/LLVMSharp.Interop/Extensions/LLVMValueRef.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,6 @@ public static LLVMValueRef CreateConstNamedStruct(LLVMTypeRef StructTy, ReadOnly
738738

739739
public static LLVMValueRef CreateConstNUWMul(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant) => LLVM.ConstNUWMul(LHSConstant, RHSConstant);
740740

741-
public static LLVMValueRef CreateConstNUWNeg(LLVMValueRef ConstantVal) => LLVM.ConstNUWNeg(ConstantVal);
742-
743741
public static LLVMValueRef CreateConstNUWSub(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant) => LLVM.ConstNUWSub(LHSConstant, RHSConstant);
744742

745743
public static LLVMValueRef CreateConstPointerCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType) => LLVM.ConstPointerCast(ConstantVal, ToType);
@@ -766,8 +764,6 @@ public static LLVMValueRef CreateConstRealOfStringAndSize(LLVMTypeRef RealTy, Re
766764
return LLVM.ConstRealOfStringAndSize(RealTy, marshaledText, (uint)marshaledText.Length);
767765
}
768766

769-
public static LLVMValueRef CreateConstShl(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant) => LLVM.ConstShl(LHSConstant, RHSConstant);
770-
771767
public static LLVMValueRef CreateConstShuffleVector(LLVMValueRef VectorAConstant, LLVMValueRef VectorBConstant, LLVMValueRef MaskConstant) => LLVM.ConstShuffleVector(VectorAConstant, VectorBConstant, MaskConstant);
772768

773769
public static LLVMValueRef CreateConstStruct(LLVMValueRef[] ConstantVals, bool Packed) => CreateConstStruct(ConstantVals.AsSpan(), Packed);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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-20.1.2/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 LLVMOpaqueDbgRecord
9+
{
10+
}

0 commit comments

Comments
 (0)