Skip to content

Commit 5e4623f

Browse files
Merge pull request #231 from tannergooding/main
Regenerating bindings for v20.1.2
2 parents fb8f621 + 1198b12 commit 5e4623f

File tree

189 files changed

+560
-317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+560
-317
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ jobs:
4848
./artifacts/pkg/**/*
4949
./artifacts/tst/**/*
5050
if-no-files-found: error
51-
macos-x64:
51+
macos-arm64:
5252
runs-on: ${{ matrix.os }}-latest
5353
strategy:
5454
matrix:
55-
architecture: [ x64 ]
55+
architecture: [ arm64 ]
5656
configuration: [ debug, release ]
5757
os: [ macos ]
5858
steps:
@@ -153,7 +153,7 @@ jobs:
153153
publish-nightlies-azure:
154154
runs-on: ubuntu-latest
155155
if: ${{ github.event_name == 'push' }}
156-
needs: [ windows-x64, linux-x64, macos-x64, sign-nuget-preview, sign-nuget-release ]
156+
needs: [ windows-x64, linux-x64, macos-arm64, sign-nuget-preview, sign-nuget-release ]
157157
steps:
158158
- uses: actions/download-artifact@v4
159159
with:
@@ -169,7 +169,7 @@ jobs:
169169
publish-nightlies-github:
170170
runs-on: ubuntu-latest
171171
if: false
172-
needs: [ windows-x64, linux-x64, macos-x64, sign-nuget-preview, sign-nuget-release ]
172+
needs: [ windows-x64, linux-x64, macos-arm64, sign-nuget-preview, sign-nuget-release ]
173173
steps:
174174
- uses: actions/download-artifact@v4
175175
with:

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<PackageValidationBaselineVersion>16.0.0</PackageValidationBaselineVersion>
4848
<Product>LLVMSharp</Product>
4949
<RootNamespace>LLVMSharp</RootNamespace>
50-
<VersionPrefix>18.1.0</VersionPrefix>
50+
<VersionPrefix>20.1.2</VersionPrefix>
5151
<VersionSuffix Condition="'$(EXCLUDE_SUFFIX_FROM_VERSION)' != 'true'">rc1</VersionSuffix>
5252
<VersionSuffix Condition="'$(GITHUB_EVENT_NAME)' == 'pull_request'">pr</VersionSuffix>
5353
</PropertyGroup>

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<!-- Package versions for package references across all projects -->
1414
<ItemGroup>
15-
<PackageVersion Include="libLLVM" Version="18.1.3.1" />
15+
<PackageVersion Include="libLLVM" Version="20.1.2" />
1616
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
1717
<PackageVersion Include="NUnit" Version="4.1.0" />
1818
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0" />

LLVMSharp.sln

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVM.runtime.linux-arm64
7171
packages\libLLVM\libLLVM.runtime.linux-arm64\libLLVM.runtime.linux-arm64.nuspec = packages\libLLVM\libLLVM.runtime.linux-arm64\libLLVM.runtime.linux-arm64.nuspec
7272
EndProjectSection
7373
EndProject
74-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVM.runtime.osx-x64", "libLLVM.runtime.osx-x64", "{D4550E5E-9485-4480-B2B6-9503EEC935BF}"
75-
ProjectSection(SolutionItems) = preProject
76-
packages\libLLVM\libLLVM.runtime.osx-x64\libLLVM.runtime.osx-x64.nuspec = packages\libLLVM\libLLVM.runtime.osx-x64\libLLVM.runtime.osx-x64.nuspec
77-
EndProjectSection
78-
EndProject
7974
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVM.runtime.win-x64", "libLLVM.runtime.win-x64", "{E785DDD0-B9CD-4412-8A3C-4E65C601168C}"
8075
ProjectSection(SolutionItems) = preProject
8176
packages\libLLVM\libLLVM.runtime.win-x64\libLLVM.runtime.win-x64.nuspec = packages\libLLVM\libLLVM.runtime.win-x64\libLLVM.runtime.win-x64.nuspec
@@ -133,7 +128,6 @@ Global
133128
{9D46FF1C-E09F-4063-A97D-C09F26310B67} = {CD611531-75EA-4328-8C25-8D0496E61EC2}
134129
{568A07AC-AF60-4A3E-ABD3-2B51D9DD4EBF} = {9D46FF1C-E09F-4063-A97D-C09F26310B67}
135130
{16539CB8-8AC7-4AD0-9D54-8EE615B2FCF3} = {9D46FF1C-E09F-4063-A97D-C09F26310B67}
136-
{D4550E5E-9485-4480-B2B6-9503EEC935BF} = {9D46FF1C-E09F-4063-A97D-C09F26310B67}
137131
{E785DDD0-B9CD-4412-8A3C-4E65C601168C} = {9D46FF1C-E09F-4063-A97D-C09F26310B67}
138132
{19DB05E9-59B6-45E9-B47D-62913F7DF9A8} = {9D46FF1C-E09F-4063-A97D-C09F26310B67}
139133
{CEA0F0C9-DF25-446B-8F55-FB629BD1D3E6} = {62B5C536-C224-4EE1-972F-05F732B5980B}

packages/libLLVM/libLLVM.runtime.linux-arm64/libLLVM.runtime.linux-arm64.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
33
<metadata minClientVersion="2.12">
44
<id>libLLVM.runtime.linux-arm64</id>
5-
<version>18.1.3</version>
5+
<version>20.1.2</version>
66
<authors>.NET Foundation and Contributors</authors>
77
<owners>.NET Foundation and Contributors</owners>
88
<requireLicenseAcceptance>true</requireLicenseAcceptance>
99
<license type="expression">Apache-2.0 WITH LLVM-exception</license>
1010
<projectUrl>https://github.com/dotnet/llvmsharp</projectUrl>
1111
<description>linux arm64 native library for libLLVM.</description>
1212
<copyright>Copyright © LLVM Project</copyright>
13-
<repository type="git" url="https://github.com/llvm/llvm-project" branch="llvmorg-18.1.3" />
13+
<repository type="git" url="https://github.com/llvm/llvm-project" branch="llvmorg-20.1.2" />
1414
</metadata>
1515
<files>
1616
<file src="..\libLLVM\LICENSE.TXT" target="LICENSE.TXT" />

packages/libLLVM/libLLVM.runtime.linux-x64/libLLVM.runtime.linux-x64.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
33
<metadata minClientVersion="2.12">
44
<id>libLLVM.runtime.linux-x64</id>
5-
<version>18.1.3</version>
5+
<version>20.1.2</version>
66
<authors>.NET Foundation and Contributors</authors>
77
<owners>.NET Foundation and Contributors</owners>
88
<requireLicenseAcceptance>true</requireLicenseAcceptance>
99
<license type="expression">Apache-2.0 WITH LLVM-exception</license>
1010
<projectUrl>https://github.com/dotnet/llvmsharp</projectUrl>
1111
<description>linux x64 native library for libLLVM.</description>
1212
<copyright>Copyright © LLVM Project</copyright>
13-
<repository type="git" url="https://github.com/llvm/llvm-project" branch="llvmorg-18.1.3" />
13+
<repository type="git" url="https://github.com/llvm/llvm-project" branch="llvmorg-20.1.2" />
1414
</metadata>
1515
<files>
1616
<file src="..\libLLVM\LICENSE.TXT" target="LICENSE.TXT" />

packages/libLLVM/libLLVM.runtime.osx-arm64/libLLVM.runtime.osx-arm64.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
33
<metadata minClientVersion="2.12">
44
<id>libLLVM.runtime.osx-arm64</id>
5-
<version>18.1.3</version>
5+
<version>20.1.2</version>
66
<authors>.NET Foundation and Contributors</authors>
77
<owners>.NET Foundation and Contributors</owners>
88
<requireLicenseAcceptance>true</requireLicenseAcceptance>
99
<license type="expression">Apache-2.0 WITH LLVM-exception</license>
1010
<projectUrl>https://github.com/dotnet/llvmsharp</projectUrl>
1111
<description>osx arm64 native library for libLLVM.</description>
1212
<copyright>Copyright © LLVM Project</copyright>
13-
<repository type="git" url="https://github.com/llvm/llvm-project" branch="llvmorg-18.1.3" />
13+
<repository type="git" url="https://github.com/llvm/llvm-project" branch="llvmorg-20.1.2" />
1414
</metadata>
1515
<files>
1616
<file src="..\libLLVM\LICENSE.TXT" target="LICENSE.TXT" />

packages/libLLVM/libLLVM.runtime.osx-x64/libLLVM.runtime.osx-x64.nuspec

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

packages/libLLVM/libLLVM.runtime.win-arm64/libLLVM.runtime.win-arm64.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
33
<metadata minClientVersion="2.12">
44
<id>libLLVM.runtime.win-arm64</id>
5-
<version>18.1.3.1</version>
5+
<version>20.1.2</version>
66
<authors>.NET Foundation and Contributors</authors>
77
<owners>.NET Foundation and Contributors</owners>
88
<requireLicenseAcceptance>true</requireLicenseAcceptance>
99
<license type="expression">Apache-2.0 WITH LLVM-exception</license>
1010
<projectUrl>https://github.com/dotnet/llvmsharp</projectUrl>
1111
<description>win arm64 native library for libLLVM.</description>
1212
<copyright>Copyright © LLVM Project</copyright>
13-
<repository type="git" url="https://github.com/llvm/llvm-project" branch="llvmorg-18.1.3" />
13+
<repository type="git" url="https://github.com/llvm/llvm-project" branch="llvmorg-20.1.2" />
1414
</metadata>
1515
<files>
1616
<file src="..\libLLVM\LICENSE.TXT" target="LICENSE.TXT" />

packages/libLLVM/libLLVM.runtime.win-x64/libLLVM.runtime.win-x64.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
33
<metadata minClientVersion="2.12">
44
<id>libLLVM.runtime.win-x64</id>
5-
<version>18.1.3.1</version>
5+
<version>20.1.2</version>
66
<authors>.NET Foundation and Contributors</authors>
77
<owners>.NET Foundation and Contributors</owners>
88
<requireLicenseAcceptance>true</requireLicenseAcceptance>
99
<license type="expression">Apache-2.0 WITH LLVM-exception</license>
1010
<projectUrl>https://github.com/dotnet/llvmsharp</projectUrl>
1111
<description>win x64 native library for libLLVM.</description>
1212
<copyright>Copyright © LLVM Project</copyright>
13-
<repository type="git" url="https://github.com/llvm/llvm-project" branch="llvmorg-18.1.3" />
13+
<repository type="git" url="https://github.com/llvm/llvm-project" branch="llvmorg-20.1.2" />
1414
</metadata>
1515
<files>
1616
<file src="..\libLLVM\LICENSE.TXT" target="LICENSE.TXT" />

packages/libLLVM/libLLVM/libLLVM.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
33
<metadata minClientVersion="2.12">
44
<id>libLLVM</id>
5-
<version>18.1.3.1</version>
5+
<version>20.1.2</version>
66
<authors>.NET Foundation and Contributors</authors>
77
<owners>.NET Foundation and Contributors</owners>
88
<requireLicenseAcceptance>true</requireLicenseAcceptance>
99
<license type="expression">Apache-2.0 WITH LLVM-exception</license>
1010
<projectUrl>https://github.com/dotnet/llvmsharp</projectUrl>
1111
<description>Multi-platform native library for libLLVM.</description>
1212
<copyright>Copyright © LLVM Project</copyright>
13-
<repository type="git" url="https://github.com/llvm/llvm-project" branch="llvmorg-18.1.3" />
13+
<repository type="git" url="https://github.com/llvm/llvm-project" branch="llvmorg-20.1.2" />
1414
<dependencies>
1515
<group targetFramework=".NETStandard2.0" />
1616
</dependencies>

packages/libLLVM/libLLVM/runtime.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,27 @@
22
"runtimes": {
33
"linux-arm64": {
44
"libLLVM": {
5-
"libLLVM.runtime.linux-arm64": "18.1.3"
5+
"libLLVM.runtime.linux-arm64": "20.1.2"
66
}
77
},
88
"linux-x64": {
99
"libLLVM": {
10-
"libLLVM.runtime.linux-x64": "18.1.3"
10+
"libLLVM.runtime.linux-x64": "20.1.2"
1111
}
1212
},
1313
"osx-arm64": {
1414
"libLLVM": {
15-
"libLLVM.runtime.osx-arm64": "18.1.3"
16-
}
17-
},
18-
"osx-x64": {
19-
"libLLVM": {
20-
"libLLVM.runtime.osx-x64": "18.1.3"
15+
"libLLVM.runtime.osx-arm64": "20.1.2"
2116
}
2217
},
2318
"win-arm64": {
2419
"libLLVM": {
25-
"libLLVM.runtime.win-arm64": "18.1.3.1"
20+
"libLLVM.runtime.win-arm64": "20.1.2"
2621
}
2722
},
2823
"win-x64": {
2924
"libLLVM": {
30-
"libLLVM.runtime.win-x64": "18.1.3.1"
25+
"libLLVM.runtime.win-x64": "20.1.2"
3126
}
3227
}
3328
}

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
22

3-
// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/llvm/include/llvm-c
3+
// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/llvm/include/llvm-c
44
// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information.
55

66
using System.Runtime.InteropServices;
@@ -51,6 +51,9 @@ public static unsafe partial class LLVM
5151
[DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSparcTargetInfo", ExactSpelling = true)]
5252
public static extern void InitializeSparcTargetInfo();
5353

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

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

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

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

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

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

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

sources/LLVMSharp.Interop/Extensions/LLVMBuilderRef.cs

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

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

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

sources/LLVMSharp.Interop/Extensions/LLVMContextRef.cs

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

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

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

4644
public static implicit operator LLVMContextRef(LLVMOpaqueContext* value) => new LLVMContextRef((IntPtr)value);
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
2+
3+
using System;
4+
5+
namespace LLVMSharp.Interop;
6+
7+
public unsafe partial struct LLVMDbgRecordRef(IntPtr handle) : IEquatable<LLVMDbgRecordRef>
8+
{
9+
public IntPtr Handle = handle;
10+
11+
public static implicit operator LLVMDbgRecordRef(LLVMOpaqueDbgRecord* Comdat) => new LLVMDbgRecordRef((IntPtr)Comdat);
12+
13+
public static implicit operator LLVMOpaqueDbgRecord*(LLVMDbgRecordRef Comdat) => (LLVMOpaqueDbgRecord*)Comdat.Handle;
14+
15+
public static bool operator ==(LLVMDbgRecordRef left, LLVMDbgRecordRef right) => left.Handle == right.Handle;
16+
17+
public static bool operator !=(LLVMDbgRecordRef left, LLVMDbgRecordRef right) => !(left == right);
18+
19+
public override readonly bool Equals(object? obj) => (obj is LLVMDbgRecordRef other) && Equals(other);
20+
21+
public readonly bool Equals(LLVMDbgRecordRef other) => this == other;
22+
23+
public override readonly int GetHashCode() => Handle.GetHashCode();
24+
25+
public override readonly string ToString() => $"{nameof(LLVMDbgRecordRef)}: {Handle:X}";
26+
}

sources/LLVMSharp.Interop/Extensions/LLVMTypeRef.cs

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

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

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

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

sources/LLVMSharp.Interop/Extensions/LLVMValueRef.cs

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

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

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

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

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

773769
public static LLVMValueRef CreateConstStruct(LLVMValueRef[] ConstantVals, bool Packed) => CreateConstStruct(ConstantVals.AsSpan(), Packed);

sources/LLVMSharp.Interop/LLVM.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ private static bool TryResolveLLVM(Assembly assembly, DllImportSearchPath? searc
4141
{
4242
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
4343
{
44-
return NativeLibrary.TryLoad("libLLVM.so.18", assembly, searchPath, out nativeLibrary)
45-
|| NativeLibrary.TryLoad("libLLVM-18", assembly, searchPath, out nativeLibrary)
44+
return NativeLibrary.TryLoad("libLLVM.so.20", assembly, searchPath, out nativeLibrary)
45+
|| NativeLibrary.TryLoad("libLLVM-20", assembly, searchPath, out nativeLibrary)
4646
|| NativeLibrary.TryLoad("libLLVM.so.1", assembly, searchPath, out nativeLibrary);
4747
}
48-
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
48+
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
4949
{
5050
return NativeLibrary.TryLoad("LLVM-C.dll", assembly, searchPath, out nativeLibrary);
5151
}

sources/LLVMSharp.Interop/Manual/LLVMComdat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
22

3-
// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-18.1.3/llvm/include/llvm-c
3+
// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-20.1.2/llvm/include/llvm-c
44
// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information.
55

66
namespace LLVMSharp.Interop;

0 commit comments

Comments
 (0)