diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md
index eaa368b4..4dcd5221 100644
--- a/.github/copilot-instructions.md
+++ b/.github/copilot-instructions.md
@@ -67,7 +67,7 @@ these in the rsp; don't drop them expecting an external profile to supply them.
init calls. Regenerate against a full-target LLVM build/install, or restore these six aggregator bodies to
the canonical 20-target list afterward. The per-target `InitializeAMDGPUTarget()` etc. P/Invokes are
hand-written in `Extensions/LLVM.Manual.cs` and already cover every target regardless.
-- **`LLVMAttributeIndex` / `LLVMJITSymbolGenericFlags` need a post-regen fixup.** Generator `21.1.8.3`
+- **`LLVMAttributeIndex` / `LLVMJITSymbolGenericFlags` need a post-regen fixup.** Generator `22.1.8.0`
preserves the headers' `U` literal suffixes (`0U`, `1U << n`). The repo's `CA1028` policy (unsuppressed)
requires `Int32`-underlying enums, and `int` enums reject `U`-suffixed values (CS0266) — while switching
them to `uint` re-triggers `CA1028`. These two enums' values are version-stable, so after regen restore
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 575ccba0..12397c9d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -99,6 +99,16 @@ jobs:
os: [ macos ]
steps:
- uses: actions/checkout@v4
+ # libLLVM 22.1.8 was linked against this Homebrew Z3 ABI.
+ - name: Install libLLVM Z3 dependency
+ env:
+ HOMEBREW_NO_AUTO_UPDATE: 1
+ run: |
+ set -euo pipefail
+ brew tap-new llvmsharp/ci
+ formula="$(brew --repository llvmsharp/ci)/Formula/z3.rb"
+ curl -fsSL https://raw.githubusercontent.com/Homebrew/homebrew-core/4b627f740ac5fe1871072e12aab203275812b6c5/Formula/z/z3.rb -o "$formula"
+ brew install llvmsharp/ci/z3
- run: ./scripts/cibuild.sh --configuration ${{ matrix.configuration }} --architecture ${{ matrix.architecture }}
shell: bash
- uses: actions/upload-artifact@v4
diff --git a/Directory.Build.props b/Directory.Build.props
index d2689c04..212b827f 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -47,7 +47,7 @@
20.1.2
LLVMSharp
LLVMSharp
- 21.1.8.1
+ 22.1.8.0
rc1
pr
diff --git a/Directory.Packages.props b/Directory.Packages.props
index 9382a421..4edc7b9d 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -12,7 +12,8 @@
-
+
+
diff --git a/samples/KaleidoscopeTutorial/Directory.Build.props b/samples/KaleidoscopeTutorial/Directory.Build.props
index f9d11666..15a29ea8 100644
--- a/samples/KaleidoscopeTutorial/Directory.Build.props
+++ b/samples/KaleidoscopeTutorial/Directory.Build.props
@@ -18,7 +18,7 @@
-
+
diff --git a/samples/KaleidoscopeTutorial/Kaleidoscope.Common/KaleidoscopeJit.cs b/samples/KaleidoscopeTutorial/Kaleidoscope.Common/KaleidoscopeJit.cs
index 96fd4492..43ac5ab8 100644
--- a/samples/KaleidoscopeTutorial/Kaleidoscope.Common/KaleidoscopeJit.cs
+++ b/samples/KaleidoscopeTutorial/Kaleidoscope.Common/KaleidoscopeJit.cs
@@ -1,5 +1,7 @@
// 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.
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
using LLVMSharp.Interop;
namespace Kaleidoscope;
@@ -20,8 +22,11 @@ public KaleidoscopeJit()
{
LlvmSupport.EnsureTargetsInitialized();
+ LLVMOrcOpaqueLLJITBuilder* builder = LLVM.OrcCreateLLJITBuilder();
+ LLVM.OrcLLJITBuilderSetObjectLinkingLayerCreator(builder, &CreateObjectLinkingLayer, null);
+
LLVMOrcOpaqueLLJIT* jit;
- LlvmSupport.ThrowIfError(LLVM.OrcCreateLLJIT(&jit, null), "Failed to create LLJIT");
+ LlvmSupport.ThrowIfError(LLVM.OrcCreateLLJIT(&jit, builder), "Failed to create LLJIT");
_jit = jit;
_mainJD = LLVM.OrcLLJITGetMainJITDylib(jit);
@@ -118,6 +123,10 @@ public void DefineSymbol(string name, nint address)
return threadSafeModule;
}
+ [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])]
+ private static LLVMOrcOpaqueObjectLayer* CreateObjectLinkingLayer(void* context, LLVMOrcOpaqueExecutionSession* executionSession, sbyte* triple)
+ => LLVM.OrcCreateRTDyldObjectLinkingLayerWithSectionMemoryManagerReserveAlloc(executionSession, ReserveAlloc: 1);
+
public void Dispose()
{
if (_jit is not null)
diff --git a/samples/KaleidoscopeTutorial/Kaleidoscope.Common/LlvmSupport.cs b/samples/KaleidoscopeTutorial/Kaleidoscope.Common/LlvmSupport.cs
index ac1d8acd..e50c2bd3 100644
--- a/samples/KaleidoscopeTutorial/Kaleidoscope.Common/LlvmSupport.cs
+++ b/samples/KaleidoscopeTutorial/Kaleidoscope.Common/LlvmSupport.cs
@@ -21,11 +21,9 @@ public static void EnsureTargetsInitialized()
return;
}
- LLVM.InitializeAllTargetInfos();
- LLVM.InitializeAllTargets();
- LLVM.InitializeAllTargetMCs();
- LLVM.InitializeAllAsmPrinters();
- LLVM.InitializeAllAsmParsers();
+ _ = LLVM.InitializeNativeTarget();
+ _ = LLVM.InitializeNativeAsmPrinter();
+ _ = LLVM.InitializeNativeAsmParser();
s_targetsInitialized = true;
}
diff --git a/scripts/build.sh b/scripts/build.sh
index 212ccf13..18c443f4 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -319,7 +319,7 @@ function DetectChanges {
detectLibllvmsharp=true
else
# libLLVM regenerates when the tracked LLVM version changes. The libLLVM package
- # version tracks the full patch (e.g. 21.1.8), so compare the full version.
+ # version tracks the full patch (e.g. 22.1.8), so compare the full version.
prevVersion="$(git -C "$RepoRoot" show "$base:CMakeLists.txt" 2>/dev/null | sed -n 's/^project(LLVMSharp VERSION \([0-9.]*\)).*/\1/p')"
if [ "$llvm" != "$prevVersion" ]; then
diff --git a/sources/GenerateLLVM-LICENSE.txt b/sources/GenerateLLVM-LICENSE.txt
index 97607eaf..582b804c 100644
--- a/sources/GenerateLLVM-LICENSE.txt
+++ b/sources/GenerateLLVM-LICENSE.txt
@@ -1,4 +1,4 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
diff --git a/sources/GenerateLLVM.rsp b/sources/GenerateLLVM.rsp
index e3916e66..044f03ec 100644
--- a/sources/GenerateLLVM.rsp
+++ b/sources/GenerateLLVM.rsp
@@ -95,9 +95,9 @@ llvm_blake3_version=@blake3_version
LLVM_BLAKE3_VERSION_STRING=@BLAKE3_VERSION_STRING
LLVMOpaqueValueMetadataEntry=LLVMValueMetadataEntry
LLVMOpaqueModuleFlagEntry=LLVMModuleFlagEntry
-__AnonymousEnum_Core_L472_C1=@LLVMAttributeIndex
-__AnonymousEnum_Core_L496_C1=@LLVMFastMathFlags
-__AnonymousEnum_Core_L519_C1=@LLVMGEPNoWrapFlags
+__AnonymousEnum_Core_L473_C1=@LLVMAttributeIndex
+__AnonymousEnum_Core_L497_C1=@LLVMFastMathFlags
+__AnonymousEnum_Core_L520_C1=@LLVMGEPNoWrapFlags
__AnonymousEnum_DebugInfo_L164_C1=@LLVMMetadataKind
--test-output
./tests/LLVMSharp.UnitTests/Interop
diff --git a/sources/LLVMSharp.Interop/Extensions/LLVM.Manual.cs b/sources/LLVMSharp.Interop/Extensions/LLVM.Manual.cs
index 82007d81..b182d3a5 100644
--- a/sources/LLVMSharp.Interop/Extensions/LLVM.Manual.cs
+++ b/sources/LLVMSharp.Interop/Extensions/LLVM.Manual.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System;
diff --git a/sources/LLVMSharp.Interop/Extensions/LLVMBasicBlockRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMBasicBlockRef.cs
index f08328e5..7f59d9ee 100644
--- a/sources/LLVMSharp.Interop/Extensions/LLVMBasicBlockRef.cs
+++ b/sources/LLVMSharp.Interop/Extensions/LLVMBasicBlockRef.cs
@@ -77,7 +77,7 @@ public static LLVMBasicBlockRef InsertInContext(LLVMContextRef C, LLVMBasicBlock
public readonly LLVMBasicBlockRef InsertBasicBlock(ReadOnlySpan Name)
{
using var marshaledName = new MarshaledString(Name);
- return LLVM.InsertBasicBlock(this, marshaledName);
+ return LLVM.InsertBasicBlockInContext(Parent.GlobalParent.Context, this, marshaledName);
}
public readonly void MoveAfter(LLVMBasicBlockRef MovePos) => LLVM.MoveBasicBlockAfter(this, MovePos);
diff --git a/sources/LLVMSharp.Interop/Extensions/LLVMContextRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMContextRef.cs
index 89a407ff..c171eb64 100644
--- a/sources/LLVMSharp.Interop/Extensions/LLVMContextRef.cs
+++ b/sources/LLVMSharp.Interop/Extensions/LLVMContextRef.cs
@@ -9,7 +9,9 @@ public unsafe partial struct LLVMContextRef(IntPtr handle) : IDisposable, IEquat
{
public IntPtr Handle = handle;
+#pragma warning disable CS0618 // Global-context API retained for compatibility.
public static LLVMContextRef Global => LLVM.GetGlobalContext();
+#pragma warning restore CS0618
public readonly LLVMTypeRef BFloatType => (Handle != IntPtr.Zero) ? LLVM.BFloatTypeInContext(this) : default;
diff --git a/sources/LLVMSharp.Interop/Extensions/LLVMModuleRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMModuleRef.cs
index b88e7897..fb75db5f 100644
--- a/sources/LLVMSharp.Interop/Extensions/LLVMModuleRef.cs
+++ b/sources/LLVMSharp.Interop/Extensions/LLVMModuleRef.cs
@@ -218,7 +218,9 @@ public readonly string Target
public static LLVMModuleRef CreateWithName(ReadOnlySpan ModuleID)
{
using var marshaledModuleID = new MarshaledString(ModuleID);
+#pragma warning disable CS0618 // Global-context API retained for compatibility.
return LLVM.ModuleCreateWithName(marshaledModuleID);
+#pragma warning restore CS0618
}
public readonly LLVMValueRef AddAlias2(LLVMTypeRef ValueTy, uint AddrSpace, LLVMValueRef Aliasee, string Name) => AddAlias2(ValueTy, AddrSpace, Aliasee, Name.AsSpan());
diff --git a/sources/LLVMSharp.Interop/Extensions/LLVMTypeRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMTypeRef.cs
index bc1569f5..69698ee4 100644
--- a/sources/LLVMSharp.Interop/Extensions/LLVMTypeRef.cs
+++ b/sources/LLVMSharp.Interop/Extensions/LLVMTypeRef.cs
@@ -9,6 +9,7 @@ public unsafe partial struct LLVMTypeRef(IntPtr handle) : IEquatable LLVM.BFloatType();
public static LLVMTypeRef Double => LLVM.DoubleType();
@@ -38,6 +39,7 @@ public unsafe partial struct LLVMTypeRef(IntPtr handle) : IEquatable LLVM.X86FP80Type();
public static LLVMTypeRef X86AMX => LLVM.X86AMXType();
+#pragma warning restore CS0618
[DebuggerBrowsable(DebuggerBrowsableState.Never)] // Justification: causes native allocation
public readonly LLVMValueRef AlignOf => (Handle != IntPtr.Zero) ? LLVM.AlignOf(this) : default;
@@ -147,11 +149,13 @@ public static LLVMTypeRef CreateFunction(LLVMTypeRef ReturnType, ReadOnlySpan LLVM.ArrayType2(ElementType, ElementCount);
+#pragma warning disable CS0618 // Global-context APIs retained for compatibility.
public static LLVMTypeRef CreateInt(uint NumBits) => LLVM.IntType(NumBits);
public static LLVMTypeRef CreateIntPtr(LLVMTargetDataRef TD) => LLVM.IntPtrType(TD);
public static LLVMTypeRef CreateIntPtrForAS(LLVMTargetDataRef TD, uint AS) => LLVM.IntPtrTypeForAS(TD, AS);
+#pragma warning restore CS0618
public static LLVMTypeRef CreatePointer(LLVMTypeRef ElementType, uint AddressSpace) => LLVM.PointerType(ElementType, AddressSpace);
@@ -161,7 +165,9 @@ public static LLVMTypeRef CreateStruct(ReadOnlySpan ElementTypes, b
{
fixed (LLVMTypeRef* pElementTypes = ElementTypes)
{
+#pragma warning disable CS0618 // Global-context API retained for compatibility.
return LLVM.StructType((LLVMOpaqueType**)pElementTypes, (uint)ElementTypes.Length, Packed ? 1 : 0);
+#pragma warning restore CS0618
}
}
diff --git a/sources/LLVMSharp.Interop/Extensions/LLVMValueRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMValueRef.cs
index 56b27ce3..c47f2af2 100644
--- a/sources/LLVMSharp.Interop/Extensions/LLVMValueRef.cs
+++ b/sources/LLVMSharp.Interop/Extensions/LLVMValueRef.cs
@@ -1357,7 +1357,9 @@ public static LLVMValueRef CreateConstStruct(ReadOnlySpan Constant
{
fixed (LLVMValueRef* pConstantVals = ConstantVals)
{
+#pragma warning disable CS0618 // Global-context API retained for compatibility.
return LLVM.ConstStruct((LLVMOpaqueValue**)pConstantVals, (uint)ConstantVals.Length, Packed ? 1 : 0);
+#pragma warning restore CS0618
}
}
@@ -1385,7 +1387,9 @@ public static LLVMValueRef CreateMDNode(ReadOnlySpan Vals)
{
fixed (LLVMValueRef* pVals = Vals)
{
+#pragma warning disable CS0618 // Global-context API retained for compatibility.
return LLVM.MDNode((LLVMOpaqueValue**)pVals, (uint)Vals.Length);
+#pragma warning restore CS0618
}
}
@@ -1422,7 +1426,7 @@ public readonly void AddTargetDependentFunctionAttr(ReadOnlySpan A, ReadOn
public readonly LLVMBasicBlockRef AppendBasicBlock(ReadOnlySpan Name)
{
using var marshaledName = new MarshaledString(Name);
- return LLVM.AppendBasicBlock(this, marshaledName);
+ return LLVM.AppendBasicBlockInContext(GlobalParent.Context, this, marshaledName);
}
public readonly void AppendExistingBasicBlock(LLVMBasicBlockRef BB) => LLVM.AppendExistingBasicBlock(this, BB);
@@ -1785,6 +1789,8 @@ public readonly ReadOnlySpan GetRawDataValues()
public readonly LLVMBasicBlockRef GetSuccessor(uint i) => LLVM.GetSuccessor(this, i);
+ public readonly LLVMValueRef GetSwitchCaseValue(uint i) => LLVM.GetSwitchCaseValue(this, i);
+
public readonly void GlobalClearMetadata() => LLVM.GlobalClearMetadata(this);
public readonly (uint Kind, LLVMMetadataRef Metadata)[] GlobalCopyAllMetadata()
@@ -1861,6 +1867,8 @@ public void SetAlignment(uint Bytes)
public readonly void SetSuccessor(uint i, LLVMBasicBlockRef block) => LLVM.SetSuccessor(this, i, block);
+ public readonly void SetSwitchCaseValue(uint i, LLVMValueRef CaseValue) => LLVM.SetSwitchCaseValue(this, i, CaseValue);
+
public readonly void SetValueName2(string Name) => SetValueName2(Name.AsSpan());
public readonly void SetValueName2(ReadOnlySpan Name)
diff --git a/sources/LLVMSharp.Interop/LLVM.cs b/sources/LLVMSharp.Interop/LLVM.cs
index bb950c6d..a9b319ed 100644
--- a/sources/LLVMSharp.Interop/LLVM.cs
+++ b/sources/LLVMSharp.Interop/LLVM.cs
@@ -15,7 +15,7 @@ public static unsafe partial class LLVM
{
public static event DllImportResolver? ResolveLibrary;
- public const int MajorVersion = 21;
+ public const int MajorVersion = 22;
public const int MinorVersion = 1;
static LLVM()
@@ -34,14 +34,14 @@ private static IntPtr OnDllImport(string libraryName, Assembly assembly, DllImpo
return nativeLibrary;
}
- // Then try the normal resolution of the library
- if (TryResolve(libraryName, assembly, searchPath.GetValueOrDefault(), out nativeLibrary))
+ // Then try library specific resolution as applicable
+ if (libraryName.Equals("libLLVM", StringComparison.Ordinal) && TryResolveLLVM(assembly, searchPath, out nativeLibrary))
{
return nativeLibrary;
}
- // Finally, do library specific resolution as applicable
- if (libraryName.Equals("libLLVM", StringComparison.Ordinal) && TryResolveLLVM(assembly, searchPath, out nativeLibrary))
+ // Finally, try the normal resolution of the library
+ if (TryResolve(libraryName, assembly, searchPath.GetValueOrDefault(), out nativeLibrary))
{
return nativeLibrary;
}
diff --git a/sources/LLVMSharp.Interop/LLVMSharp.Interop.csproj b/sources/LLVMSharp.Interop/LLVMSharp.Interop.csproj
index eda23acb..2c1f7920 100644
--- a/sources/LLVMSharp.Interop/LLVMSharp.Interop.csproj
+++ b/sources/LLVMSharp.Interop/LLVMSharp.Interop.csproj
@@ -39,6 +39,7 @@
+
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMComdat.cs b/sources/LLVMSharp.Interop/Manual/LLVMComdat.cs
index eb75277b..474ba5a8 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMComdat.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMComdat.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMDiagnosticHandler.cs b/sources/LLVMSharp.Interop/Manual/LLVMDiagnosticHandler.cs
index f3b3d3fe..11607290 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMDiagnosticHandler.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMDiagnosticHandler.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.InteropServices;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMFatalErrorHandler.cs b/sources/LLVMSharp.Interop/Manual/LLVMFatalErrorHandler.cs
index f5686e9d..376533b8 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMFatalErrorHandler.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMFatalErrorHandler.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.InteropServices;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMJITCSymbolMapPair.cs b/sources/LLVMSharp.Interop/Manual/LLVMJITCSymbolMapPair.cs
index 6424c660..d8b7a24d 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMJITCSymbolMapPair.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMJITCSymbolMapPair.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMMemoryManagerAllocateCodeSectionCallback.cs b/sources/LLVMSharp.Interop/Manual/LLVMMemoryManagerAllocateCodeSectionCallback.cs
index 78d10d3b..e6f25f0c 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMMemoryManagerAllocateCodeSectionCallback.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMMemoryManagerAllocateCodeSectionCallback.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMMemoryManagerAllocateDataSectionCallback.cs b/sources/LLVMSharp.Interop/Manual/LLVMMemoryManagerAllocateDataSectionCallback.cs
index 16808fd4..ff470280 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMMemoryManagerAllocateDataSectionCallback.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMMemoryManagerAllocateDataSectionCallback.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMMemoryManagerDestroyCallback.cs b/sources/LLVMSharp.Interop/Manual/LLVMMemoryManagerDestroyCallback.cs
index 9269d464..8aa64eea 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMMemoryManagerDestroyCallback.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMMemoryManagerDestroyCallback.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.InteropServices;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMMemoryManagerFinalizeMemoryCallback.cs b/sources/LLVMSharp.Interop/Manual/LLVMMemoryManagerFinalizeMemoryCallback.cs
index d997f18e..50e9a133 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMMemoryManagerFinalizeMemoryCallback.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMMemoryManagerFinalizeMemoryCallback.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.InteropServices;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpInfoCallback.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpInfoCallback.cs
index f625c097..f3d074ef 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpInfoCallback.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpInfoCallback.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.InteropServices;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueAttributeRef.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueAttributeRef.cs
index 4e1c6039..b76f78a1 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueAttributeRef.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueAttributeRef.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueBasicBlock.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueBasicBlock.cs
index 574419fd..533cd7f1 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueBasicBlock.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueBasicBlock.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueBinary.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueBinary.cs
index acefa459..24ece9cf 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueBinary.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueBinary.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueBuilder.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueBuilder.cs
index 068b7659..0833cf17 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueBuilder.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueBuilder.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueContext.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueContext.cs
index 57eefd87..1a36391a 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueContext.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueContext.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueDIBuilder.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueDIBuilder.cs
index e5a91fe6..08b0da9d 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueDIBuilder.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueDIBuilder.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueDbgRecord.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueDbgRecord.cs
index b08b7142..0224cd03 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueDbgRecord.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueDbgRecord.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueDiagnosticInfo.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueDiagnosticInfo.cs
index bc7b29cf..d2b83186 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueDiagnosticInfo.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueDiagnosticInfo.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueError.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueError.cs
index 5ac0e1b7..5d1f112a 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueError.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueError.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueExecutionEngine.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueExecutionEngine.cs
index 5cba8000..0d9589e6 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueExecutionEngine.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueExecutionEngine.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueGenericValue.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueGenericValue.cs
index d064af86..bf0af399 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueGenericValue.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueGenericValue.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueJITEventListener.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueJITEventListener.cs
index 956d1da7..730cdb7d 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueJITEventListener.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueJITEventListener.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueLTOCodeGenerator.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueLTOCodeGenerator.cs
index 42ae4bb6..aacecb0e 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueLTOCodeGenerator.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueLTOCodeGenerator.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueLTOInput.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueLTOInput.cs
index de4a48d0..a5c028d3 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueLTOInput.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueLTOInput.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueLTOModule.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueLTOModule.cs
index 1e53b186..1992a2a9 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueLTOModule.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueLTOModule.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueMCJITMemoryManager.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueMCJITMemoryManager.cs
index b486e7c4..fa45cf80 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueMCJITMemoryManager.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueMCJITMemoryManager.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueMemoryBuffer.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueMemoryBuffer.cs
index 9a9dba68..2bc7218e 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueMemoryBuffer.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueMemoryBuffer.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueMetadata.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueMetadata.cs
index b84693c4..dbd1cb1d 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueMetadata.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueMetadata.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueModule.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueModule.cs
index 227c909f..5140f4a9 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueModule.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueModule.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueModuleFlagEntry.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueModuleFlagEntry.cs
index e6879a81..bc302a17 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueModuleFlagEntry.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueModuleFlagEntry.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueModuleProvider.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueModuleProvider.cs
index 3efc1ef9..7914096b 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueModuleProvider.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueModuleProvider.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueNamedMDNode.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueNamedMDNode.cs
index ffc7b73a..6cf2a05c 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueNamedMDNode.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueNamedMDNode.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueObjectFile.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueObjectFile.cs
index 8a99923c..5a3b084d 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueObjectFile.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueObjectFile.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueOperandBundle.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueOperandBundle.cs
index 8e5e110c..5edeb569 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueOperandBundle.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueOperandBundle.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaquePass.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaquePass.cs
index b96389f2..4501febc 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaquePass.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaquePass.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaquePassBuilderOptions.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaquePassBuilderOptions.cs
index 02db82ca..e065280f 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaquePassBuilderOptions.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaquePassBuilderOptions.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaquePassManager.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaquePassManager.cs
index db4b331a..62d7dd85 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaquePassManager.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaquePassManager.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaquePassRegistry.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaquePassRegistry.cs
index 7b7d4702..d758c43d 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaquePassRegistry.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaquePassRegistry.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueRelocationIterator.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueRelocationIterator.cs
index 3f3f233d..44714cb2 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueRelocationIterator.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueRelocationIterator.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueSectionIterator.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueSectionIterator.cs
index 114b620b..d2c52f59 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueSectionIterator.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueSectionIterator.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueSymbolIterator.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueSymbolIterator.cs
index 3fd69103..af64d026 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueSymbolIterator.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueSymbolIterator.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueTargetData.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueTargetData.cs
index 976c3621..ab7f9c78 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueTargetData.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueTargetData.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueTargetLibraryInfotData.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueTargetLibraryInfotData.cs
index 1d0e00c4..e7ced040 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueTargetLibraryInfotData.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueTargetLibraryInfotData.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueTargetMachine.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueTargetMachine.cs
index 28d8a76e..4aaa0545 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueTargetMachine.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueTargetMachine.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueTargetMachineOptions.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueTargetMachineOptions.cs
index f35e3185..205d54a5 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueTargetMachineOptions.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueTargetMachineOptions.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueThinLTOCodeGenerator.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueThinLTOCodeGenerator.cs
index b934ccc2..8409842d 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueThinLTOCodeGenerator.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueThinLTOCodeGenerator.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueType.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueType.cs
index 3e4cd73d..4ffd2a2f 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueType.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueType.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueUse.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueUse.cs
index 6527f51d..425732f8 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueUse.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueUse.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueValue.cs b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueValue.cs
index 6d7050fd..15f8cef4 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOpaqueValue.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOpaqueValue.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction.cs
index d232510d..727b623c 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcErrorReporterFunction.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcErrorReporterFunction.cs
index 124bc63c..f746f271 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcErrorReporterFunction.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcErrorReporterFunction.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.InteropServices;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcGenericIRModuleOperationFunction.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcGenericIRModuleOperationFunction.cs
index 01949abc..574752bd 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcGenericIRModuleOperationFunction.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcGenericIRModuleOperationFunction.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.InteropServices;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcIRTransformLayerTransformFunction.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcIRTransformLayerTransformFunction.cs
index 861e721b..57c3fec5 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcIRTransformLayerTransformFunction.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcIRTransformLayerTransformFunction.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.InteropServices;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcLLJITBuilderObjectLinkingLayerCreatorFunction.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcLLJITBuilderObjectLinkingLayerCreatorFunction.cs
index 35159f8e..9bc2d0a8 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcLLJITBuilderObjectLinkingLayerCreatorFunction.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcLLJITBuilderObjectLinkingLayerCreatorFunction.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.InteropServices;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcMaterializationUnitDestroyFunction.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcMaterializationUnitDestroyFunction.cs
index 3bdb1361..903b6d51 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcMaterializationUnitDestroyFunction.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcMaterializationUnitDestroyFunction.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.InteropServices;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcMaterializationUnitDiscardFunction.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcMaterializationUnitDiscardFunction.cs
index 29fcf935..49aa0bc6 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcMaterializationUnitDiscardFunction.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcMaterializationUnitDiscardFunction.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.InteropServices;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcMaterializationUnitMaterializeFunction.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcMaterializationUnitMaterializeFunction.cs
index d4fa74c2..2a893696 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcMaterializationUnitMaterializeFunction.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcMaterializationUnitMaterializeFunction.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.InteropServices;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcObjectTransformLayerTransformFunction.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcObjectTransformLayerTransformFunction.cs
index 4a2a35c6..33d8581b 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcObjectTransformLayerTransformFunction.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcObjectTransformLayerTransformFunction.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.InteropServices;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueDefinitionGenerator.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueDefinitionGenerator.cs
index b590a0c8..bd721635 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueDefinitionGenerator.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueDefinitionGenerator.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueDumpObjects.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueDumpObjects.cs
index 4081de65..df5257ea 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueDumpObjects.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueDumpObjects.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueExecutionSession.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueExecutionSession.cs
index b86bbbe4..ac5a9e1b 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueExecutionSession.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueExecutionSession.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueIRTransformLayer.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueIRTransformLayer.cs
index 343a7b86..864e3e4f 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueIRTransformLayer.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueIRTransformLayer.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueIndirectStubsManager.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueIndirectStubsManager.cs
index dc4a8c5c..8e21d0db 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueIndirectStubsManager.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueIndirectStubsManager.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueJITDylib.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueJITDylib.cs
index bf03fbc9..e31e5334 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueJITDylib.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueJITDylib.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueJITTargetMachineBuilder.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueJITTargetMachineBuilder.cs
index 54187a54..d594e136 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueJITTargetMachineBuilder.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueJITTargetMachineBuilder.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueLLJIT.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueLLJIT.cs
index 3bfbabf7..06c88dc4 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueLLJIT.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueLLJIT.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueLLJITBuilder.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueLLJITBuilder.cs
index 21c0d518..49bdd3b8 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueLLJITBuilder.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueLLJITBuilder.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueLazyCallThroughManager.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueLazyCallThroughManager.cs
index 1985561d..82702c58 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueLazyCallThroughManager.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueLazyCallThroughManager.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueLookupState.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueLookupState.cs
index 7c63a346..1aa77d30 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueLookupState.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueLookupState.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueMaterializationResponsibility.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueMaterializationResponsibility.cs
index e28f8484..c2d6fe64 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueMaterializationResponsibility.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueMaterializationResponsibility.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueMaterializationUnit.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueMaterializationUnit.cs
index 0494da60..53d2ff33 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueMaterializationUnit.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueMaterializationUnit.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueObjectLayer.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueObjectLayer.cs
index e2ff0f19..772622f7 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueObjectLayer.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueObjectLayer.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueObjectTransformLayer.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueObjectTransformLayer.cs
index c8f4b2ae..f58997c4 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueObjectTransformLayer.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueObjectTransformLayer.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueResourceTracker.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueResourceTracker.cs
index 590c9e8e..69727894 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueResourceTracker.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueResourceTracker.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueSymbolStringPool.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueSymbolStringPool.cs
index 6b758fd6..f316eb4c 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueSymbolStringPool.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueSymbolStringPool.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueSymbolStringPoolEntry.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueSymbolStringPoolEntry.cs
index 82c980c2..b424858d 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueSymbolStringPoolEntry.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueSymbolStringPoolEntry.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueThreadSafeContext.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueThreadSafeContext.cs
index db1a7538..0a8f0d3a 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueThreadSafeContext.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueThreadSafeContext.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueThreadSafeModule.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueThreadSafeModule.cs
index 3883b90e..d35bb327 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueThreadSafeModule.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcOpaqueThreadSafeModule.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMOrcSymbolPredicate.cs b/sources/LLVMSharp.Interop/Manual/LLVMOrcSymbolPredicate.cs
index 63faad98..f5da40dd 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMOrcSymbolPredicate.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMOrcSymbolPredicate.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.InteropServices;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueArg.cs b/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueArg.cs
index cc35368e..8dbc27dc 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueArg.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueArg.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueDebugLoc.cs b/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueDebugLoc.cs
index 153354b8..b1d905d0 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueDebugLoc.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueDebugLoc.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueEntry.cs b/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueEntry.cs
index 9a301c1c..d0b3b299 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueEntry.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueEntry.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueParser.cs b/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueParser.cs
index 09273609..a46897cc 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueParser.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueParser.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueString.cs b/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueString.cs
index 7a220f18..4a205901 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueString.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMRemarkOpaqueString.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMSymbolLookupCallback.cs b/sources/LLVMSharp.Interop/Manual/LLVMSymbolLookupCallback.cs
index 3024b82f..4e7d8319 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMSymbolLookupCallback.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMSymbolLookupCallback.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.InteropServices;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMTarget.cs b/sources/LLVMSharp.Interop/Manual/LLVMTarget.cs
index 958b237b..c032ac09 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMTarget.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMTarget.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMValueMetadataEntry.cs b/sources/LLVMSharp.Interop/Manual/LLVMValueMetadataEntry.cs
index e70fcf4b..e3646223 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMValueMetadataEntry.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMValueMetadataEntry.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/Manual/LLVMYieldCallback.cs b/sources/LLVMSharp.Interop/Manual/LLVMYieldCallback.cs
index e337f614..3722815d 100644
--- a/sources/LLVMSharp.Interop/Manual/LLVMYieldCallback.cs
+++ b/sources/LLVMSharp.Interop/Manual/LLVMYieldCallback.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.InteropServices;
diff --git a/sources/LLVMSharp.Interop/Manual/lto_diagnostic_handler_t.cs b/sources/LLVMSharp.Interop/Manual/lto_diagnostic_handler_t.cs
index 732bad6c..01a66468 100644
--- a/sources/LLVMSharp.Interop/Manual/lto_diagnostic_handler_t.cs
+++ b/sources/LLVMSharp.Interop/Manual/lto_diagnostic_handler_t.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.InteropServices;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVM.cs b/sources/LLVMSharp.Interop/llvm/LLVM.cs
index 0028a9fa..0121f97b 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVM.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVM.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System;
@@ -26,10 +26,12 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMParseBitcode", ExactSpelling = true)]
[return: NativeTypeName("LLVMBool")]
+ [Obsolete("Use of the global context is deprecated, use LLVMParseBitcodeInContext2 instead")]
public static extern int ParseBitcode([NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf, [NativeTypeName("LLVMModuleRef *")] LLVMOpaqueModule** OutModule, [NativeTypeName("char **")] sbyte** OutMessage);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMParseBitcode2", ExactSpelling = true)]
[return: NativeTypeName("LLVMBool")]
+ [Obsolete("Use of the global context is deprecated, use LLVMParseBitcodeInContext2 instead")]
public static extern int ParseBitcode2([NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf, [NativeTypeName("LLVMModuleRef *")] LLVMOpaqueModule** OutModule);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMParseBitcodeInContext", ExactSpelling = true)]
@@ -50,10 +52,12 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBitcodeModule", ExactSpelling = true)]
[return: NativeTypeName("LLVMBool")]
+ [Obsolete("Use of the global context is deprecated, use LLVMGetBitcodeModuleInContext2 instead")]
public static extern int GetBitcodeModule([NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf, [NativeTypeName("LLVMModuleRef *")] LLVMOpaqueModule** OutM, [NativeTypeName("char **")] sbyte** OutMessage);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBitcodeModule2", ExactSpelling = true)]
[return: NativeTypeName("LLVMBool")]
+ [Obsolete("Use of the global context is deprecated, use LLVMGetBitcodeModuleInContext2 instead")]
public static extern int GetBitcodeModule2([NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf, [NativeTypeName("LLVMModuleRef *")] LLVMOpaqueModule** OutM);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMWriteBitcodeToFile", ExactSpelling = true)]
@@ -151,6 +155,7 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetGlobalContext", ExactSpelling = true)]
[return: NativeTypeName("LLVMContextRef")]
+ [Obsolete("Use of the global context is deprecated, create one using LLVMContextCreate instead")]
public static extern LLVMOpaqueContext* GetGlobalContext();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextSetDiagnosticHandler", ExactSpelling = true)]
@@ -189,6 +194,7 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetMDKindID", ExactSpelling = true)]
[return: NativeTypeName("unsigned int")]
+ [Obsolete("Use of the global context is deprecated, use LLVMGetMDKindIDInContext instead")]
public static extern uint GetMDKindID([NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("unsigned int")] uint SLen);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSyncScopeID", ExactSpelling = true)]
@@ -257,6 +263,7 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMModuleCreateWithName", ExactSpelling = true)]
[return: NativeTypeName("LLVMModuleRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMModuleCreateWithNameInContext instead")]
public static extern LLVMOpaqueModule* ModuleCreateWithName([NativeTypeName("const char *")] sbyte* ModuleID);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMModuleCreateWithNameInContext", ExactSpelling = true)]
@@ -451,6 +458,10 @@ public static unsafe partial class LLVM
[return: NativeTypeName("LLVMValueRef")]
public static extern LLVMOpaqueValue* AddFunction([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* FunctionTy);
+ [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetOrInsertFunction", ExactSpelling = true)]
+ [return: NativeTypeName("LLVMValueRef")]
+ public static extern LLVMOpaqueValue* GetOrInsertFunction([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] nuint NameLen, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* FunctionTy);
+
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNamedFunction", ExactSpelling = true)]
[return: NativeTypeName("LLVMValueRef")]
public static extern LLVMOpaqueValue* GetNamedFunction([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Name);
@@ -526,30 +537,37 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt1Type", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMInt1TypeInContext instead")]
public static extern LLVMOpaqueType* Int1Type();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt8Type", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMInt8TypeInContext instead")]
public static extern LLVMOpaqueType* Int8Type();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt16Type", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMInt16TypeInContext instead")]
public static extern LLVMOpaqueType* Int16Type();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt32Type", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMInt32TypeInContext instead")]
public static extern LLVMOpaqueType* Int32Type();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt64Type", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMInt64TypeInContext instead")]
public static extern LLVMOpaqueType* Int64Type();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt128Type", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMInt128TypeInContext instead")]
public static extern LLVMOpaqueType* Int128Type();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntType", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMIntTypeInContext instead")]
public static extern LLVMOpaqueType* IntType([NativeTypeName("unsigned int")] uint NumBits);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetIntTypeWidth", ExactSpelling = true)]
@@ -586,30 +604,37 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMHalfType", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMHalfTypeInContext instead")]
public static extern LLVMOpaqueType* HalfType();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBFloatType", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMBFloatTypeInContext instead")]
public static extern LLVMOpaqueType* BFloatType();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFloatType", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMFloatTypeInContext instead")]
public static extern LLVMOpaqueType* FloatType();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDoubleType", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMDoubleTypeInContext instead")]
public static extern LLVMOpaqueType* DoubleType();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMX86FP80Type", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMX86FP80TypeInContext instead")]
public static extern LLVMOpaqueType* X86FP80Type();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFP128Type", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMFP128TypeInContext instead")]
public static extern LLVMOpaqueType* FP128Type();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPPCFP128Type", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMPPCFP128TypeInContext instead")]
public static extern LLVMOpaqueType* PPCFP128Type();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFunctionType", ExactSpelling = true)]
@@ -637,6 +662,7 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStructType", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMStructTypeInContext instead")]
public static extern LLVMOpaqueType* StructType([NativeTypeName("LLVMTypeRef *")] LLVMOpaqueType** ElementTypes, [NativeTypeName("unsigned int")] uint ElementCount, [NativeTypeName("LLVMBool")] int Packed);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStructCreateNamed", ExactSpelling = true)]
@@ -766,14 +792,17 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMVoidType", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMVoidTypeInContext instead")]
public static extern LLVMOpaqueType* VoidType();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMLabelType", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMLabelTypeInContext instead")]
public static extern LLVMOpaqueType* LabelType();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMX86AMXType", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMX86AMXTypeInContext instead")]
public static extern LLVMOpaqueType* X86AMXType();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTargetExtTypeInContext", ExactSpelling = true)]
@@ -1301,6 +1330,10 @@ public static unsafe partial class LLVM
[return: NativeTypeName("LLVMValueRef")]
public static extern LLVMOpaqueValue* ConstRealOfStringAndSize([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* RealTy, [NativeTypeName("const char *")] sbyte* Text, [NativeTypeName("unsigned int")] uint SLen);
+ [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFPFromBits", ExactSpelling = true)]
+ [return: NativeTypeName("LLVMValueRef")]
+ public static extern LLVMOpaqueValue* ConstFPFromBits([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("const uint64_t[]")] ulong* N);
+
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstIntGetZExtValue", ExactSpelling = true)]
[return: NativeTypeName("unsigned long long")]
public static extern ulong ConstIntGetZExtValue([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal);
@@ -1322,6 +1355,7 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstString", ExactSpelling = true)]
[return: NativeTypeName("LLVMValueRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMConstStringInContext2 instead")]
public static extern LLVMOpaqueValue* ConstString([NativeTypeName("const char *")] sbyte* Str, [NativeTypeName("unsigned int")] uint Length, [NativeTypeName("LLVMBool")] int DontNullTerminate);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsConstantString", ExactSpelling = true)]
@@ -1342,6 +1376,7 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstStruct", ExactSpelling = true)]
[return: NativeTypeName("LLVMValueRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMConstStructInContext instead")]
public static extern LLVMOpaqueValue* ConstStruct([NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** ConstantVals, [NativeTypeName("unsigned int")] uint Count, [NativeTypeName("LLVMBool")] int Packed);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstArray", ExactSpelling = true)]
@@ -1561,12 +1596,18 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGlobalSetMetadata", ExactSpelling = true)]
public static extern void GlobalSetMetadata([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global, [NativeTypeName("unsigned int")] uint Kind, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* MD);
+ [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGlobalAddMetadata", ExactSpelling = true)]
+ public static extern void GlobalAddMetadata([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global, [NativeTypeName("unsigned int")] uint Kind, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* MD);
+
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGlobalEraseMetadata", ExactSpelling = true)]
public static extern void GlobalEraseMetadata([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global, [NativeTypeName("unsigned int")] uint Kind);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGlobalClearMetadata", ExactSpelling = true)]
public static extern void GlobalClearMetadata([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global);
+ [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGlobalAddDebugInfo", ExactSpelling = true)]
+ public static extern void GlobalAddDebugInfo([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* GVE);
+
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGlobalCopyAllMetadata", ExactSpelling = true)]
public static extern LLVMValueMetadataEntry* GlobalCopyAllMetadata([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Value, [NativeTypeName("size_t *")] nuint* NumEntries);
@@ -1897,6 +1938,7 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMDString", ExactSpelling = true)]
[return: NativeTypeName("LLVMValueRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMMDStringInContext2 instead")]
public static extern LLVMOpaqueValue* MDString([NativeTypeName("const char *")] sbyte* Str, [NativeTypeName("unsigned int")] uint SLen);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMDNodeInContext", ExactSpelling = true)]
@@ -1905,6 +1947,7 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMDNode", ExactSpelling = true)]
[return: NativeTypeName("LLVMValueRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMMDNodeInContext2 instead")]
public static extern LLVMOpaqueValue* MDNode([NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** Vals, [NativeTypeName("unsigned int")] uint Count);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateOperandBundle", ExactSpelling = true)]
@@ -1993,6 +2036,7 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAppendBasicBlock", ExactSpelling = true)]
[return: NativeTypeName("LLVMBasicBlockRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMAppendBasicBlockInContext instead")]
public static extern LLVMOpaqueBasicBlock* AppendBasicBlock([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn, [NativeTypeName("const char *")] sbyte* Name);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInsertBasicBlockInContext", ExactSpelling = true)]
@@ -2001,6 +2045,7 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInsertBasicBlock", ExactSpelling = true)]
[return: NativeTypeName("LLVMBasicBlockRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMInsertBasicBlockInContext instead")]
public static extern LLVMOpaqueBasicBlock* InsertBasicBlock([NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* InsertBeforeBB, [NativeTypeName("const char *")] sbyte* Name);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDeleteBasicBlock", ExactSpelling = true)]
@@ -2097,6 +2142,25 @@ public static unsafe partial class LLVM
[return: NativeTypeName("LLVMDbgRecordRef")]
public static extern LLVMOpaqueDbgRecord* GetPreviousDbgRecord([NativeTypeName("LLVMDbgRecordRef")] LLVMOpaqueDbgRecord* DbgRecord);
+ [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDbgRecordGetDebugLoc", ExactSpelling = true)]
+ [return: NativeTypeName("LLVMMetadataRef")]
+ public static extern LLVMOpaqueMetadata* DbgRecordGetDebugLoc([NativeTypeName("LLVMDbgRecordRef")] LLVMOpaqueDbgRecord* Rec);
+
+ [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDbgRecordGetKind", ExactSpelling = true)]
+ public static extern LLVMDbgRecordKind DbgRecordGetKind([NativeTypeName("LLVMDbgRecordRef")] LLVMOpaqueDbgRecord* Rec);
+
+ [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDbgVariableRecordGetValue", ExactSpelling = true)]
+ [return: NativeTypeName("LLVMValueRef")]
+ public static extern LLVMOpaqueValue* DbgVariableRecordGetValue([NativeTypeName("LLVMDbgRecordRef")] LLVMOpaqueDbgRecord* Rec, [NativeTypeName("unsigned int")] uint OpIdx);
+
+ [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDbgVariableRecordGetVariable", ExactSpelling = true)]
+ [return: NativeTypeName("LLVMMetadataRef")]
+ public static extern LLVMOpaqueMetadata* DbgVariableRecordGetVariable([NativeTypeName("LLVMDbgRecordRef")] LLVMOpaqueDbgRecord* Rec);
+
+ [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDbgVariableRecordGetExpression", ExactSpelling = true)]
+ [return: NativeTypeName("LLVMMetadataRef")]
+ public static extern LLVMOpaqueMetadata* DbgVariableRecordGetExpression([NativeTypeName("LLVMDbgRecordRef")] LLVMOpaqueDbgRecord* Rec);
+
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNumArgOperands", ExactSpelling = true)]
[return: NativeTypeName("unsigned int")]
public static extern uint GetNumArgOperands([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Instr);
@@ -2216,6 +2280,13 @@ public static unsafe partial class LLVM
[return: NativeTypeName("LLVMBasicBlockRef")]
public static extern LLVMOpaqueBasicBlock* GetSwitchDefaultDest([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* SwitchInstr);
+ [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSwitchCaseValue", ExactSpelling = true)]
+ [return: NativeTypeName("LLVMValueRef")]
+ public static extern LLVMOpaqueValue* GetSwitchCaseValue([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* SwitchInstr, [NativeTypeName("unsigned int")] uint i);
+
+ [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetSwitchCaseValue", ExactSpelling = true)]
+ public static extern void SetSwitchCaseValue([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* SwitchInstr, [NativeTypeName("unsigned int")] uint i, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* CaseValue);
+
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetAllocatedType", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
public static extern LLVMOpaqueType* GetAllocatedType([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Alloca);
@@ -2267,6 +2338,7 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateBuilder", ExactSpelling = true)]
[return: NativeTypeName("LLVMBuilderRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMCreateBuilderInContext instead")]
public static extern LLVMOpaqueBuilder* CreateBuilder();
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPositionBuilder", ExactSpelling = true)]
@@ -2692,7 +2764,7 @@ public static unsafe partial class LLVM
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetVolatile", ExactSpelling = true)]
[return: NativeTypeName("LLVMBool")]
- public static extern int GetVolatile([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* MemoryAccessInst);
+ public static extern int GetVolatile([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Inst);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetVolatile", ExactSpelling = true)]
public static extern void SetVolatile([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* MemoryAccessInst, [NativeTypeName("LLVMBool")] int IsVolatile);
@@ -3044,6 +3116,10 @@ public static unsafe partial class LLVM
[return: NativeTypeName("LLVMMetadataRef")]
public static extern LLVMOpaqueMetadata* DIBuilderCreateFile([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("const char *")] sbyte* Filename, [NativeTypeName("size_t")] nuint FilenameLen, [NativeTypeName("const char *")] sbyte* Directory, [NativeTypeName("size_t")] nuint DirectoryLen);
+ [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateFileWithChecksum", ExactSpelling = true)]
+ [return: NativeTypeName("LLVMMetadataRef")]
+ public static extern LLVMOpaqueMetadata* DIBuilderCreateFileWithChecksum([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("const char *")] sbyte* Filename, [NativeTypeName("size_t")] nuint FilenameLen, [NativeTypeName("const char *")] sbyte* Directory, [NativeTypeName("size_t")] nuint DirectoryLen, LLVMChecksumKind ChecksumKind, [NativeTypeName("const char *")] sbyte* Checksum, [NativeTypeName("size_t")] nuint ChecksumLen, [NativeTypeName("const char *")] sbyte* Source, [NativeTypeName("size_t")] nuint SourceLen);
+
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateModule", ExactSpelling = true)]
[return: NativeTypeName("LLVMMetadataRef")]
public static extern LLVMOpaqueMetadata* DIBuilderCreateModule([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* ParentScope, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] nuint NameLen, [NativeTypeName("const char *")] sbyte* ConfigMacros, [NativeTypeName("size_t")] nuint ConfigMacrosLen, [NativeTypeName("const char *")] sbyte* IncludePath, [NativeTypeName("size_t")] nuint IncludePathLen, [NativeTypeName("const char *")] sbyte* APINotesFile, [NativeTypeName("size_t")] nuint APINotesFileLen);
@@ -3688,6 +3764,10 @@ public static unsafe partial class LLVM
[return: NativeTypeName("LLVMBool")]
public static extern int ParseIRInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* ContextRef, [NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf, [NativeTypeName("LLVMModuleRef *")] LLVMOpaqueModule** OutM, [NativeTypeName("char **")] sbyte** OutMessage);
+ [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMParseIRInContext2", ExactSpelling = true)]
+ [return: NativeTypeName("LLVMBool")]
+ public static extern int ParseIRInContext2([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* ContextRef, [NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf, [NativeTypeName("LLVMModuleRef *")] LLVMOpaqueModule** OutM, [NativeTypeName("char **")] sbyte** OutMessage);
+
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMLinkModules2", ExactSpelling = true)]
[return: NativeTypeName("LLVMBool")]
public static extern int LinkModules2([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* Dest, [NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* Src);
@@ -4439,10 +4519,18 @@ public static unsafe partial class LLVM
[return: NativeTypeName("LLVMErrorRef")]
public static extern LLVMOpaqueError* OrcDumpObjects_CallOperator([NativeTypeName("LLVMOrcDumpObjectsRef")] LLVMOrcOpaqueDumpObjects* DumpObjects, [NativeTypeName("LLVMMemoryBufferRef *")] LLVMOpaqueMemoryBuffer** ObjBuffer);
+ [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateObjectLinkingLayerWithInProcessMemoryManager", ExactSpelling = true)]
+ [return: NativeTypeName("LLVMErrorRef")]
+ public static extern LLVMOpaqueError* OrcCreateObjectLinkingLayerWithInProcessMemoryManager([NativeTypeName("LLVMOrcObjectLayerRef *")] LLVMOrcOpaqueObjectLayer** Result, [NativeTypeName("LLVMOrcExecutionSessionRef")] LLVMOrcOpaqueExecutionSession* ES);
+
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateRTDyldObjectLinkingLayerWithSectionMemoryManager", ExactSpelling = true)]
[return: NativeTypeName("LLVMOrcObjectLayerRef")]
public static extern LLVMOrcOpaqueObjectLayer* OrcCreateRTDyldObjectLinkingLayerWithSectionMemoryManager([NativeTypeName("LLVMOrcExecutionSessionRef")] LLVMOrcOpaqueExecutionSession* ES);
+ [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateRTDyldObjectLinkingLayerWithSectionMemoryManagerReserveAlloc", ExactSpelling = true)]
+ [return: NativeTypeName("LLVMOrcObjectLayerRef")]
+ public static extern LLVMOrcOpaqueObjectLayer* OrcCreateRTDyldObjectLinkingLayerWithSectionMemoryManagerReserveAlloc([NativeTypeName("LLVMOrcExecutionSessionRef")] LLVMOrcOpaqueExecutionSession* ES, [NativeTypeName("LLVMBool")] int ReserveAlloc);
+
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateRTDyldObjectLinkingLayerWithMCJITMemoryManagerLikeCallbacks", ExactSpelling = true)]
[return: NativeTypeName("LLVMOrcObjectLayerRef")]
public static extern LLVMOrcOpaqueObjectLayer* OrcCreateRTDyldObjectLinkingLayerWithMCJITMemoryManagerLikeCallbacks([NativeTypeName("LLVMOrcExecutionSessionRef")] LLVMOrcOpaqueExecutionSession* ES, void* CreateContextCtx, [NativeTypeName("LLVMMemoryManagerCreateContextCallback")] delegate* unmanaged[Cdecl] CreateContext, [NativeTypeName("LLVMMemoryManagerNotifyTerminatingCallback")] delegate* unmanaged[Cdecl] NotifyTerminating, [NativeTypeName("LLVMMemoryManagerAllocateCodeSectionCallback")] delegate* unmanaged[Cdecl] AllocateCodeSection, [NativeTypeName("LLVMMemoryManagerAllocateDataSectionCallback")] delegate* unmanaged[Cdecl] AllocateDataSection, [NativeTypeName("LLVMMemoryManagerFinalizeMemoryCallback")] delegate* unmanaged[Cdecl] FinalizeMemory, [NativeTypeName("LLVMMemoryManagerDestroyCallback")] delegate* unmanaged[Cdecl] Destroy);
@@ -4738,10 +4826,12 @@ public static void InitializeAllDisassemblers()
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntPtrType", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMIntPtrTypeInContext instead")]
public static extern LLVMOpaqueType* IntPtrType([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntPtrTypeForAS", ExactSpelling = true)]
[return: NativeTypeName("LLVMTypeRef")]
+ [Obsolete("Use of the global context is deprecated, use LLVMIntPtrTypeForASInContext instead")]
public static extern LLVMOpaqueType* IntPtrTypeForAS([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD, [NativeTypeName("unsigned int")] uint AS);
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntPtrTypeInContext", ExactSpelling = true)]
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMAtomicOrdering.cs b/sources/LLVMSharp.Interop/llvm/LLVMAtomicOrdering.cs
index ecbc073c..1519de25 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMAtomicOrdering.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMAtomicOrdering.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMAtomicRMWBinOp.cs b/sources/LLVMSharp.Interop/llvm/LLVMAtomicRMWBinOp.cs
index d498430d..a3c48f7a 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMAtomicRMWBinOp.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMAtomicRMWBinOp.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMAttributeIndex.cs b/sources/LLVMSharp.Interop/llvm/LLVMAttributeIndex.cs
index c2f515e0..069b90a7 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMAttributeIndex.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMAttributeIndex.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMBinaryType.cs b/sources/LLVMSharp.Interop/llvm/LLVMBinaryType.cs
index 387cd21d..80ccb627 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMBinaryType.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMBinaryType.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
@@ -23,4 +23,5 @@ public enum LLVMBinaryType
LLVMBinaryTypeMachO64B,
LLVMBinaryTypeWasm,
LLVMBinaryTypeOffload,
+ LLVMBinaryTypeDXcontainer,
}
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMByteOrdering.cs b/sources/LLVMSharp.Interop/llvm/LLVMByteOrdering.cs
index 4485d532..1a25f0c6 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMByteOrdering.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMByteOrdering.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMCallConv.cs b/sources/LLVMSharp.Interop/llvm/LLVMCallConv.cs
index e7c5301a..9540b55e 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMCallConv.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMCallConv.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMChecksumKind.cs b/sources/LLVMSharp.Interop/llvm/LLVMChecksumKind.cs
new file mode 100644
index 00000000..996c2844
--- /dev/null
+++ b/sources/LLVMSharp.Interop/llvm/LLVMChecksumKind.cs
@@ -0,0 +1,13 @@
+// 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.
+
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
+// 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.
+
+namespace LLVMSharp.Interop;
+
+public enum LLVMChecksumKind
+{
+ CSK_MD5,
+ CSK_SHA1,
+ CSK_SHA256,
+}
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMCodeGenFileType.cs b/sources/LLVMSharp.Interop/llvm/LLVMCodeGenFileType.cs
index 91546cb6..17900c72 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMCodeGenFileType.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMCodeGenFileType.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMCodeGenOptLevel.cs b/sources/LLVMSharp.Interop/llvm/LLVMCodeGenOptLevel.cs
index ae8763e7..a01931d9 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMCodeGenOptLevel.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMCodeGenOptLevel.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMCodeModel.cs b/sources/LLVMSharp.Interop/llvm/LLVMCodeModel.cs
index 1b981155..9df6a28c 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMCodeModel.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMCodeModel.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMComdatSelectionKind.cs b/sources/LLVMSharp.Interop/llvm/LLVMComdatSelectionKind.cs
index 153b0713..d8186d6f 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMComdatSelectionKind.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMComdatSelectionKind.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMDIFlags.cs b/sources/LLVMSharp.Interop/llvm/LLVMDIFlags.cs
index 0589d633..9fa8e46c 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMDIFlags.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMDIFlags.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMDLLStorageClass.cs b/sources/LLVMSharp.Interop/llvm/LLVMDLLStorageClass.cs
index c20a9a76..fea9be68 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMDLLStorageClass.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMDLLStorageClass.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMDWARFEmissionKind.cs b/sources/LLVMSharp.Interop/llvm/LLVMDWARFEmissionKind.cs
index e21da1b9..97a3a54a 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMDWARFEmissionKind.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMDWARFEmissionKind.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMDWARFMacinfoRecordType.cs b/sources/LLVMSharp.Interop/llvm/LLVMDWARFMacinfoRecordType.cs
index e1ca4f6a..571f78dd 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMDWARFMacinfoRecordType.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMDWARFMacinfoRecordType.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMDWARFSourceLanguage.cs b/sources/LLVMSharp.Interop/llvm/LLVMDWARFSourceLanguage.cs
index 8d2c22d2..e1a50bdd 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMDWARFSourceLanguage.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMDWARFSourceLanguage.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMDbgRecordKind.cs b/sources/LLVMSharp.Interop/llvm/LLVMDbgRecordKind.cs
new file mode 100644
index 00000000..801fe6d8
--- /dev/null
+++ b/sources/LLVMSharp.Interop/llvm/LLVMDbgRecordKind.cs
@@ -0,0 +1,14 @@
+// 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.
+
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
+// 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.
+
+namespace LLVMSharp.Interop;
+
+public enum LLVMDbgRecordKind
+{
+ LLVMDbgRecordLabel,
+ LLVMDbgRecordDeclare,
+ LLVMDbgRecordValue,
+ LLVMDbgRecordAssign,
+}
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMDiagnosticSeverity.cs b/sources/LLVMSharp.Interop/llvm/LLVMDiagnosticSeverity.cs
index f266b334..f688ac59 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMDiagnosticSeverity.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMDiagnosticSeverity.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMFastMathFlags.cs b/sources/LLVMSharp.Interop/llvm/LLVMFastMathFlags.cs
index 0c64e4e0..7d28946f 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMFastMathFlags.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMFastMathFlags.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMGEPNoWrapFlags.cs b/sources/LLVMSharp.Interop/llvm/LLVMGEPNoWrapFlags.cs
index ee8d1ca5..a84dc189 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMGEPNoWrapFlags.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMGEPNoWrapFlags.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMGlobalISelAbortMode.cs b/sources/LLVMSharp.Interop/llvm/LLVMGlobalISelAbortMode.cs
index b389ba11..b79ae8f8 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMGlobalISelAbortMode.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMGlobalISelAbortMode.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMInlineAsmDialect.cs b/sources/LLVMSharp.Interop/llvm/LLVMInlineAsmDialect.cs
index 7cfb731c..ad642dd0 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMInlineAsmDialect.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMInlineAsmDialect.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMIntPredicate.cs b/sources/LLVMSharp.Interop/llvm/LLVMIntPredicate.cs
index a97b150b..9b380509 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMIntPredicate.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMIntPredicate.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMJITEvaluatedSymbol.cs b/sources/LLVMSharp.Interop/llvm/LLVMJITEvaluatedSymbol.cs
index a29ecb90..5d4e874e 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMJITEvaluatedSymbol.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMJITEvaluatedSymbol.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMJITSymbolFlags.cs b/sources/LLVMSharp.Interop/llvm/LLVMJITSymbolFlags.cs
index 2b444728..26001d7e 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMJITSymbolFlags.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMJITSymbolFlags.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMJITSymbolGenericFlags.cs b/sources/LLVMSharp.Interop/llvm/LLVMJITSymbolGenericFlags.cs
index 463143c8..d6bd7ce6 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMJITSymbolGenericFlags.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMJITSymbolGenericFlags.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMLinkage.cs b/sources/LLVMSharp.Interop/llvm/LLVMLinkage.cs
index ed85d28e..3a63e9b9 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMLinkage.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMLinkage.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMLinkerMode.cs b/sources/LLVMSharp.Interop/llvm/LLVMLinkerMode.cs
index c4a0c82a..a24cec7a 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMLinkerMode.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMLinkerMode.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMMCJITCompilerOptions.cs b/sources/LLVMSharp.Interop/llvm/LLVMMCJITCompilerOptions.cs
index 2a24a1dc..e8c4a41a 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMMCJITCompilerOptions.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMMCJITCompilerOptions.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMMetadataKind.cs b/sources/LLVMSharp.Interop/llvm/LLVMMetadataKind.cs
index 98f334d3..9fb1b117 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMMetadataKind.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMMetadataKind.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMModuleFlagBehavior.cs b/sources/LLVMSharp.Interop/llvm/LLVMModuleFlagBehavior.cs
index db0dbfbe..29749e88 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMModuleFlagBehavior.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMModuleFlagBehavior.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMOpInfo1.cs b/sources/LLVMSharp.Interop/llvm/LLVMOpInfo1.cs
index 2aec2db4..9bb473e6 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMOpInfo1.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMOpInfo1.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMOpInfoSymbol1.cs b/sources/LLVMSharp.Interop/llvm/LLVMOpInfoSymbol1.cs
index 236db5db..abca62d6 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMOpInfoSymbol1.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMOpInfoSymbol1.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMOpcode.cs b/sources/LLVMSharp.Interop/llvm/LLVMOpcode.cs
index cd0bf8c8..0d80882e 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMOpcode.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMOpcode.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
@@ -47,6 +47,7 @@ public enum LLVMOpcode
LLVMFPTrunc = 37,
LLVMFPExt = 38,
LLVMPtrToInt = 39,
+ LLVMPtrToAddr = 69,
LLVMIntToPtr = 40,
LLVMBitCast = 41,
LLVMAddrSpaceCast = 60,
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMOrcCDependenceMapPair.cs b/sources/LLVMSharp.Interop/llvm/LLVMOrcCDependenceMapPair.cs
index 0fe33214..fd4bd68b 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMOrcCDependenceMapPair.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMOrcCDependenceMapPair.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMOrcCJITDylibSearchOrderElement.cs b/sources/LLVMSharp.Interop/llvm/LLVMOrcCJITDylibSearchOrderElement.cs
index 80b2a911..ed9d4406 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMOrcCJITDylibSearchOrderElement.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMOrcCJITDylibSearchOrderElement.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMOrcCLookupSetElement.cs b/sources/LLVMSharp.Interop/llvm/LLVMOrcCLookupSetElement.cs
index 455ba219..aa213001 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMOrcCLookupSetElement.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMOrcCLookupSetElement.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolAliasMapEntry.cs b/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolAliasMapEntry.cs
index 418aa2a5..c665d129 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolAliasMapEntry.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolAliasMapEntry.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolAliasMapPair.cs b/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolAliasMapPair.cs
index 27bb73ca..e1018354 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolAliasMapPair.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolAliasMapPair.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolDependenceGroup.cs b/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolDependenceGroup.cs
index 39301e68..352b5cd4 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolDependenceGroup.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolDependenceGroup.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolFlagsMapPair.cs b/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolFlagsMapPair.cs
index 8b4578d8..8182fed9 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolFlagsMapPair.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolFlagsMapPair.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolMapPair.cs b/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolMapPair.cs
index a08a0f84..e527d202 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolMapPair.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolMapPair.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolsList.cs b/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolsList.cs
index 51127d76..9404a493 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolsList.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMOrcCSymbolsList.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMOrcJITDylibLookupFlags.cs b/sources/LLVMSharp.Interop/llvm/LLVMOrcJITDylibLookupFlags.cs
index f1e97966..66b8da17 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMOrcJITDylibLookupFlags.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMOrcJITDylibLookupFlags.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMOrcLookupKind.cs b/sources/LLVMSharp.Interop/llvm/LLVMOrcLookupKind.cs
index 7c77b240..9af29fb4 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMOrcLookupKind.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMOrcLookupKind.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMOrcSymbolLookupFlags.cs b/sources/LLVMSharp.Interop/llvm/LLVMOrcSymbolLookupFlags.cs
index ccbdb02e..e354a601 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMOrcSymbolLookupFlags.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMOrcSymbolLookupFlags.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMRealPredicate.cs b/sources/LLVMSharp.Interop/llvm/LLVMRealPredicate.cs
index a35cceea..cb72127d 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMRealPredicate.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMRealPredicate.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMRelocMode.cs b/sources/LLVMSharp.Interop/llvm/LLVMRelocMode.cs
index 1fb9874a..53309f08 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMRelocMode.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMRelocMode.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMRemarkType.cs b/sources/LLVMSharp.Interop/llvm/LLVMRemarkType.cs
index 0f33a1e4..64147ce7 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMRemarkType.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMRemarkType.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMTailCallKind.cs b/sources/LLVMSharp.Interop/llvm/LLVMTailCallKind.cs
index 1a8e7480..7851d793 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMTailCallKind.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMTailCallKind.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMThreadLocalMode.cs b/sources/LLVMSharp.Interop/llvm/LLVMThreadLocalMode.cs
index 703eab5f..cab4379b 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMThreadLocalMode.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMThreadLocalMode.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMTypeKind.cs b/sources/LLVMSharp.Interop/llvm/LLVMTypeKind.cs
index 624c4922..5631241d 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMTypeKind.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMTypeKind.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMUnnamedAddr.cs b/sources/LLVMSharp.Interop/llvm/LLVMUnnamedAddr.cs
index 5de9681d..464164bb 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMUnnamedAddr.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMUnnamedAddr.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMValueKind.cs b/sources/LLVMSharp.Interop/llvm/LLVMValueKind.cs
index 4128fade..5b2999b1 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMValueKind.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMValueKind.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMVerifierFailureAction.cs b/sources/LLVMSharp.Interop/llvm/LLVMVerifierFailureAction.cs
index 5008655e..2f7867e8 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMVerifierFailureAction.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMVerifierFailureAction.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LLVMVisibility.cs b/sources/LLVMSharp.Interop/llvm/LLVMVisibility.cs
index 3e8a4b8e..2ffbc5f7 100644
--- a/sources/LLVMSharp.Interop/llvm/LLVMVisibility.cs
+++ b/sources/LLVMSharp.Interop/llvm/LLVMVisibility.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/LTOObjectBuffer.cs b/sources/LLVMSharp.Interop/llvm/LTOObjectBuffer.cs
index d2f627a5..02c897b7 100644
--- a/sources/LLVMSharp.Interop/llvm/LTOObjectBuffer.cs
+++ b/sources/LLVMSharp.Interop/llvm/LTOObjectBuffer.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/llvm_blake3_chunk_state.cs b/sources/LLVMSharp.Interop/llvm/llvm_blake3_chunk_state.cs
index e6bbe63c..bc2d336e 100644
--- a/sources/LLVMSharp.Interop/llvm/llvm_blake3_chunk_state.cs
+++ b/sources/LLVMSharp.Interop/llvm/llvm_blake3_chunk_state.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.CompilerServices;
diff --git a/sources/LLVMSharp.Interop/llvm/llvm_blake3_hasher.cs b/sources/LLVMSharp.Interop/llvm/llvm_blake3_hasher.cs
index 6abecc5f..4d790c15 100644
--- a/sources/LLVMSharp.Interop/llvm/llvm_blake3_hasher.cs
+++ b/sources/LLVMSharp.Interop/llvm/llvm_blake3_hasher.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
using System.Runtime.CompilerServices;
diff --git a/sources/LLVMSharp.Interop/llvm/lto_codegen_diagnostic_severity_t.cs b/sources/LLVMSharp.Interop/llvm/lto_codegen_diagnostic_severity_t.cs
index dd545692..32bd3d26 100644
--- a/sources/LLVMSharp.Interop/llvm/lto_codegen_diagnostic_severity_t.cs
+++ b/sources/LLVMSharp.Interop/llvm/lto_codegen_diagnostic_severity_t.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/lto_codegen_model.cs b/sources/LLVMSharp.Interop/llvm/lto_codegen_model.cs
index 14202dc4..0bc24fa4 100644
--- a/sources/LLVMSharp.Interop/llvm/lto_codegen_model.cs
+++ b/sources/LLVMSharp.Interop/llvm/lto_codegen_model.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/lto_debug_model.cs b/sources/LLVMSharp.Interop/llvm/lto_debug_model.cs
index 3945b10b..22266faf 100644
--- a/sources/LLVMSharp.Interop/llvm/lto_debug_model.cs
+++ b/sources/LLVMSharp.Interop/llvm/lto_debug_model.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/sources/LLVMSharp.Interop/llvm/lto_symbol_attributes.cs b/sources/LLVMSharp.Interop/llvm/lto_symbol_attributes.cs
index a32bb1df..f2955fce 100644
--- a/sources/LLVMSharp.Interop/llvm/lto_symbol_attributes.cs
+++ b/sources/LLVMSharp.Interop/llvm/lto_symbol_attributes.cs
@@ -1,6 +1,6 @@
// 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.
-// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-21.1.8/llvm/include/llvm-c
+// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-22.1.8/llvm/include/llvm-c
// 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.
namespace LLVMSharp.Interop;
diff --git a/tests/LLVMSharp.UnitTests/ManagedApi.cs b/tests/LLVMSharp.UnitTests/ManagedApi.cs
index 22299c09..8fbc7e4c 100644
--- a/tests/LLVMSharp.UnitTests/ManagedApi.cs
+++ b/tests/LLVMSharp.UnitTests/ManagedApi.cs
@@ -7,6 +7,18 @@ namespace LLVMSharp.UnitTests;
public class ManagedApi
{
+ [Test]
+ public unsafe void NativeVersion()
+ {
+ uint major;
+ uint minor;
+ uint patch;
+
+ LLVM.GetVersion(&major, &minor, &patch);
+
+ Assert.That((major, minor, patch), Is.EqualTo((22u, 1u, 8u)));
+ }
+
[Test]
public void TypePredicates()
{
@@ -212,6 +224,7 @@ public void FunctionAccessors()
Assert.That(function.NumParams, Is.EqualTo(2u));
Assert.That(function.ReturnType, Is.EqualTo(int32));
Assert.That(function.FunctionType.NumParams, Is.EqualTo(2u));
+ Assert.That(function.Handle.FunctionType, Is.EqualTo(functionType));
Assert.That(function.IntrinsicID, Is.EqualTo(0u));
var parameter = function.GetParam(0);
@@ -387,6 +400,11 @@ public void BranchAndSwitchAccessors()
switchInst.AddCase((ConstantInt)context.GetOrCreate(LLVMValueRef.CreateConstInt(int32.Handle, 1)), entry);
Assert.That(switchInst.DefaultDest, Is.EqualTo(ifFalse));
Assert.That(((ConstantInt)switchInst.Condition).ZExtValue, Is.EqualTo(0UL));
+ Assert.That(switchInst.SuccessorsCount, Is.EqualTo(2u));
+ Assert.That(switchInst.Handle.GetSwitchCaseValue(1).ConstIntZExt, Is.EqualTo(1UL));
+
+ switchInst.Handle.SetSwitchCaseValue(1, LLVMValueRef.CreateConstInt(int32.Handle, 2));
+ Assert.That(switchInst.Handle.GetSwitchCaseValue(1).ConstIntZExt, Is.EqualTo(2UL));
}
[Test]
@@ -602,9 +620,7 @@ public void InstructionFlagAccessors()
[Test]
public void TargetAndTargetMachineAccessors()
{
- LLVM.InitializeAllTargetInfos();
- LLVM.InitializeAllTargets();
- LLVM.InitializeAllTargetMCs();
+ _ = LLVM.InitializeNativeTarget();
var triple = Target.DefaultTriple;
Assert.That(triple, Is.Not.Empty);