Skip to content

Commit 5767eb5

Browse files
committed
Upgraded to Clang 18.1.3.
ClangSharp now requires .NET 8, so we now also require .NET 8.
1 parent 0b82b77 commit 5767eb5

6 files changed

Lines changed: 23 additions & 7 deletions

ClangSharp.Pathogen/ClangSharp.Pathogen.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net6.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44

55
<!-- Package Info -->
66
<PackageLicenseExpression>MIT</PackageLicenseExpression>
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212
<ItemGroup>
1313
<!-- This is pinned to a specific version since ClangSharp.Pathogen.Native includes libClangSharp -->
14-
<PackageReference Include="ClangSharp" Version="[14.0.0-beta2]" />
14+
<PackageReference Include="ClangSharp" Version="[18.1.0.3]" />
1515
</ItemGroup>
1616
<ItemGroup>
1717
<None Include="..\LICENSE.txt" Pack="true" PackagePath="" Visible="false" />

ClangSharp.Pathogen/PathogenArrangedFunction.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ internal readonly struct RawArrangedFunction
1616
public readonly uint ArgumentsPassedInRegisterCount;
1717
public readonly uint ArgumentCount;
1818
public readonly PathogenArgumentInfo ReturnInfo;
19+
public readonly uint MaxVectorWidth;
1920
}
2021

2122
private RawArrangedFunction* Handle;

ClangSharp.Pathogen/PathogenArrangedFunctionFlags.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ public enum PathogenArrangedFunctionFlags : ushort
1616
IsVariadic = 128,
1717
UsesInAlloca = 256,
1818
HasExtendedParameterInfo = 512,
19+
IsDelegateCall = 1024,
20+
IsCmseNSCall = 2048,
1921
}
2022
}

ClangSharp.Pathogen/PathogenClangCallingConventionKind.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@ public enum PathogenClangCallingConventionKind : byte
2121
PreserveMost,
2222
PreserveAll,
2323
AArch64VectorCall,
24+
AArch64SVEPCS,
25+
AMDGPUKernelCall,
26+
M68kRTD,
2427
}
2528
}

ClangSharp.Pathogen/PathogenLlvmCallingConventionKind.cs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace ClangSharp.Pathogen
1+
using System;
2+
3+
namespace ClangSharp.Pathogen
24
{
35
public enum PathogenLlvmCallingConventionKind : byte
46
{
@@ -7,7 +9,7 @@ public enum PathogenLlvmCallingConventionKind : byte
79
Cold = 9,
810
GHC = 10,
911
HiPE = 11,
10-
WebKit_JS = 12,
12+
[Obsolete] WebKit_JS = 12,
1113
AnyReg = 13,
1214
PreserveMost = 14,
1315
PreserveAll = 15,
@@ -32,8 +34,8 @@ public enum PathogenLlvmCallingConventionKind : byte
3234
X86_64_SysV = 78,
3335
Win64 = 79,
3436
X86_VectorCall = 80,
35-
HHVM = 81,
36-
HHVM_C = 82,
37+
[Obsolete] HHVM = 81,
38+
[Obsolete] HHVM_C = 82,
3739
X86_INTR = 83,
3840
AVR_INTR = 84,
3941
AVR_SIGNAL = 85,
@@ -53,5 +55,13 @@ public enum PathogenLlvmCallingConventionKind : byte
5355
WASM_EmscriptenInvoke = 99,
5456
AMDGPU_Gfx = 100,
5557
M68k_INTR = 101,
58+
AArch64_SME_ABI_Support_Routines_PreserveMost_From_X0 = 102,
59+
AArch64_SME_ABI_Support_Routines_PreserveMost_From_X2 = 103,
60+
AMDGPU_CS_Chain = 104,
61+
AMDGPU_CS_ChainPreserve = 105,
62+
M68k_RTD = 106,
63+
GRAAL = 107,
64+
ARM64EC_Thunk_X64 = 108,
65+
ARM64EC_Thunk_Native = 109,
5666
}
5767
}

external/llvm-project

0 commit comments

Comments
 (0)