diff --git a/Directory.Build.props b/Directory.Build.props index c365427e..15f1cda3 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -42,8 +42,8 @@ true $(BaseArtifactsPath)pkg/$(Configuration)/ LLVMSharp - 11.0.0 - beta2 + 12.0.0 + beta1 pr diff --git a/Directory.Build.targets b/Directory.Build.targets index 0f0bb432..3d3e480e 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -28,11 +28,11 @@ - + - + - + diff --git a/LLVMSharp.sln b/LLVMSharp.sln index 8d63849a..3aae5227 100644 --- a/LLVMSharp.sln +++ b/LLVMSharp.sln @@ -86,16 +86,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVM.runtime.osx-x64", " packages\libLLVM\libLLVM.runtime.osx-x64\libLLVM.runtime.osx-x64.nuspec = packages\libLLVM\libLLVM.runtime.osx-x64\libLLVM.runtime.osx-x64.nuspec EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVM.runtime.sles-x64", "libLLVM.runtime.sles-x64", "{8C0E6B8A-9FFD-43A1-9324-CA4B8DE997C8}" - ProjectSection(SolutionItems) = preProject - packages\libLLVM\libLLVM.runtime.sles-x64\libLLVM.runtime.sles-x64.nuspec = packages\libLLVM\libLLVM.runtime.sles-x64\libLLVM.runtime.sles-x64.nuspec - EndProjectSection -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVM.runtime.ubuntu.16.04-x64", "libLLVM.runtime.ubuntu.16.04-x64", "{9F3C3619-32D3-489E-BE7A-92FEE299DE34}" - ProjectSection(SolutionItems) = preProject - packages\libLLVM\libLLVM.runtime.ubuntu.16.04-x64\libLLVM.runtime.ubuntu.16.04-x64.nuspec = packages\libLLVM\libLLVM.runtime.ubuntu.16.04-x64\libLLVM.runtime.ubuntu.16.04-x64.nuspec - EndProjectSection -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVM.runtime.ubuntu.18.04-x64", "libLLVM.runtime.ubuntu.18.04-x64", "{481409E0-F009-4583-B587-7D6915E9B16E}" ProjectSection(SolutionItems) = preProject packages\libLLVM\libLLVM.runtime.ubuntu.18.04-x64\libLLVM.runtime.ubuntu.18.04-x64.nuspec = packages\libLLVM\libLLVM.runtime.ubuntu.18.04-x64\libLLVM.runtime.ubuntu.18.04-x64.nuspec @@ -116,6 +106,18 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVM.runtime.win-x86", " packages\libLLVM\libLLVM.runtime.win-x86\libLLVM.runtime.win-x86.nuspec = packages\libLLVM\libLLVM.runtime.win-x86\libLLVM.runtime.win-x86.nuspec EndProjectSection EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVM.runtime.ubuntu.21.04-x64", "libLLVM.runtime.ubuntu.21.04-x64", "{1808D302-0067-4121-964C-2CBAFB8A957A}" + ProjectSection(SolutionItems) = preProject + packages\libLLVM\libLLVM.runtime.ubuntu.21.04-x64\libLLVM.runtime.ubuntu.21.04-x64.nuspec = packages\libLLVM\libLLVM.runtime.ubuntu.21.04-x64\libLLVM.runtime.ubuntu.21.04-x64.nuspec + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVM.runtime.win-arm64", "libLLVM.runtime.win-arm64", "{19DB05E9-59B6-45E9-B47D-62913F7DF9A8}" + ProjectSection(SolutionItems) = preProject + packages\libLLVM\libLLVM.runtime.win-arm64\libLLVM.runtime.win-arm64.nuspec = packages\libLLVM\libLLVM.runtime.win-arm64\libLLVM.runtime.win-arm64.nuspec + EndProjectSection +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LLVMSharp.Interop", "sources\LLVMSharp.Interop\LLVMSharp.Interop.csproj", "{CEA0F0C9-DF25-446B-8F55-FB629BD1D3E6}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -130,6 +132,10 @@ Global {293C5F55-2CB1-4398-946B-8AD8E37D7FEE}.Debug|Any CPU.Build.0 = Debug|Any CPU {293C5F55-2CB1-4398-946B-8AD8E37D7FEE}.Release|Any CPU.ActiveCfg = Release|Any CPU {293C5F55-2CB1-4398-946B-8AD8E37D7FEE}.Release|Any CPU.Build.0 = Release|Any CPU + {CEA0F0C9-DF25-446B-8F55-FB629BD1D3E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CEA0F0C9-DF25-446B-8F55-FB629BD1D3E6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CEA0F0C9-DF25-446B-8F55-FB629BD1D3E6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CEA0F0C9-DF25-446B-8F55-FB629BD1D3E6}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -144,12 +150,13 @@ Global {A7F2EA37-BFBA-4659-969D-E9A4A696E10A} = {9D46FF1C-E09F-4063-A97D-C09F26310B67} {16539CB8-8AC7-4AD0-9D54-8EE615B2FCF3} = {9D46FF1C-E09F-4063-A97D-C09F26310B67} {D4550E5E-9485-4480-B2B6-9503EEC935BF} = {9D46FF1C-E09F-4063-A97D-C09F26310B67} - {8C0E6B8A-9FFD-43A1-9324-CA4B8DE997C8} = {9D46FF1C-E09F-4063-A97D-C09F26310B67} - {DC151BEE-774F-4032-8D2F-F3360F7F4D82} = {9D46FF1C-E09F-4063-A97D-C09F26310B67} - {9F3C3619-32D3-489E-BE7A-92FEE299DE34} = {9D46FF1C-E09F-4063-A97D-C09F26310B67} {481409E0-F009-4583-B587-7D6915E9B16E} = {9D46FF1C-E09F-4063-A97D-C09F26310B67} + {DC151BEE-774F-4032-8D2F-F3360F7F4D82} = {9D46FF1C-E09F-4063-A97D-C09F26310B67} {E785DDD0-B9CD-4412-8A3C-4E65C601168C} = {9D46FF1C-E09F-4063-A97D-C09F26310B67} {540AB7F4-29FD-462A-8791-259764FD4950} = {9D46FF1C-E09F-4063-A97D-C09F26310B67} + {1808D302-0067-4121-964C-2CBAFB8A957A} = {9D46FF1C-E09F-4063-A97D-C09F26310B67} + {19DB05E9-59B6-45E9-B47D-62913F7DF9A8} = {9D46FF1C-E09F-4063-A97D-C09F26310B67} + {CEA0F0C9-DF25-446B-8F55-FB629BD1D3E6} = {62B5C536-C224-4EE1-972F-05F732B5980B} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {75550D8C-A492-4ED3-8387-206830F8B21E} diff --git a/README.md b/README.md index 351b4ec4..08b2873a 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,10 @@ LLVMSharp is a multi-platform .NET Standard library for accessing the LLVM infra | Job | Debug Status | Release Status | | --- | ------------ | -------------- | -| Windows x86 | [![Build Status](https://dev.azure.com/ms/LLVMSharp/_apis/build/status/microsoft.LLVMSharp?branchName=master&jobName=windows_debug_x86)](https://dev.azure.com/ms/LLVMSharp/_build/latest?definitionId=156&branchName=master) | [![Build Status](https://dev.azure.com/ms/LLVMSharp/_apis/build/status/microsoft.LLVMSharp?branchName=master&jobName=windows_release_x86)](https://dev.azure.com/ms/LLVMSharp/_build/latest?definitionId=156&branchName=master) | -| Windows x64 | [![Build Status](https://dev.azure.com/ms/LLVMSharp/_apis/build/status/microsoft.LLVMSharp?branchName=master&jobName=windows_debug_x64)](https://dev.azure.com/ms/LLVMSharp/_build/latest?definitionId=156&branchName=master) | [![Build Status](https://dev.azure.com/ms/LLVMSharp/_apis/build/status/microsoft.LLVMSharp?branchName=master&jobName=windows_release_x64)](https://dev.azure.com/ms/LLVMSharp/_build/latest?definitionId=156&branchName=master) | -| Ubuntu 16.04 x64 | [![Build Status](https://dev.azure.com/ms/LLVMSharp/_apis/build/status/microsoft.LLVMSharp?branchName=master&jobName=ubuntu_debug_x64)](https://dev.azure.com/ms/LLVMSharp/_build/latest?definitionId=156&branchName=master) | [![Build Status](https://dev.azure.com/ms/LLVMSharp/_apis/build/status/microsoft.LLVMSharp?branchName=master&jobName=ubuntu_release_x64)](https://dev.azure.com/ms/LLVMSharp/_build/latest?definitionId=156&branchName=master) | -| MacOS x64 | [![Build Status](https://dev.azure.com/ms/LLVMSharp/_apis/build/status/microsoft.LLVMSharp?branchName=master&jobName=macos_debug_x64)](https://dev.azure.com/ms/LLVMSharp/_build/latest?definitionId=156&branchName=master) | [![Build Status](https://dev.azure.com/ms/LLVMSharp/_apis/build/status/microsoft.LLVMSharp?branchName=master&jobName=macos_release_x64)](https://dev.azure.com/ms/LLVMSharp/_build/latest?definitionId=156&branchName=master) | +| Windows x86 | [![Build Status](https://dev.azure.com/ms/LLVMSharp/_apis/build/status/microsoft.LLVMSharp?branchName=main&jobName=windows_debug_x86)](https://dev.azure.com/ms/LLVMSharp/_build/latest?definitionId=156&branchName=main) | [![Build Status](https://dev.azure.com/ms/LLVMSharp/_apis/build/status/microsoft.LLVMSharp?branchName=main&jobName=windows_release_x86)](https://dev.azure.com/ms/LLVMSharp/_build/latest?definitionId=156&branchName=main) | +| Windows x64 | [![Build Status](https://dev.azure.com/ms/LLVMSharp/_apis/build/status/microsoft.LLVMSharp?branchName=main&jobName=windows_debug_x64)](https://dev.azure.com/ms/LLVMSharp/_build/latest?definitionId=156&branchName=main) | [![Build Status](https://dev.azure.com/ms/LLVMSharp/_apis/build/status/microsoft.LLVMSharp?branchName=main&jobName=windows_release_x64)](https://dev.azure.com/ms/LLVMSharp/_build/latest?definitionId=156&branchName=main) | +| Ubuntu 16.04 x64 | [![Build Status](https://dev.azure.com/ms/LLVMSharp/_apis/build/status/microsoft.LLVMSharp?branchName=main&jobName=ubuntu_debug_x64)](https://dev.azure.com/ms/LLVMSharp/_build/latest?definitionId=156&branchName=main) | [![Build Status](https://dev.azure.com/ms/LLVMSharp/_apis/build/status/microsoft.LLVMSharp?branchName=main&jobName=ubuntu_release_x64)](https://dev.azure.com/ms/LLVMSharp/_build/latest?definitionId=156&branchName=main) | +| MacOS x64 | [![Build Status](https://dev.azure.com/ms/LLVMSharp/_apis/build/status/microsoft.LLVMSharp?branchName=main&jobName=macos_debug_x64)](https://dev.azure.com/ms/LLVMSharp/_build/latest?definitionId=156&branchName=main) | [![Build Status](https://dev.azure.com/ms/LLVMSharp/_apis/build/status/microsoft.LLVMSharp?branchName=main&jobName=macos_release_x64)](https://dev.azure.com/ms/LLVMSharp/_build/latest?definitionId=156&branchName=main) | [![Join the chat at https://gitter.im/mjsabby/LLVMSharp](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/mjsabby/LLVMSharp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) diff --git a/packages/libLLVM/libLLVM.runtime.freebsd.11-x64/libLLVM.runtime.freebsd.11-x64.nuspec b/packages/libLLVM/libLLVM.runtime.freebsd.11-x64/libLLVM.runtime.freebsd.11-x64.nuspec index ca4049ae..2e6b2a3f 100644 --- a/packages/libLLVM/libLLVM.runtime.freebsd.11-x64/libLLVM.runtime.freebsd.11-x64.nuspec +++ b/packages/libLLVM/libLLVM.runtime.freebsd.11-x64/libLLVM.runtime.freebsd.11-x64.nuspec @@ -2,15 +2,15 @@ libLLVM.runtime.freebsd.11-x64 - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/llvmsharp freebsd 11 x64 native library for libLLVM. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libLLVM/libLLVM.runtime.freebsd.11-x86/libLLVM.runtime.freebsd.11-x86.nuspec b/packages/libLLVM/libLLVM.runtime.freebsd.11-x86/libLLVM.runtime.freebsd.11-x86.nuspec index 546c95fb..e48f7a99 100644 --- a/packages/libLLVM/libLLVM.runtime.freebsd.11-x86/libLLVM.runtime.freebsd.11-x86.nuspec +++ b/packages/libLLVM/libLLVM.runtime.freebsd.11-x86/libLLVM.runtime.freebsd.11-x86.nuspec @@ -2,15 +2,15 @@ libLLVM.runtime.freebsd.11-x86 - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/llvmsharp freebsd 11 x86 native library for libLLVM. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libLLVM/libLLVM.runtime.linux-arm/libLLVM.runtime.linux-arm.nuspec b/packages/libLLVM/libLLVM.runtime.linux-arm/libLLVM.runtime.linux-arm.nuspec index 837c88ef..ff47af99 100644 --- a/packages/libLLVM/libLLVM.runtime.linux-arm/libLLVM.runtime.linux-arm.nuspec +++ b/packages/libLLVM/libLLVM.runtime.linux-arm/libLLVM.runtime.linux-arm.nuspec @@ -2,15 +2,15 @@ libLLVM.runtime.linux-arm - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/llvmsharp linux arm native library for libLLVM. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libLLVM/libLLVM.runtime.linux-arm64/libLLVM.runtime.linux-arm64.nuspec b/packages/libLLVM/libLLVM.runtime.linux-arm64/libLLVM.runtime.linux-arm64.nuspec index d313f7b8..83be281d 100644 --- a/packages/libLLVM/libLLVM.runtime.linux-arm64/libLLVM.runtime.linux-arm64.nuspec +++ b/packages/libLLVM/libLLVM.runtime.linux-arm64/libLLVM.runtime.linux-arm64.nuspec @@ -2,15 +2,15 @@ libLLVM.runtime.linux-arm64 - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/llvmsharp linux arm64 native library for libLLVM. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libLLVM/libLLVM.runtime.osx-x64/libLLVM.runtime.osx-x64.nuspec b/packages/libLLVM/libLLVM.runtime.osx-x64/libLLVM.runtime.osx-x64.nuspec index d0a44d64..d609969d 100644 --- a/packages/libLLVM/libLLVM.runtime.osx-x64/libLLVM.runtime.osx-x64.nuspec +++ b/packages/libLLVM/libLLVM.runtime.osx-x64/libLLVM.runtime.osx-x64.nuspec @@ -2,15 +2,15 @@ libLLVM.runtime.osx-x64 - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/llvmsharp osx x64 native library for libLLVM. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libLLVM/libLLVM.runtime.ubuntu.18.04-x64/libLLVM.runtime.ubuntu.18.04-x64.nuspec b/packages/libLLVM/libLLVM.runtime.ubuntu.18.04-x64/libLLVM.runtime.ubuntu.18.04-x64.nuspec index 15df4751..ee6a2197 100644 --- a/packages/libLLVM/libLLVM.runtime.ubuntu.18.04-x64/libLLVM.runtime.ubuntu.18.04-x64.nuspec +++ b/packages/libLLVM/libLLVM.runtime.ubuntu.18.04-x64/libLLVM.runtime.ubuntu.18.04-x64.nuspec @@ -2,15 +2,15 @@ libLLVM.runtime.ubuntu.18.04-x64 - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/llvmsharp ubuntu 18.04 x64 native library for libLLVM. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libLLVM/libLLVM.runtime.ubuntu.20.04-x64/libLLVM.runtime.ubuntu.20.04-x64.nuspec b/packages/libLLVM/libLLVM.runtime.ubuntu.20.04-x64/libLLVM.runtime.ubuntu.20.04-x64.nuspec index b87a13e7..36ee2e21 100644 --- a/packages/libLLVM/libLLVM.runtime.ubuntu.20.04-x64/libLLVM.runtime.ubuntu.20.04-x64.nuspec +++ b/packages/libLLVM/libLLVM.runtime.ubuntu.20.04-x64/libLLVM.runtime.ubuntu.20.04-x64.nuspec @@ -2,15 +2,15 @@ libLLVM.runtime.ubuntu.20.04-x64 - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/llvmsharp ubuntu 20.04 x64 native library for libLLVM. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libLLVM/libLLVM.runtime.ubuntu.16.04-x64/libLLVM.runtime.ubuntu.16.04-x64.nuspec b/packages/libLLVM/libLLVM.runtime.ubuntu.21.04-x64/libLLVM.runtime.ubuntu.21.04-x64.nuspec similarity index 61% rename from packages/libLLVM/libLLVM.runtime.ubuntu.16.04-x64/libLLVM.runtime.ubuntu.16.04-x64.nuspec rename to packages/libLLVM/libLLVM.runtime.ubuntu.21.04-x64/libLLVM.runtime.ubuntu.21.04-x64.nuspec index f26fa8c6..ff02aa8a 100644 --- a/packages/libLLVM/libLLVM.runtime.ubuntu.16.04-x64/libLLVM.runtime.ubuntu.16.04-x64.nuspec +++ b/packages/libLLVM/libLLVM.runtime.ubuntu.21.04-x64/libLLVM.runtime.ubuntu.21.04-x64.nuspec @@ -1,19 +1,19 @@ - libLLVM.runtime.ubuntu.16.04-x64 - 11.0.0 + libLLVM.runtime.ubuntu.21.04-x64 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/llvmsharp - ubuntu 16.04 x64 native library for libLLVM. - Copyright © University of Illinois at Urbana-Champaign - + ubuntu 21.04 x64 native library for libLLVM. + Copyright © LLVM Project + - + diff --git a/packages/libLLVM/libLLVM.runtime.sles-x64/libLLVM.runtime.sles-x64.nuspec b/packages/libLLVM/libLLVM.runtime.win-arm64/libLLVM.runtime.win-arm64.nuspec similarity index 59% rename from packages/libLLVM/libLLVM.runtime.sles-x64/libLLVM.runtime.sles-x64.nuspec rename to packages/libLLVM/libLLVM.runtime.win-arm64/libLLVM.runtime.win-arm64.nuspec index 13b0d247..02d96f67 100644 --- a/packages/libLLVM/libLLVM.runtime.sles-x64/libLLVM.runtime.sles-x64.nuspec +++ b/packages/libLLVM/libLLVM.runtime.win-arm64/libLLVM.runtime.win-arm64.nuspec @@ -1,19 +1,19 @@ - libLLVM.runtime.sles-x64 - 11.0.0 + libLLVM.runtime.win-arm64 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/llvmsharp - sles x64 native library for libLLVM. - Copyright © University of Illinois at Urbana-Champaign - + win arm64 native library for libLLVM. + Copyright © LLVM Project + - + diff --git a/packages/libLLVM/libLLVM.runtime.win-x64/libLLVM.runtime.win-x64.nuspec b/packages/libLLVM/libLLVM.runtime.win-x64/libLLVM.runtime.win-x64.nuspec index 86f2065a..2d7e3925 100644 --- a/packages/libLLVM/libLLVM.runtime.win-x64/libLLVM.runtime.win-x64.nuspec +++ b/packages/libLLVM/libLLVM.runtime.win-x64/libLLVM.runtime.win-x64.nuspec @@ -2,15 +2,15 @@ libLLVM.runtime.win-x64 - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/llvmsharp win x64 native library for libLLVM. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libLLVM/libLLVM.runtime.win-x86/libLLVM.runtime.win-x86.nuspec b/packages/libLLVM/libLLVM.runtime.win-x86/libLLVM.runtime.win-x86.nuspec index ce97a61a..2c177739 100644 --- a/packages/libLLVM/libLLVM.runtime.win-x86/libLLVM.runtime.win-x86.nuspec +++ b/packages/libLLVM/libLLVM.runtime.win-x86/libLLVM.runtime.win-x86.nuspec @@ -2,15 +2,15 @@ libLLVM.runtime.win-x86 - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/llvmsharp win x86 native library for libLLVM. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libLLVM/libLLVM/libLLVM.nuspec b/packages/libLLVM/libLLVM/libLLVM.nuspec index aa16768e..515aaf8b 100644 --- a/packages/libLLVM/libLLVM/libLLVM.nuspec +++ b/packages/libLLVM/libLLVM/libLLVM.nuspec @@ -2,15 +2,15 @@ libLLVM - 11.0.0 + 12.0.0 Microsoft and Contributors Microsoft and Contributors true - Apache-2.0 + Apache-2.0 WITH LLVM-exception https://github.com/microsoft/llvmsharp Multi-platform native library for libLLVM. - Copyright © University of Illinois at Urbana-Champaign - + Copyright © LLVM Project + diff --git a/packages/libLLVM/libLLVM/runtime.json b/packages/libLLVM/libLLVM/runtime.json index 4b1f72f0..775ec380 100644 --- a/packages/libLLVM/libLLVM/runtime.json +++ b/packages/libLLVM/libLLVM/runtime.json @@ -2,57 +2,57 @@ "runtimes": { "freebsd.11-x64": { "libLLVM": { - "libLLVM.runtime.freebsd.11-x64": "11.0.0" + "libLLVM.runtime.freebsd.11-x64": "12.0.0" } }, "freebsd.11-x86": { "libLLVM": { - "libLLVM.runtime.freebsd.11-x86": "11.0.0" + "libLLVM.runtime.freebsd.11-x86": "12.0.0" } }, "linux-arm": { "libLLVM": { - "libLLVM.runtime.linux-arm": "11.0.0" + "libLLVM.runtime.linux-arm": "12.0.0" } }, "linux-arm64": { "libLLVM": { - "libLLVM.runtime.linux-arm64": "11.0.0" + "libLLVM.runtime.linux-arm64": "12.0.0" } }, "osx-x64": { "libLLVM": { - "libLLVM.runtime.osx-x64": "11.0.0" + "libLLVM.runtime.osx-x64": "12.0.0" } }, - "sles-x64": { + "ubuntu.18.04-x64": { "libLLVM": { - "libLLVM.runtime.sles-x64": "11.0.0" + "libLLVM.runtime.ubuntu.18.04-x64": "12.0.0" } }, - "ubuntu.16.04-x64": { + "ubuntu.20.04-x64": { "libLLVM": { - "libLLVM.runtime.ubuntu.16.04-x64": "11.0.0" + "libLLVM.runtime.ubuntu.20.04-x64": "12.0.0" } }, - "ubuntu.18.04-x64": { + "ubuntu.21.04-x64": { "libLLVM": { - "libLLVM.runtime.ubuntu.18.04-x64": "11.0.0" + "libLLVM.runtime.ubuntu.21.04-x64": "12.0.0" } }, - "ubuntu.20.04-x64": { + "win-arm64": { "libLLVM": { - "libLLVM.runtime.ubuntu.20.04-x64": "11.0.0" + "libLLVM.runtime.win-arm64": "12.0.0" } }, "win-x64": { "libLLVM": { - "libLLVM.runtime.win-x64": "11.0.0" + "libLLVM.runtime.win-x64": "12.0.0" } }, "win-x86": { "libLLVM": { - "libLLVM.runtime.win-x86": "11.0.0" + "libLLVM.runtime.win-x86": "12.0.0" } } } diff --git a/scripts/azure-pipelines.yml b/scripts/azure-pipelines.yml index 814c1e2b..2d6feb5a 100644 --- a/scripts/azure-pipelines.yml +++ b/scripts/azure-pipelines.yml @@ -1,8 +1,8 @@ trigger: -- master +- main pr: -- master +- main jobs: - template: azure-windows.yml diff --git a/sources/LLVMSharp/Interop.Extensions/LLVM.Manual.cs b/sources/LLVMSharp.Interop/Extensions/LLVM.Manual.cs similarity index 99% rename from sources/LLVMSharp/Interop.Extensions/LLVM.Manual.cs rename to sources/LLVMSharp.Interop/Extensions/LLVM.Manual.cs index 862ab2ab..7cee822c 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVM.Manual.cs +++ b/sources/LLVMSharp.Interop/Extensions/LLVM.Manual.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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.Extensions/LLVM.ResolveLibrary.cs b/sources/LLVMSharp.Interop/Extensions/LLVM.ResolveLibrary.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVM.ResolveLibrary.cs rename to sources/LLVMSharp.Interop/Extensions/LLVM.ResolveLibrary.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMAttributeIndex.cs b/sources/LLVMSharp.Interop/Extensions/LLVMAttributeIndex.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMAttributeIndex.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMAttributeIndex.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMAttributeRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMAttributeRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMAttributeRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMAttributeRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMBasicBlockRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMBasicBlockRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMBasicBlockRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMBasicBlockRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMBinaryRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMBinaryRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMBinaryRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMBinaryRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMBuilderRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMBuilderRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMBuilderRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMBuilderRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMComdatRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMComdatRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMComdatRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMComdatRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMContextRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMContextRef.cs similarity index 99% rename from sources/LLVMSharp/Interop.Extensions/LLVMContextRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMContextRef.cs index 90564bdf..00c19b44 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMContextRef.cs +++ b/sources/LLVMSharp.Interop/Extensions/LLVMContextRef.cs @@ -46,6 +46,8 @@ public LLVMContextRef(IntPtr handle) public LLVMTypeRef X86MMXType => (Handle != IntPtr.Zero) ? LLVM.X86MMXTypeInContext(this) : default; + public LLVMTypeRef X86AMXType => (Handle != IntPtr.Zero) ? LLVM.X86AMXTypeInContext(this) : default; + public static implicit operator LLVMContextRef(LLVMOpaqueContext* value) => new LLVMContextRef((IntPtr)value); public static implicit operator LLVMOpaqueContext*(LLVMContextRef value) => (LLVMOpaqueContext*)value.Handle; diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMDIBuilderRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMDIBuilderRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMDIBuilderRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMDIBuilderRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMDiagnosticInfoRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMDiagnosticInfoRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMDiagnosticInfoRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMDiagnosticInfoRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMDisasmContextRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMDisasmContextRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMDisasmContextRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMDisasmContextRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMErrorRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMErrorRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMErrorRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMErrorRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMErrorTypeId.cs b/sources/LLVMSharp.Interop/Extensions/LLVMErrorTypeId.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMErrorTypeId.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMErrorTypeId.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMExecutionEngineRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMExecutionEngineRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMExecutionEngineRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMExecutionEngineRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMGenericValueRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMGenericValueRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMGenericValueRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMGenericValueRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMJITEventListenerRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMJITEventListenerRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMJITEventListenerRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMJITEventListenerRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMMCJITCompilerOptions.cs b/sources/LLVMSharp.Interop/Extensions/LLVMMCJITCompilerOptions.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMMCJITCompilerOptions.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMMCJITCompilerOptions.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMMCJITMemoryManagerRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMMCJITMemoryManagerRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMMCJITMemoryManagerRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMMCJITMemoryManagerRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMMemoryBufferRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMMemoryBufferRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMMemoryBufferRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMMemoryBufferRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMMetadataKind.cs b/sources/LLVMSharp.Interop/Extensions/LLVMMetadataKind.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMMetadataKind.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMMetadataKind.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMMetadataRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMMetadataRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMMetadataRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMMetadataRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMModuleFlagEntry.cs b/sources/LLVMSharp.Interop/Extensions/LLVMModuleFlagEntry.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMModuleFlagEntry.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMModuleFlagEntry.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMModuleProviderRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMModuleProviderRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMModuleProviderRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMModuleProviderRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMModuleRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMModuleRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMModuleRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMModuleRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMNamedMDNodeRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMNamedMDNodeRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMNamedMDNodeRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMNamedMDNodeRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMObjectFileRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMObjectFileRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMObjectFileRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMObjectFileRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMPassManagerBuilderRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMPassManagerBuilderRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMPassManagerBuilderRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMPassManagerBuilderRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMPassManagerRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMPassManagerRef.cs similarity index 97% rename from sources/LLVMSharp/Interop.Extensions/LLVMPassManagerRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMPassManagerRef.cs index 2fe88b89..f758a68f 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMPassManagerRef.cs +++ b/sources/LLVMSharp.Interop/Extensions/LLVMPassManagerRef.cs @@ -41,8 +41,6 @@ public LLVMPassManagerRef(IntPtr handle) public void AddConstantMergePass() => LLVM.AddConstantMergePass(this); - public void AddConstantPropagationPass() => LLVM.AddConstantPropagationPass(this); - public void AddCorrelatedValuePropagationPass() => LLVM.AddCorrelatedValuePropagationPass(this); public void AddDCEPass() => LLVM.AddDCEPass(this); @@ -73,8 +71,6 @@ public LLVMPassManagerRef(IntPtr handle) public void AddInternalizePass(uint AllButMain) => LLVM.AddInternalizePass(this, AllButMain); - public void AddIPConstantPropagationPass() => LLVM.AddIPConstantPropagationPass(this); - public void AddIPSCCPPass() => LLVM.AddIPSCCPPass(this); public void AddJumpThreadingPass() => LLVM.AddJumpThreadingPass(this); diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMPassRegistryRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMPassRegistryRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMPassRegistryRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMPassRegistryRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMRelocationIteratorRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMRelocationIteratorRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMRelocationIteratorRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMRelocationIteratorRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMRemarkArgRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMRemarkArgRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMRemarkArgRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMRemarkArgRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMRemarkDebugLocRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMRemarkDebugLocRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMRemarkDebugLocRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMRemarkDebugLocRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMRemarkEntryRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMRemarkEntryRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMRemarkEntryRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMRemarkEntryRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMRemarkParserRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMRemarkParserRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMRemarkParserRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMRemarkParserRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMRemarkStringRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMRemarkStringRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMRemarkStringRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMRemarkStringRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMSectionIteratorRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMSectionIteratorRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMSectionIteratorRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMSectionIteratorRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMSymbolIteratorRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMSymbolIteratorRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMSymbolIteratorRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMSymbolIteratorRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMTargetDataRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMTargetDataRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMTargetDataRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMTargetDataRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMTargetLibraryInfoRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMTargetLibraryInfoRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMTargetLibraryInfoRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMTargetLibraryInfoRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMTargetMachineRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMTargetMachineRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMTargetMachineRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMTargetMachineRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMTargetRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMTargetRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMTargetRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMTargetRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMTypeRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMTypeRef.cs similarity index 96% rename from sources/LLVMSharp/Interop.Extensions/LLVMTypeRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMTypeRef.cs index 6142b096..c8fda089 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMTypeRef.cs +++ b/sources/LLVMSharp.Interop/Extensions/LLVMTypeRef.cs @@ -43,6 +43,8 @@ public LLVMTypeRef(IntPtr handle) public static LLVMTypeRef X86MMX => LLVM.X86MMXType(); + public static LLVMTypeRef X86AMX => LLVM.X86AMXType(); + public LLVMValueRef AlignOf => (Handle != IntPtr.Zero) ? LLVM.AlignOf(this) : default; public uint ArrayLength => (Kind == LLVMTypeKind.LLVMArrayTypeKind) ? LLVM.GetArrayLength(this) : default; @@ -87,6 +89,8 @@ public LLVMTypeRef[] ParamTypes public uint PointerAddressSpace => (Kind == LLVMTypeKind.LLVMPointerTypeKind) ? LLVM.GetPointerAddressSpace(this) : default; + public LLVMValueRef Poison => (Handle != IntPtr.Zero) ? LLVM.GetPoison(this) : default; + public LLVMTypeRef ReturnType => (Kind == LLVMTypeKind.LLVMFunctionTypeKind) ? LLVM.GetReturnType(this) : default; public LLVMValueRef SizeOf => (Handle != IntPtr.Zero) ? LLVM.SizeOf(this) : default; @@ -200,6 +204,8 @@ public static LLVMTypeRef CreateStruct(ReadOnlySpan ElementTypes, b public static LLVMTypeRef CreateVector(LLVMTypeRef ElementType, uint ElementCount) => LLVM.VectorType(ElementType, ElementCount); + public static LLVMTypeRef CreateScalableVector(LLVMTypeRef ElementType, uint ElementCount) => LLVM.ScalableVectorType(ElementType, ElementCount); + public void Dump() => LLVM.DumpType(this); public override bool Equals(object obj) => (obj is LLVMTypeRef other) && Equals(other); diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMUseRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMUseRef.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/LLVMUseRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMUseRef.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMValueRef.cs b/sources/LLVMSharp.Interop/Extensions/LLVMValueRef.cs similarity index 99% rename from sources/LLVMSharp/Interop.Extensions/LLVMValueRef.cs rename to sources/LLVMSharp.Interop/Extensions/LLVMValueRef.cs index 1554e571..4d7449d2 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMValueRef.cs +++ b/sources/LLVMSharp.Interop/Extensions/LLVMValueRef.cs @@ -284,6 +284,8 @@ public uint InstructionCallConv public LLVMValueRef IsAPHINode => LLVM.IsAPHINode(this); + public LLVMValueRef IsAPoisonValue => LLVM.IsAPoisonValue(this); + public LLVMValueRef IsAPtrToIntInst => LLVM.IsAPtrToIntInst(this); public LLVMValueRef IsAResumeInst => LLVM.IsAResumeInst(this); @@ -353,6 +355,8 @@ public bool IsGlobalConstant public bool IsNull => (Handle != IntPtr.Zero) ? LLVM.IsNull(this) != 0 : default; + public bool IsPoison => (Handle != IntPtr.Zero) ? LLVM.IsPoison(this) != 0 : default; + public bool IsTailCall { get => (IsACallInst != null) ? LLVM.IsTailCall(this) != 0 : default; diff --git a/sources/LLVMSharp/Interop.Extensions/lto_code_gen_t.cs b/sources/LLVMSharp.Interop/Extensions/lto_code_gen_t.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/lto_code_gen_t.cs rename to sources/LLVMSharp.Interop/Extensions/lto_code_gen_t.cs diff --git a/sources/LLVMSharp/Interop.Extensions/lto_input_t.cs b/sources/LLVMSharp.Interop/Extensions/lto_input_t.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/lto_input_t.cs rename to sources/LLVMSharp.Interop/Extensions/lto_input_t.cs diff --git a/sources/LLVMSharp/Interop.Extensions/lto_module_t.cs b/sources/LLVMSharp.Interop/Extensions/lto_module_t.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/lto_module_t.cs rename to sources/LLVMSharp.Interop/Extensions/lto_module_t.cs diff --git a/sources/LLVMSharp/Interop.Extensions/thinlto_code_gen_t.cs b/sources/LLVMSharp.Interop/Extensions/thinlto_code_gen_t.cs similarity index 100% rename from sources/LLVMSharp/Interop.Extensions/thinlto_code_gen_t.cs rename to sources/LLVMSharp.Interop/Extensions/thinlto_code_gen_t.cs diff --git a/sources/LLVMSharp/Internals/MarshaledArray`1.cs b/sources/LLVMSharp.Interop/Internals/MarshaledArray`1.cs similarity index 92% rename from sources/LLVMSharp/Internals/MarshaledArray`1.cs rename to sources/LLVMSharp.Interop/Internals/MarshaledArray`1.cs index ad48fd67..3fe86697 100644 --- a/sources/LLVMSharp/Internals/MarshaledArray`1.cs +++ b/sources/LLVMSharp.Interop/Internals/MarshaledArray`1.cs @@ -3,9 +3,9 @@ using System; using System.Buffers; -namespace LLVMSharp +namespace LLVMSharp.Interop { - internal unsafe struct MarshaledArray : IDisposable + public unsafe struct MarshaledArray : IDisposable { public MarshaledArray(ReadOnlySpan inputs, Func marshal) { diff --git a/sources/LLVMSharp/Internals/MarshaledString.cs b/sources/LLVMSharp.Interop/Internals/MarshaledString.cs similarity index 95% rename from sources/LLVMSharp/Internals/MarshaledString.cs rename to sources/LLVMSharp.Interop/Internals/MarshaledString.cs index a105ea09..41d07d97 100644 --- a/sources/LLVMSharp/Internals/MarshaledString.cs +++ b/sources/LLVMSharp.Interop/Internals/MarshaledString.cs @@ -4,9 +4,9 @@ using System.Runtime.InteropServices; using System.Text; -namespace LLVMSharp +namespace LLVMSharp.Interop { - internal unsafe struct MarshaledString : IDisposable + public unsafe struct MarshaledString : IDisposable { public MarshaledString(ReadOnlySpan input) { diff --git a/sources/LLVMSharp/Internals/MarshaledStringArray.cs b/sources/LLVMSharp.Interop/Internals/MarshaledStringArray.cs similarity index 93% rename from sources/LLVMSharp/Internals/MarshaledStringArray.cs rename to sources/LLVMSharp.Interop/Internals/MarshaledStringArray.cs index 71870278..482894c0 100644 --- a/sources/LLVMSharp/Internals/MarshaledStringArray.cs +++ b/sources/LLVMSharp.Interop/Internals/MarshaledStringArray.cs @@ -2,9 +2,9 @@ using System; -namespace LLVMSharp +namespace LLVMSharp.Interop { - internal unsafe struct MarshaledStringArray : IDisposable + public unsafe struct MarshaledStringArray : IDisposable { public MarshaledStringArray(ReadOnlySpan inputs) { diff --git a/sources/LLVMSharp/Internals/NativeTypeNameAttribute.cs b/sources/LLVMSharp.Interop/Internals/NativeTypeNameAttribute.cs similarity index 95% rename from sources/LLVMSharp/Internals/NativeTypeNameAttribute.cs rename to sources/LLVMSharp.Interop/Internals/NativeTypeNameAttribute.cs index 8cd087d7..e4f9a5ac 100644 --- a/sources/LLVMSharp/Internals/NativeTypeNameAttribute.cs +++ b/sources/LLVMSharp.Interop/Internals/NativeTypeNameAttribute.cs @@ -3,7 +3,7 @@ using System; using System.Diagnostics; -namespace LLVMSharp +namespace LLVMSharp.Interop { [Conditional("DEBUG")] [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = false, Inherited = true)] diff --git a/sources/LLVMSharp/Internals/SpanExtensions.cs b/sources/LLVMSharp.Interop/Internals/SpanExtensions.cs similarity index 89% rename from sources/LLVMSharp/Internals/SpanExtensions.cs rename to sources/LLVMSharp.Interop/Internals/SpanExtensions.cs index 24a0ea60..cb8ef3c7 100644 --- a/sources/LLVMSharp/Internals/SpanExtensions.cs +++ b/sources/LLVMSharp.Interop/Internals/SpanExtensions.cs @@ -3,9 +3,9 @@ using System; using System.Text; -namespace LLVMSharp +namespace LLVMSharp.Interop { - internal static unsafe class SpanExtensions + public static unsafe class SpanExtensions { public static string AsString(this Span self) => AsString((ReadOnlySpan)self); diff --git a/sources/LLVMSharp/Interop/LLVM.cs b/sources/LLVMSharp.Interop/LLVM.cs similarity index 97% rename from sources/LLVMSharp/Interop/LLVM.cs rename to sources/LLVMSharp.Interop/LLVM.cs index 1523bbd7..5b9a52c6 100644 --- a/sources/LLVMSharp/Interop/LLVM.cs +++ b/sources/LLVMSharp.Interop/LLVM.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; @@ -111,18 +111,17 @@ public static unsafe partial class LLVM public static extern LLVMOpaqueContext* GetGlobalContext(); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextSetDiagnosticHandler", ExactSpelling = true)] - public static extern void ContextSetDiagnosticHandler([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("LLVMDiagnosticHandler")] IntPtr Handler, [NativeTypeName("void *")] void* DiagnosticContext); + public static extern void ContextSetDiagnosticHandler([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("LLVMDiagnosticHandler")] IntPtr Handler, void* DiagnosticContext); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextGetDiagnosticHandler", ExactSpelling = true)] [return: NativeTypeName("LLVMDiagnosticHandler")] public static extern IntPtr ContextGetDiagnosticHandler([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextGetDiagnosticContext", ExactSpelling = true)] - [return: NativeTypeName("void *")] public static extern void* ContextGetDiagnosticContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextSetYieldCallback", ExactSpelling = true)] - public static extern void ContextSetYieldCallback([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("LLVMYieldCallback")] IntPtr Callback, [NativeTypeName("void *")] void* OpaqueHandle); + public static extern void ContextSetYieldCallback([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("LLVMYieldCallback")] IntPtr Callback, void* OpaqueHandle); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextShouldDiscardValueNames", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] @@ -189,6 +188,10 @@ public static unsafe partial class LLVM [return: NativeTypeName("LLVMBool")] public static extern int IsStringAttribute([NativeTypeName("LLVMAttributeRef")] LLVMOpaqueAttributeRef* A); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTypeByName2", ExactSpelling = true)] + [return: NativeTypeName("LLVMTypeRef")] + public static extern LLVMOpaqueType* GetTypeByName2([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("const char *")] sbyte* Name); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMModuleCreateWithName", ExactSpelling = true)] [return: NativeTypeName("LLVMModuleRef")] public static extern LLVMOpaqueModule* ModuleCreateWithName([NativeTypeName("const char *")] sbyte* ModuleID); @@ -601,6 +604,10 @@ public static unsafe partial class LLVM [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* VectorType([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ElementType, [NativeTypeName("unsigned int")] uint ElementCount); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMScalableVectorType", ExactSpelling = true)] + [return: NativeTypeName("LLVMTypeRef")] + public static extern LLVMOpaqueType* ScalableVectorType([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ElementType, [NativeTypeName("unsigned int")] uint ElementCount); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetVectorSize", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetVectorSize([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* VectorTy); @@ -617,6 +624,10 @@ public static unsafe partial class LLVM [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* X86MMXTypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMX86AMXTypeInContext", ExactSpelling = true)] + [return: NativeTypeName("LLVMTypeRef")] + public static extern LLVMOpaqueType* X86AMXTypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTokenTypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* TokenTypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); @@ -637,6 +648,10 @@ public static unsafe partial class LLVM [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* X86MMXType(); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMX86AMXType", ExactSpelling = true)] + [return: NativeTypeName("LLVMTypeRef")] + public static extern LLVMOpaqueType* X86AMXType(); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTypeOf", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* TypeOf([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); @@ -669,6 +684,10 @@ public static unsafe partial class LLVM [return: NativeTypeName("LLVMBool")] public static extern int IsUndef([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsPoison", ExactSpelling = true)] + [return: NativeTypeName("LLVMBool")] + public static extern int IsPoison([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAArgument", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAArgument([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); @@ -769,6 +788,10 @@ public static unsafe partial class LLVM [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAUndefValue([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAPoisonValue", ExactSpelling = true)] + [return: NativeTypeName("LLVMValueRef")] + public static extern LLVMOpaqueValue* IsAPoisonValue([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAInstruction", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAInstruction([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); @@ -1074,6 +1097,10 @@ public static unsafe partial class LLVM [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetUndef([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPoison", ExactSpelling = true)] + [return: NativeTypeName("LLVMValueRef")] + public static extern LLVMOpaqueValue* GetPoison([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsNull", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsNull([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); @@ -2779,6 +2806,8 @@ public static unsafe partial class LLVM public const int LLVMDIMacroMetadataKind = 29; public const int LLVMDIMacroFileMetadataKind = 30; public const int LLVMDICommonBlockMetadataKind = 31; + public const int LLVMDIStringTypeMetadataKind = 32; + public const int LLVMDIGenericSubrangeMetadataKind = 33; [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDebugMetadataVersion", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] @@ -3127,15 +3156,15 @@ public static unsafe partial class LLVM [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateDisasm", ExactSpelling = true)] [return: NativeTypeName("LLVMDisasmContextRef")] - public static extern void* CreateDisasm([NativeTypeName("const char *")] sbyte* TripleName, [NativeTypeName("void *")] void* DisInfo, int TagType, [NativeTypeName("LLVMOpInfoCallback")] IntPtr GetOpInfo, [NativeTypeName("LLVMSymbolLookupCallback")] IntPtr SymbolLookUp); + public static extern void* CreateDisasm([NativeTypeName("const char *")] sbyte* TripleName, void* DisInfo, int TagType, [NativeTypeName("LLVMOpInfoCallback")] IntPtr GetOpInfo, [NativeTypeName("LLVMSymbolLookupCallback")] IntPtr SymbolLookUp); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateDisasmCPU", ExactSpelling = true)] [return: NativeTypeName("LLVMDisasmContextRef")] - public static extern void* CreateDisasmCPU([NativeTypeName("const char *")] sbyte* Triple, [NativeTypeName("const char *")] sbyte* CPU, [NativeTypeName("void *")] void* DisInfo, int TagType, [NativeTypeName("LLVMOpInfoCallback")] IntPtr GetOpInfo, [NativeTypeName("LLVMSymbolLookupCallback")] IntPtr SymbolLookUp); + public static extern void* CreateDisasmCPU([NativeTypeName("const char *")] sbyte* Triple, [NativeTypeName("const char *")] sbyte* CPU, void* DisInfo, int TagType, [NativeTypeName("LLVMOpInfoCallback")] IntPtr GetOpInfo, [NativeTypeName("LLVMSymbolLookupCallback")] IntPtr SymbolLookUp); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateDisasmCPUFeatures", ExactSpelling = true)] [return: NativeTypeName("LLVMDisasmContextRef")] - public static extern void* CreateDisasmCPUFeatures([NativeTypeName("const char *")] sbyte* Triple, [NativeTypeName("const char *")] sbyte* CPU, [NativeTypeName("const char *")] sbyte* Features, [NativeTypeName("void *")] void* DisInfo, int TagType, [NativeTypeName("LLVMOpInfoCallback")] IntPtr GetOpInfo, [NativeTypeName("LLVMSymbolLookupCallback")] IntPtr SymbolLookUp); + public static extern void* CreateDisasmCPUFeatures([NativeTypeName("const char *")] sbyte* Triple, [NativeTypeName("const char *")] sbyte* CPU, [NativeTypeName("const char *")] sbyte* Features, void* DisInfo, int TagType, [NativeTypeName("LLVMOpInfoCallback")] IntPtr GetOpInfo, [NativeTypeName("LLVMSymbolLookupCallback")] IntPtr SymbolLookUp); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetDisasmOptions", ExactSpelling = true)] public static extern int SetDisasmOptions([NativeTypeName("LLVMDisasmContextRef")] void* DC, [NativeTypeName("uint64_t")] ulong Options); @@ -3258,6 +3287,10 @@ public static unsafe partial class LLVM [return: NativeTypeName("LLVMErrorTypeId")] public static extern void* GetStringErrorTypeId(); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateStringError", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* CreateStringError([NativeTypeName("const char *")] sbyte* ErrMsg); + [NativeTypeName("#define LLVMErrorSuccess 0")] public const int LLVMErrorSuccess = 0; @@ -3282,7 +3315,7 @@ public static unsafe partial class LLVM [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateGenericValueOfPointer", ExactSpelling = true)] [return: NativeTypeName("LLVMGenericValueRef")] - public static extern LLVMOpaqueGenericValue* CreateGenericValueOfPointer([NativeTypeName("void *")] void* P); + public static extern LLVMOpaqueGenericValue* CreateGenericValueOfPointer(void* P); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateGenericValueOfFloat", ExactSpelling = true)] [return: NativeTypeName("LLVMGenericValueRef")] @@ -3297,7 +3330,6 @@ public static unsafe partial class LLVM public static extern ulong GenericValueToInt([NativeTypeName("LLVMGenericValueRef")] LLVMOpaqueGenericValue* GenVal, [NativeTypeName("LLVMBool")] int IsSigned); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGenericValueToPointer", ExactSpelling = true)] - [return: NativeTypeName("void *")] public static extern void* GenericValueToPointer([NativeTypeName("LLVMGenericValueRef")] LLVMOpaqueGenericValue* GenVal); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGenericValueToFloat", ExactSpelling = true)] @@ -3356,7 +3388,6 @@ public static unsafe partial class LLVM public static extern int FindFunction([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** OutFn); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRecompileAndRelinkFunction", ExactSpelling = true)] - [return: NativeTypeName("void *")] public static extern void* RecompileAndRelinkFunction([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetExecutionEngineTargetData", ExactSpelling = true)] @@ -3368,10 +3399,9 @@ public static unsafe partial class LLVM public static extern LLVMOpaqueTargetMachine* GetExecutionEngineTargetMachine([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddGlobalMapping", ExactSpelling = true)] - public static extern void AddGlobalMapping([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global, [NativeTypeName("void *")] void* Addr); + public static extern void AddGlobalMapping([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global, void* Addr); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPointerToGlobal", ExactSpelling = true)] - [return: NativeTypeName("void *")] public static extern void* GetPointerToGlobal([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetGlobalValueAddress", ExactSpelling = true)] @@ -3388,7 +3418,7 @@ public static unsafe partial class LLVM [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateSimpleMCJITMemoryManager", ExactSpelling = true)] [return: NativeTypeName("LLVMMCJITMemoryManagerRef")] - public static extern LLVMOpaqueMCJITMemoryManager* CreateSimpleMCJITMemoryManager([NativeTypeName("void *")] void* Opaque, [NativeTypeName("LLVMMemoryManagerAllocateCodeSectionCallback")] IntPtr AllocateCodeSection, [NativeTypeName("LLVMMemoryManagerAllocateDataSectionCallback")] IntPtr AllocateDataSection, [NativeTypeName("LLVMMemoryManagerFinalizeMemoryCallback")] IntPtr FinalizeMemory, [NativeTypeName("LLVMMemoryManagerDestroyCallback")] IntPtr Destroy); + public static extern LLVMOpaqueMCJITMemoryManager* CreateSimpleMCJITMemoryManager(void* Opaque, [NativeTypeName("LLVMMemoryManagerAllocateCodeSectionCallback")] IntPtr AllocateCodeSection, [NativeTypeName("LLVMMemoryManagerAllocateDataSectionCallback")] IntPtr AllocateDataSection, [NativeTypeName("LLVMMemoryManagerFinalizeMemoryCallback")] IntPtr FinalizeMemory, [NativeTypeName("LLVMMemoryManagerDestroyCallback")] IntPtr Destroy); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeMCJITMemoryManager", ExactSpelling = true)] public static extern void DisposeMCJITMemoryManager([NativeTypeName("LLVMMCJITMemoryManagerRef")] LLVMOpaqueMCJITMemoryManager* MM); @@ -3453,20 +3483,66 @@ public static unsafe partial class LLVM [return: NativeTypeName("LLVMBool")] public static extern int LinkModules2([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* Dest, [NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* Src); - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - [return: NativeTypeName("llvm_lto_t")] - public static extern void* llvm_create_optimizer(); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateLLJITBuilder", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcLLJITBuilderRef")] + public static extern LLVMOrcOpaqueLLJITBuilder* OrcCreateLLJITBuilder(); - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void llvm_destroy_optimizer([NativeTypeName("llvm_lto_t")] void* lto); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeLLJITBuilder", ExactSpelling = true)] + public static extern void OrcDisposeLLJITBuilder([NativeTypeName("LLVMOrcLLJITBuilderRef")] LLVMOrcOpaqueLLJITBuilder* Builder); - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - [return: NativeTypeName("llvm_lto_status_t")] - public static extern llvm_lto_status llvm_read_object_file([NativeTypeName("llvm_lto_t")] void* lto, [NativeTypeName("const char *")] sbyte* input_filename); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITBuilderSetJITTargetMachineBuilder", ExactSpelling = true)] + public static extern void OrcLLJITBuilderSetJITTargetMachineBuilder([NativeTypeName("LLVMOrcLLJITBuilderRef")] LLVMOrcOpaqueLLJITBuilder* Builder, [NativeTypeName("LLVMOrcJITTargetMachineBuilderRef")] LLVMOrcOpaqueJITTargetMachineBuilder* JTMB); - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - [return: NativeTypeName("llvm_lto_status_t")] - public static extern llvm_lto_status llvm_optimize_modules([NativeTypeName("llvm_lto_t")] void* lto, [NativeTypeName("const char *")] sbyte* output_filename); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITBuilderSetObjectLinkingLayerCreator", ExactSpelling = true)] + public static extern void OrcLLJITBuilderSetObjectLinkingLayerCreator([NativeTypeName("LLVMOrcLLJITBuilderRef")] LLVMOrcOpaqueLLJITBuilder* Builder, [NativeTypeName("LLVMOrcLLJITBuilderObjectLinkingLayerCreatorFunction")] IntPtr F, void* Ctx); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateLLJIT", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcCreateLLJIT([NativeTypeName("LLVMOrcLLJITRef *")] LLVMOrcOpaqueLLJIT** Result, [NativeTypeName("LLVMOrcLLJITBuilderRef")] LLVMOrcOpaqueLLJITBuilder* Builder); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeLLJIT", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcDisposeLLJIT([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITGetExecutionSession", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcExecutionSessionRef")] + public static extern LLVMOrcOpaqueExecutionSession* OrcLLJITGetExecutionSession([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITGetMainJITDylib", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcJITDylibRef")] + public static extern LLVMOrcOpaqueJITDylib* OrcLLJITGetMainJITDylib([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITGetTripleString", ExactSpelling = true)] + [return: NativeTypeName("const char *")] + public static extern sbyte* OrcLLJITGetTripleString([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITGetGlobalPrefix", ExactSpelling = true)] + [return: NativeTypeName("char")] + public static extern sbyte OrcLLJITGetGlobalPrefix([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITMangleAndIntern", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcSymbolStringPoolEntryRef")] + public static extern LLVMOrcOpaqueSymbolStringPoolEntry* OrcLLJITMangleAndIntern([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J, [NativeTypeName("const char *")] sbyte* UnmangledName); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITAddObjectFile", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcLLJITAddObjectFile([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J, [NativeTypeName("LLVMOrcJITDylibRef")] LLVMOrcOpaqueJITDylib* JD, [NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* ObjBuffer); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITAddObjectFileWithRT", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcLLJITAddObjectFileWithRT([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J, [NativeTypeName("LLVMOrcResourceTrackerRef")] LLVMOrcOpaqueResourceTracker* RT, [NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* ObjBuffer); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITAddLLVMIRModule", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcLLJITAddLLVMIRModule([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J, [NativeTypeName("LLVMOrcJITDylibRef")] LLVMOrcOpaqueJITDylib* JD, [NativeTypeName("LLVMOrcThreadSafeModuleRef")] LLVMOrcOpaqueThreadSafeModule* TSM); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITAddLLVMIRModuleWithRT", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcLLJITAddLLVMIRModuleWithRT([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J, [NativeTypeName("LLVMOrcResourceTrackerRef")] LLVMOrcOpaqueResourceTracker* JD, [NativeTypeName("LLVMOrcThreadSafeModuleRef")] LLVMOrcOpaqueThreadSafeModule* TSM); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITLookup", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcLLJITLookup([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J, [NativeTypeName("LLVMOrcJITTargetAddress *")] ulong* Result, [NativeTypeName("const char *")] sbyte* Name); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("const char *")] @@ -3554,7 +3630,7 @@ public static unsafe partial class LLVM public static extern byte lto_module_get_macho_cputype([NativeTypeName("lto_module_t")] LLVMOpaqueLTOModule* mod, [NativeTypeName("unsigned int *")] uint* out_cputype, [NativeTypeName("unsigned int *")] uint* out_cpusubtype); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void lto_codegen_set_diagnostic_handler([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* param0, [NativeTypeName("lto_diagnostic_handler_t")] IntPtr param1, [NativeTypeName("void *")] void* param2); + public static extern void lto_codegen_set_diagnostic_handler([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* param0, [NativeTypeName("lto_diagnostic_handler_t")] IntPtr param1, void* param2); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_code_gen_t")] @@ -3874,22 +3950,88 @@ public static unsafe partial class LLVM [return: NativeTypeName("LLVMBool")] public static extern int IsSymbolIteratorAtEnd([NativeTypeName("LLVMObjectFileRef")] LLVMOpaqueObjectFile* ObjectFile, [NativeTypeName("LLVMSymbolIteratorRef")] LLVMOpaqueSymbolIterator* SI); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcExecutionSessionSetErrorReporter", ExactSpelling = true)] + public static extern void OrcExecutionSessionSetErrorReporter([NativeTypeName("LLVMOrcExecutionSessionRef")] LLVMOrcOpaqueExecutionSession* ES, [NativeTypeName("LLVMOrcErrorReporterFunction")] IntPtr ReportError, void* Ctx); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcExecutionSessionGetSymbolStringPool", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcSymbolStringPoolRef")] + public static extern LLVMOrcOpaqueSymbolStringPool* OrcExecutionSessionGetSymbolStringPool([NativeTypeName("LLVMOrcExecutionSessionRef")] LLVMOrcOpaqueExecutionSession* ES); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcSymbolStringPoolClearDeadEntries", ExactSpelling = true)] + public static extern void OrcSymbolStringPoolClearDeadEntries([NativeTypeName("LLVMOrcSymbolStringPoolRef")] LLVMOrcOpaqueSymbolStringPool* SSP); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcExecutionSessionIntern", ExactSpelling = true)] [return: NativeTypeName("LLVMOrcSymbolStringPoolEntryRef")] - public static extern LLVMOrcQuaqueSymbolStringPoolEntryPtr* OrcExecutionSessionIntern([NativeTypeName("LLVMOrcExecutionSessionRef")] LLVMOrcOpaqueExecutionSession* ES, [NativeTypeName("const char *")] sbyte* Name); + public static extern LLVMOrcOpaqueSymbolStringPoolEntry* OrcExecutionSessionIntern([NativeTypeName("LLVMOrcExecutionSessionRef")] LLVMOrcOpaqueExecutionSession* ES, [NativeTypeName("const char *")] sbyte* Name); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcRetainSymbolStringPoolEntry", ExactSpelling = true)] + public static extern void OrcRetainSymbolStringPoolEntry([NativeTypeName("LLVMOrcSymbolStringPoolEntryRef")] LLVMOrcOpaqueSymbolStringPoolEntry* S); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcReleaseSymbolStringPoolEntry", ExactSpelling = true)] - public static extern void OrcReleaseSymbolStringPoolEntry([NativeTypeName("LLVMOrcSymbolStringPoolEntryRef")] LLVMOrcQuaqueSymbolStringPoolEntryPtr* S); + public static extern void OrcReleaseSymbolStringPoolEntry([NativeTypeName("LLVMOrcSymbolStringPoolEntryRef")] LLVMOrcOpaqueSymbolStringPoolEntry* S); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcSymbolStringPoolEntryStr", ExactSpelling = true)] + [return: NativeTypeName("const char *")] + public static extern sbyte* OrcSymbolStringPoolEntryStr([NativeTypeName("LLVMOrcSymbolStringPoolEntryRef")] LLVMOrcOpaqueSymbolStringPoolEntry* S); - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeJITDylibDefinitionGenerator", ExactSpelling = true)] - public static extern void OrcDisposeJITDylibDefinitionGenerator([NativeTypeName("LLVMOrcJITDylibDefinitionGeneratorRef")] LLVMOrcOpaqueJITDylibDefinitionGenerator* DG); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcReleaseResourceTracker", ExactSpelling = true)] + public static extern void OrcReleaseResourceTracker([NativeTypeName("LLVMOrcResourceTrackerRef")] LLVMOrcOpaqueResourceTracker* RT); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcResourceTrackerTransferTo", ExactSpelling = true)] + public static extern void OrcResourceTrackerTransferTo([NativeTypeName("LLVMOrcResourceTrackerRef")] LLVMOrcOpaqueResourceTracker* SrcRT, [NativeTypeName("LLVMOrcResourceTrackerRef")] LLVMOrcOpaqueResourceTracker* DstRT); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcResourceTrackerRemove", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcResourceTrackerRemove([NativeTypeName("LLVMOrcResourceTrackerRef")] LLVMOrcOpaqueResourceTracker* RT); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeDefinitionGenerator", ExactSpelling = true)] + public static extern void OrcDisposeDefinitionGenerator([NativeTypeName("LLVMOrcDefinitionGeneratorRef")] LLVMOrcOpaqueDefinitionGenerator* DG); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeMaterializationUnit", ExactSpelling = true)] + public static extern void OrcDisposeMaterializationUnit([NativeTypeName("LLVMOrcMaterializationUnitRef")] LLVMOrcOpaqueMaterializationUnit* MU); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcAbsoluteSymbols", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcMaterializationUnitRef")] + public static extern LLVMOrcOpaqueMaterializationUnit* OrcAbsoluteSymbols([NativeTypeName("LLVMOrcCSymbolMapPairs")] LLVMJITCSymbolMapPair* Syms, [NativeTypeName("size_t")] UIntPtr NumPairs); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcExecutionSessionCreateBareJITDylib", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcJITDylibRef")] + public static extern LLVMOrcOpaqueJITDylib* OrcExecutionSessionCreateBareJITDylib([NativeTypeName("LLVMOrcExecutionSessionRef")] LLVMOrcOpaqueExecutionSession* ES, [NativeTypeName("const char *")] sbyte* Name); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcExecutionSessionCreateJITDylib", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcExecutionSessionCreateJITDylib([NativeTypeName("LLVMOrcExecutionSessionRef")] LLVMOrcOpaqueExecutionSession* ES, [NativeTypeName("LLVMOrcJITDylibRef *")] LLVMOrcOpaqueJITDylib** Result, [NativeTypeName("const char *")] sbyte* Name); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcExecutionSessionGetJITDylibByName", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcJITDylibRef")] + public static extern LLVMOrcOpaqueJITDylib* OrcExecutionSessionGetJITDylibByName([NativeTypeName("LLVMOrcExecutionSessionRef")] LLVMOrcOpaqueExecutionSession* ES, [NativeTypeName("const char *")] sbyte* Name); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcJITDylibCreateResourceTracker", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcResourceTrackerRef")] + public static extern LLVMOrcOpaqueResourceTracker* OrcJITDylibCreateResourceTracker([NativeTypeName("LLVMOrcJITDylibRef")] LLVMOrcOpaqueJITDylib* JD); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcJITDylibGetDefaultResourceTracker", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcResourceTrackerRef")] + public static extern LLVMOrcOpaqueResourceTracker* OrcJITDylibGetDefaultResourceTracker([NativeTypeName("LLVMOrcJITDylibRef")] LLVMOrcOpaqueJITDylib* JD); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcJITDylibDefine", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcJITDylibDefine([NativeTypeName("LLVMOrcJITDylibRef")] LLVMOrcOpaqueJITDylib* JD, [NativeTypeName("LLVMOrcMaterializationUnitRef")] LLVMOrcOpaqueMaterializationUnit* MU); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcJITDylibClear", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcJITDylibClear([NativeTypeName("LLVMOrcJITDylibRef")] LLVMOrcOpaqueJITDylib* JD); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcJITDylibAddGenerator", ExactSpelling = true)] - public static extern void OrcJITDylibAddGenerator([NativeTypeName("LLVMOrcJITDylibRef")] LLVMOrcOpaqueJITDylib* JD, [NativeTypeName("LLVMOrcJITDylibDefinitionGeneratorRef")] LLVMOrcOpaqueJITDylibDefinitionGenerator* DG); + public static extern void OrcJITDylibAddGenerator([NativeTypeName("LLVMOrcJITDylibRef")] LLVMOrcOpaqueJITDylib* JD, [NativeTypeName("LLVMOrcDefinitionGeneratorRef")] LLVMOrcOpaqueDefinitionGenerator* DG); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateCustomCAPIDefinitionGenerator", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcDefinitionGeneratorRef")] + public static extern LLVMOrcOpaqueDefinitionGenerator* OrcCreateCustomCAPIDefinitionGenerator([NativeTypeName("LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction")] IntPtr F, void* Ctx); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateDynamicLibrarySearchGeneratorForProcess", ExactSpelling = true)] [return: NativeTypeName("LLVMErrorRef")] - public static extern LLVMOpaqueError* OrcCreateDynamicLibrarySearchGeneratorForProcess([NativeTypeName("LLVMOrcJITDylibDefinitionGeneratorRef *")] LLVMOrcOpaqueJITDylibDefinitionGenerator** Result, [NativeTypeName("char")] sbyte GlobalPrefx, [NativeTypeName("LLVMOrcSymbolPredicate")] IntPtr Filter, [NativeTypeName("void *")] void* FilterCtx); + public static extern LLVMOpaqueError* OrcCreateDynamicLibrarySearchGeneratorForProcess([NativeTypeName("LLVMOrcDefinitionGeneratorRef *")] LLVMOrcOpaqueDefinitionGenerator** Result, [NativeTypeName("char")] sbyte GlobalPrefx, [NativeTypeName("LLVMOrcSymbolPredicate")] IntPtr Filter, void* FilterCtx); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateNewThreadSafeContext", ExactSpelling = true)] [return: NativeTypeName("LLVMOrcThreadSafeContextRef")] @@ -3920,115 +4062,15 @@ public static unsafe partial class LLVM [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeJITTargetMachineBuilder", ExactSpelling = true)] public static extern void OrcDisposeJITTargetMachineBuilder([NativeTypeName("LLVMOrcJITTargetMachineBuilderRef")] LLVMOrcOpaqueJITTargetMachineBuilder* JTMB); - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateLLJITBuilder", ExactSpelling = true)] - [return: NativeTypeName("LLVMOrcLLJITBuilderRef")] - public static extern LLVMOrcOpaqueLLJITBuilder* OrcCreateLLJITBuilder(); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeLLJITBuilder", ExactSpelling = true)] - public static extern void OrcDisposeLLJITBuilder([NativeTypeName("LLVMOrcLLJITBuilderRef")] LLVMOrcOpaqueLLJITBuilder* Builder); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeObjectLayer", ExactSpelling = true)] + public static extern void OrcDisposeObjectLayer([NativeTypeName("LLVMOrcObjectLayerRef")] LLVMOrcOpaqueObjectLayer* ObjLayer); - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITBuilderSetJITTargetMachineBuilder", ExactSpelling = true)] - public static extern void OrcLLJITBuilderSetJITTargetMachineBuilder([NativeTypeName("LLVMOrcLLJITBuilderRef")] LLVMOrcOpaqueLLJITBuilder* Builder, [NativeTypeName("LLVMOrcJITTargetMachineBuilderRef")] LLVMOrcOpaqueJITTargetMachineBuilder* JTMB); + [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 = "LLVMOrcCreateLLJIT", ExactSpelling = true)] - [return: NativeTypeName("LLVMErrorRef")] - public static extern LLVMOpaqueError* OrcCreateLLJIT([NativeTypeName("LLVMOrcLLJITRef *")] LLVMOrcOpaqueLLJIT** Result, [NativeTypeName("LLVMOrcLLJITBuilderRef")] LLVMOrcOpaqueLLJITBuilder* Builder); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeLLJIT", ExactSpelling = true)] - [return: NativeTypeName("LLVMErrorRef")] - public static extern LLVMOpaqueError* OrcDisposeLLJIT([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITGetExecutionSession", ExactSpelling = true)] - [return: NativeTypeName("LLVMOrcExecutionSessionRef")] - public static extern LLVMOrcOpaqueExecutionSession* OrcLLJITGetExecutionSession([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITGetMainJITDylib", ExactSpelling = true)] - [return: NativeTypeName("LLVMOrcJITDylibRef")] - public static extern LLVMOrcOpaqueJITDylib* OrcLLJITGetMainJITDylib([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITGetTripleString", ExactSpelling = true)] - [return: NativeTypeName("const char *")] - public static extern sbyte* OrcLLJITGetTripleString([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITGetGlobalPrefix", ExactSpelling = true)] - [return: NativeTypeName("char")] - public static extern sbyte OrcLLJITGetGlobalPrefix([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITMangleAndIntern", ExactSpelling = true)] - [return: NativeTypeName("LLVMOrcSymbolStringPoolEntryRef")] - public static extern LLVMOrcQuaqueSymbolStringPoolEntryPtr* OrcLLJITMangleAndIntern([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J, [NativeTypeName("const char *")] sbyte* UnmangledName); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITAddObjectFile", ExactSpelling = true)] - [return: NativeTypeName("LLVMErrorRef")] - public static extern LLVMOpaqueError* OrcLLJITAddObjectFile([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J, [NativeTypeName("LLVMOrcJITDylibRef")] LLVMOrcOpaqueJITDylib* JD, [NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* ObjBuffer); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITAddLLVMIRModule", ExactSpelling = true)] - [return: NativeTypeName("LLVMErrorRef")] - public static extern LLVMOpaqueError* OrcLLJITAddLLVMIRModule([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J, [NativeTypeName("LLVMOrcJITDylibRef")] LLVMOrcOpaqueJITDylib* JD, [NativeTypeName("LLVMOrcThreadSafeModuleRef")] LLVMOrcOpaqueThreadSafeModule* TSM); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITLookup", ExactSpelling = true)] - [return: NativeTypeName("LLVMErrorRef")] - public static extern LLVMOpaqueError* OrcLLJITLookup([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J, [NativeTypeName("LLVMOrcJITTargetAddress *")] ulong* Result, [NativeTypeName("const char *")] sbyte* Name); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateInstance", ExactSpelling = true)] - [return: NativeTypeName("LLVMOrcJITStackRef")] - public static extern LLVMOrcOpaqueJITStack* OrcCreateInstance([NativeTypeName("LLVMTargetMachineRef")] LLVMOpaqueTargetMachine* TM); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcGetErrorMsg", ExactSpelling = true)] - [return: NativeTypeName("const char *")] - public static extern sbyte* OrcGetErrorMsg([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcGetMangledSymbol", ExactSpelling = true)] - public static extern void OrcGetMangledSymbol([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("char **")] sbyte** MangledSymbol, [NativeTypeName("const char *")] sbyte* Symbol); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeMangledSymbol", ExactSpelling = true)] - public static extern void OrcDisposeMangledSymbol([NativeTypeName("char *")] sbyte* MangledSymbol); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateLazyCompileCallback", ExactSpelling = true)] - [return: NativeTypeName("LLVMErrorRef")] - public static extern LLVMOpaqueError* OrcCreateLazyCompileCallback([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMOrcTargetAddress *")] ulong* RetAddr, [NativeTypeName("LLVMOrcLazyCompileCallbackFn")] IntPtr Callback, [NativeTypeName("void *")] void* CallbackCtx); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateIndirectStub", ExactSpelling = true)] - [return: NativeTypeName("LLVMErrorRef")] - public static extern LLVMOpaqueError* OrcCreateIndirectStub([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("const char *")] sbyte* StubName, [NativeTypeName("LLVMOrcTargetAddress")] ulong InitAddr); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcSetIndirectStubPointer", ExactSpelling = true)] - [return: NativeTypeName("LLVMErrorRef")] - public static extern LLVMOpaqueError* OrcSetIndirectStubPointer([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("const char *")] sbyte* StubName, [NativeTypeName("LLVMOrcTargetAddress")] ulong NewAddr); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcAddEagerlyCompiledIR", ExactSpelling = true)] - [return: NativeTypeName("LLVMErrorRef")] - public static extern LLVMOpaqueError* OrcAddEagerlyCompiledIR([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMOrcModuleHandle *")] ulong* RetHandle, [NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* Mod, [NativeTypeName("LLVMOrcSymbolResolverFn")] IntPtr SymbolResolver, [NativeTypeName("void *")] void* SymbolResolverCtx); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcAddLazilyCompiledIR", ExactSpelling = true)] - [return: NativeTypeName("LLVMErrorRef")] - public static extern LLVMOpaqueError* OrcAddLazilyCompiledIR([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMOrcModuleHandle *")] ulong* RetHandle, [NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* Mod, [NativeTypeName("LLVMOrcSymbolResolverFn")] IntPtr SymbolResolver, [NativeTypeName("void *")] void* SymbolResolverCtx); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcAddObjectFile", ExactSpelling = true)] - [return: NativeTypeName("LLVMErrorRef")] - public static extern LLVMOpaqueError* OrcAddObjectFile([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMOrcModuleHandle *")] ulong* RetHandle, [NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* Obj, [NativeTypeName("LLVMOrcSymbolResolverFn")] IntPtr SymbolResolver, [NativeTypeName("void *")] void* SymbolResolverCtx); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcRemoveModule", ExactSpelling = true)] - [return: NativeTypeName("LLVMErrorRef")] - public static extern LLVMOpaqueError* OrcRemoveModule([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMOrcModuleHandle")] ulong H); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcGetSymbolAddress", ExactSpelling = true)] - [return: NativeTypeName("LLVMErrorRef")] - public static extern LLVMOpaqueError* OrcGetSymbolAddress([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMOrcTargetAddress *")] ulong* RetAddr, [NativeTypeName("const char *")] sbyte* SymbolName); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcGetSymbolAddressIn", ExactSpelling = true)] - [return: NativeTypeName("LLVMErrorRef")] - public static extern LLVMOpaqueError* OrcGetSymbolAddressIn([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMOrcTargetAddress *")] ulong* RetAddr, [NativeTypeName("LLVMOrcModuleHandle")] ulong H, [NativeTypeName("const char *")] sbyte* SymbolName); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeInstance", ExactSpelling = true)] - [return: NativeTypeName("LLVMErrorRef")] - public static extern LLVMOpaqueError* OrcDisposeInstance([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcRegisterJITEventListener", ExactSpelling = true)] - public static extern void OrcRegisterJITEventListener([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMJITEventListenerRef")] LLVMOpaqueJITEventListener* L); - - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcUnregisterJITEventListener", ExactSpelling = true)] - public static extern void OrcUnregisterJITEventListener([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMJITEventListenerRef")] LLVMOpaqueJITEventListener* L); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcRTDyldObjectLinkingLayerRegisterJITEventListener", ExactSpelling = true)] + public static extern void OrcRTDyldObjectLinkingLayerRegisterJITEventListener([NativeTypeName("LLVMOrcObjectLayerRef")] LLVMOrcOpaqueObjectLayer* RTDyldObjLinkingLayer, [NativeTypeName("LLVMJITEventListenerRef")] LLVMOpaqueJITEventListener* Listener); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkStringGetData", ExactSpelling = true)] [return: NativeTypeName("const char *")] @@ -4139,11 +4181,10 @@ public static unsafe partial class LLVM public static extern void ParseCommandLineOptions(int argc, [NativeTypeName("const char *const *")] sbyte** argv, [NativeTypeName("const char *")] sbyte* Overview); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSearchForAddressOfSymbol", ExactSpelling = true)] - [return: NativeTypeName("void *")] public static extern void* SearchForAddressOfSymbol([NativeTypeName("const char *")] sbyte* symbolName); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddSymbol", ExactSpelling = true)] - public static extern void AddSymbol([NativeTypeName("const char *")] sbyte* symbolName, [NativeTypeName("void *")] void* symbolValue); + public static extern void AddSymbol([NativeTypeName("const char *")] sbyte* symbolName, void* symbolValue); public static void InitializeAllTargetInfos() { @@ -4527,9 +4568,6 @@ public static int InitializeNativeDisassembler() [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddGlobalOptimizerPass", ExactSpelling = true)] public static extern void AddGlobalOptimizerPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddIPConstantPropagationPass", ExactSpelling = true)] - public static extern void AddIPConstantPropagationPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddPruneEHPass", ExactSpelling = true)] public static extern void AddPruneEHPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); @@ -4540,7 +4578,7 @@ public static int InitializeNativeDisassembler() public static extern void AddInternalizePass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* param0, [NativeTypeName("unsigned int")] uint AllButMain); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddInternalizePassWithMustPreservePredicate", ExactSpelling = true)] - public static extern void AddInternalizePassWithMustPreservePredicate([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM, [NativeTypeName("void *")] void* Context, [NativeTypeName("LLVMBool (*)(LLVMValueRef, void *)")] IntPtr MustPreserve); + public static extern void AddInternalizePassWithMustPreservePredicate([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM, void* Context, [NativeTypeName("LLVMBool (*)(LLVMValueRef, void *)")] IntPtr MustPreserve); [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddStripDeadPrototypesPass", ExactSpelling = true)] public static extern void AddStripDeadPrototypesPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); @@ -4615,6 +4653,9 @@ public static int InitializeNativeDisassembler() [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddIndVarSimplifyPass", ExactSpelling = true)] public static extern void AddIndVarSimplifyPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddInstructionSimplifyPass", ExactSpelling = true)] + public static extern void AddInstructionSimplifyPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddJumpThreadingPass", ExactSpelling = true)] public static extern void AddJumpThreadingPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); @@ -4672,9 +4713,6 @@ public static int InitializeNativeDisassembler() [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddTailCallEliminationPass", ExactSpelling = true)] public static extern void AddTailCallEliminationPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddConstantPropagationPass", ExactSpelling = true)] - public static extern void AddConstantPropagationPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddDemoteMemoryToRegisterPass", ExactSpelling = true)] public static extern void AddDemoteMemoryToRegisterPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); diff --git a/sources/LLVMSharp/Interop/LLVMAtomicOrdering.cs b/sources/LLVMSharp.Interop/LLVMAtomicOrdering.cs similarity index 96% rename from sources/LLVMSharp/Interop/LLVMAtomicOrdering.cs rename to sources/LLVMSharp.Interop/LLVMAtomicOrdering.cs index a5ccadc9..b3a05792 100644 --- a/sources/LLVMSharp/Interop/LLVMAtomicOrdering.cs +++ b/sources/LLVMSharp.Interop/LLVMAtomicOrdering.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMAtomicRMWBinOp.cs b/sources/LLVMSharp.Interop/LLVMAtomicRMWBinOp.cs similarity index 97% rename from sources/LLVMSharp/Interop/LLVMAtomicRMWBinOp.cs rename to sources/LLVMSharp.Interop/LLVMAtomicRMWBinOp.cs index 96dbf384..753a93d7 100644 --- a/sources/LLVMSharp/Interop/LLVMAtomicRMWBinOp.cs +++ b/sources/LLVMSharp.Interop/LLVMAtomicRMWBinOp.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMBinaryType.cs b/sources/LLVMSharp.Interop/LLVMBinaryType.cs similarity index 97% rename from sources/LLVMSharp/Interop/LLVMBinaryType.cs rename to sources/LLVMSharp.Interop/LLVMBinaryType.cs index 67ef5323..bead4de8 100644 --- a/sources/LLVMSharp/Interop/LLVMBinaryType.cs +++ b/sources/LLVMSharp.Interop/LLVMBinaryType.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMByteOrdering.cs b/sources/LLVMSharp.Interop/LLVMByteOrdering.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMByteOrdering.cs rename to sources/LLVMSharp.Interop/LLVMByteOrdering.cs index 35473587..94bb4f5a 100644 --- a/sources/LLVMSharp/Interop/LLVMByteOrdering.cs +++ b/sources/LLVMSharp.Interop/LLVMByteOrdering.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMCallConv.cs b/sources/LLVMSharp.Interop/LLVMCallConv.cs similarity index 98% rename from sources/LLVMSharp/Interop/LLVMCallConv.cs rename to sources/LLVMSharp.Interop/LLVMCallConv.cs index 6796a703..f0075b5a 100644 --- a/sources/LLVMSharp/Interop/LLVMCallConv.cs +++ b/sources/LLVMSharp.Interop/LLVMCallConv.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMCodeGenFileType.cs b/sources/LLVMSharp.Interop/LLVMCodeGenFileType.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMCodeGenFileType.cs rename to sources/LLVMSharp.Interop/LLVMCodeGenFileType.cs index d88c315f..f98f2eed 100644 --- a/sources/LLVMSharp/Interop/LLVMCodeGenFileType.cs +++ b/sources/LLVMSharp.Interop/LLVMCodeGenFileType.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMCodeGenOptLevel.cs b/sources/LLVMSharp.Interop/LLVMCodeGenOptLevel.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMCodeGenOptLevel.cs rename to sources/LLVMSharp.Interop/LLVMCodeGenOptLevel.cs index 44899ea3..23f52bcb 100644 --- a/sources/LLVMSharp/Interop/LLVMCodeGenOptLevel.cs +++ b/sources/LLVMSharp.Interop/LLVMCodeGenOptLevel.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMCodeModel.cs b/sources/LLVMSharp.Interop/LLVMCodeModel.cs similarity index 96% rename from sources/LLVMSharp/Interop/LLVMCodeModel.cs rename to sources/LLVMSharp.Interop/LLVMCodeModel.cs index fc5d50d8..5cb0a2ac 100644 --- a/sources/LLVMSharp/Interop/LLVMCodeModel.cs +++ b/sources/LLVMSharp.Interop/LLVMCodeModel.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMComdat.cs b/sources/LLVMSharp.Interop/LLVMComdat.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMComdat.cs rename to sources/LLVMSharp.Interop/LLVMComdat.cs index d74403fd..7a72570e 100644 --- a/sources/LLVMSharp/Interop/LLVMComdat.cs +++ b/sources/LLVMSharp.Interop/LLVMComdat.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMComdatSelectionKind.cs b/sources/LLVMSharp.Interop/LLVMComdatSelectionKind.cs similarity index 96% rename from sources/LLVMSharp/Interop/LLVMComdatSelectionKind.cs rename to sources/LLVMSharp.Interop/LLVMComdatSelectionKind.cs index 5cfac4aa..a6269170 100644 --- a/sources/LLVMSharp/Interop/LLVMComdatSelectionKind.cs +++ b/sources/LLVMSharp.Interop/LLVMComdatSelectionKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMDIFlags.cs b/sources/LLVMSharp.Interop/LLVMDIFlags.cs similarity index 97% rename from sources/LLVMSharp/Interop/LLVMDIFlags.cs rename to sources/LLVMSharp.Interop/LLVMDIFlags.cs index 7cd3336c..12addace 100644 --- a/sources/LLVMSharp/Interop/LLVMDIFlags.cs +++ b/sources/LLVMSharp.Interop/LLVMDIFlags.cs @@ -1,10 +1,13 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; + namespace LLVMSharp.Interop { + [Flags] public enum LLVMDIFlags { LLVMDIFlagZero = 0, diff --git a/sources/LLVMSharp/Interop/LLVMDLLStorageClass.cs b/sources/LLVMSharp.Interop/LLVMDLLStorageClass.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMDLLStorageClass.cs rename to sources/LLVMSharp.Interop/LLVMDLLStorageClass.cs index 7e61d8c5..b5eea652 100644 --- a/sources/LLVMSharp/Interop/LLVMDLLStorageClass.cs +++ b/sources/LLVMSharp.Interop/LLVMDLLStorageClass.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMDWARFEmissionKind.cs b/sources/LLVMSharp.Interop/LLVMDWARFEmissionKind.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMDWARFEmissionKind.cs rename to sources/LLVMSharp.Interop/LLVMDWARFEmissionKind.cs index 37e42e6b..852d2040 100644 --- a/sources/LLVMSharp/Interop/LLVMDWARFEmissionKind.cs +++ b/sources/LLVMSharp.Interop/LLVMDWARFEmissionKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMDWARFMacinfoRecordType.cs b/sources/LLVMSharp.Interop/LLVMDWARFMacinfoRecordType.cs similarity index 96% rename from sources/LLVMSharp/Interop/LLVMDWARFMacinfoRecordType.cs rename to sources/LLVMSharp.Interop/LLVMDWARFMacinfoRecordType.cs index 233bda27..45425ba7 100644 --- a/sources/LLVMSharp/Interop/LLVMDWARFMacinfoRecordType.cs +++ b/sources/LLVMSharp.Interop/LLVMDWARFMacinfoRecordType.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMDWARFSourceLanguage.cs b/sources/LLVMSharp.Interop/LLVMDWARFSourceLanguage.cs similarity index 98% rename from sources/LLVMSharp/Interop/LLVMDWARFSourceLanguage.cs rename to sources/LLVMSharp.Interop/LLVMDWARFSourceLanguage.cs index e9da4803..87a90bec 100644 --- a/sources/LLVMSharp/Interop/LLVMDWARFSourceLanguage.cs +++ b/sources/LLVMSharp.Interop/LLVMDWARFSourceLanguage.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMDiagnosticHandler.cs b/sources/LLVMSharp.Interop/LLVMDiagnosticHandler.cs similarity index 90% rename from sources/LLVMSharp/Interop/LLVMDiagnosticHandler.cs rename to sources/LLVMSharp.Interop/LLVMDiagnosticHandler.cs index bf886daf..147c06d9 100644 --- a/sources/LLVMSharp/Interop/LLVMDiagnosticHandler.cs +++ b/sources/LLVMSharp.Interop/LLVMDiagnosticHandler.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; @@ -8,5 +8,5 @@ namespace LLVMSharp.Interop { [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void LLVMDiagnosticHandler([NativeTypeName("LLVMDiagnosticInfoRef")] LLVMOpaqueDiagnosticInfo* param0, [NativeTypeName("void *")] void* param1); + public unsafe delegate void LLVMDiagnosticHandler([NativeTypeName("LLVMDiagnosticInfoRef")] LLVMOpaqueDiagnosticInfo* param0, void* param1); } diff --git a/sources/LLVMSharp/Interop/LLVMDiagnosticSeverity.cs b/sources/LLVMSharp.Interop/LLVMDiagnosticSeverity.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMDiagnosticSeverity.cs rename to sources/LLVMSharp.Interop/LLVMDiagnosticSeverity.cs index 230c7430..e62a8e8b 100644 --- a/sources/LLVMSharp/Interop/LLVMDiagnosticSeverity.cs +++ b/sources/LLVMSharp.Interop/LLVMDiagnosticSeverity.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMFatalErrorHandler.cs b/sources/LLVMSharp.Interop/LLVMFatalErrorHandler.cs similarity index 96% rename from sources/LLVMSharp/Interop/LLVMFatalErrorHandler.cs rename to sources/LLVMSharp.Interop/LLVMFatalErrorHandler.cs index d5bab7e1..ae7c6530 100644 --- a/sources/LLVMSharp/Interop/LLVMFatalErrorHandler.cs +++ b/sources/LLVMSharp.Interop/LLVMFatalErrorHandler.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMInlineAsmDialect.cs b/sources/LLVMSharp.Interop/LLVMInlineAsmDialect.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMInlineAsmDialect.cs rename to sources/LLVMSharp.Interop/LLVMInlineAsmDialect.cs index 6f1ed524..ceb5394c 100644 --- a/sources/LLVMSharp/Interop/LLVMInlineAsmDialect.cs +++ b/sources/LLVMSharp.Interop/LLVMInlineAsmDialect.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMIntPredicate.cs b/sources/LLVMSharp.Interop/LLVMIntPredicate.cs similarity index 96% rename from sources/LLVMSharp/Interop/LLVMIntPredicate.cs rename to sources/LLVMSharp.Interop/LLVMIntPredicate.cs index 6dfab392..368f5945 100644 --- a/sources/LLVMSharp/Interop/LLVMIntPredicate.cs +++ b/sources/LLVMSharp.Interop/LLVMIntPredicate.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMJITCSymbolMapPair.cs b/sources/LLVMSharp.Interop/LLVMJITCSymbolMapPair.cs new file mode 100644 index 00000000..16a6346a --- /dev/null +++ b/sources/LLVMSharp.Interop/LLVMJITCSymbolMapPair.cs @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 unsafe partial struct LLVMJITCSymbolMapPair + { + [NativeTypeName("LLVMOrcSymbolStringPoolEntryRef")] + public LLVMOrcOpaqueSymbolStringPoolEntry* Name; + + public LLVMJITEvaluatedSymbol Sym; + } +} diff --git a/sources/LLVMSharp.Interop/LLVMJITEvaluatedSymbol.cs b/sources/LLVMSharp.Interop/LLVMJITEvaluatedSymbol.cs new file mode 100644 index 00000000..79206b9a --- /dev/null +++ b/sources/LLVMSharp.Interop/LLVMJITEvaluatedSymbol.cs @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 partial struct LLVMJITEvaluatedSymbol + { + [NativeTypeName("LLVMOrcJITTargetAddress")] + public ulong Address; + + public LLVMJITSymbolFlags Flags; + } +} diff --git a/sources/LLVMSharp.Interop/LLVMJITSymbolFlags.cs b/sources/LLVMSharp.Interop/LLVMJITSymbolFlags.cs new file mode 100644 index 00000000..d568674c --- /dev/null +++ b/sources/LLVMSharp.Interop/LLVMJITSymbolFlags.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 partial struct LLVMJITSymbolFlags + { + [NativeTypeName("uint8_t")] + public byte GenericFlags; + + [NativeTypeName("uint8_t")] + public byte TargetFlags; + } +} diff --git a/sources/LLVMSharp.Interop/LLVMJITSymbolGenericFlags.cs b/sources/LLVMSharp.Interop/LLVMJITSymbolGenericFlags.cs new file mode 100644 index 00000000..eb2cab6b --- /dev/null +++ b/sources/LLVMSharp.Interop/LLVMJITSymbolGenericFlags.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; + +namespace LLVMSharp.Interop +{ + [Flags] + public enum LLVMJITSymbolGenericFlags : uint + { + LLVMJITSymbolGenericFlagsExported = 1U << 0, + LLVMJITSymbolGenericFlagsWeak = 1U << 1, + } +} diff --git a/sources/LLVMSharp/Interop/LLVMLandingPadClauseTy.cs b/sources/LLVMSharp.Interop/LLVMLandingPadClauseTy.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMLandingPadClauseTy.cs rename to sources/LLVMSharp.Interop/LLVMLandingPadClauseTy.cs index faad99a0..2a1723f5 100644 --- a/sources/LLVMSharp/Interop/LLVMLandingPadClauseTy.cs +++ b/sources/LLVMSharp.Interop/LLVMLandingPadClauseTy.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMLinkage.cs b/sources/LLVMSharp.Interop/LLVMLinkage.cs similarity index 97% rename from sources/LLVMSharp/Interop/LLVMLinkage.cs rename to sources/LLVMSharp.Interop/LLVMLinkage.cs index 50c9438e..8c1ee6da 100644 --- a/sources/LLVMSharp/Interop/LLVMLinkage.cs +++ b/sources/LLVMSharp.Interop/LLVMLinkage.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMLinkerMode.cs b/sources/LLVMSharp.Interop/LLVMLinkerMode.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMLinkerMode.cs rename to sources/LLVMSharp.Interop/LLVMLinkerMode.cs index 5640e3e6..495339c0 100644 --- a/sources/LLVMSharp/Interop/LLVMLinkerMode.cs +++ b/sources/LLVMSharp.Interop/LLVMLinkerMode.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMMCJITCompilerOptions.cs b/sources/LLVMSharp.Interop/LLVMMCJITCompilerOptions.cs similarity index 97% rename from sources/LLVMSharp/Interop/LLVMMCJITCompilerOptions.cs rename to sources/LLVMSharp.Interop/LLVMMCJITCompilerOptions.cs index d324bf89..137ffc25 100644 --- a/sources/LLVMSharp/Interop/LLVMMCJITCompilerOptions.cs +++ b/sources/LLVMSharp.Interop/LLVMMCJITCompilerOptions.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMMemoryManagerAllocateCodeSectionCallback.cs b/sources/LLVMSharp.Interop/LLVMMemoryManagerAllocateCodeSectionCallback.cs similarity index 71% rename from sources/LLVMSharp/Interop/LLVMMemoryManagerAllocateCodeSectionCallback.cs rename to sources/LLVMSharp.Interop/LLVMMemoryManagerAllocateCodeSectionCallback.cs index 98be0faa..2cbe889f 100644 --- a/sources/LLVMSharp/Interop/LLVMMemoryManagerAllocateCodeSectionCallback.cs +++ b/sources/LLVMSharp.Interop/LLVMMemoryManagerAllocateCodeSectionCallback.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; @@ -10,5 +10,5 @@ namespace LLVMSharp.Interop { [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [return: NativeTypeName("uint8_t *")] - public unsafe delegate byte* LLVMMemoryManagerAllocateCodeSectionCallback([NativeTypeName("void *")] void* Opaque, [NativeTypeName("uintptr_t")] UIntPtr Size, [NativeTypeName("unsigned int")] uint Alignment, [NativeTypeName("unsigned int")] uint SectionID, [NativeTypeName("const char *")] sbyte* SectionName); + public unsafe delegate byte* LLVMMemoryManagerAllocateCodeSectionCallback(void* Opaque, [NativeTypeName("uintptr_t")] UIntPtr Size, [NativeTypeName("unsigned int")] uint Alignment, [NativeTypeName("unsigned int")] uint SectionID, [NativeTypeName("const char *")] sbyte* SectionName); } diff --git a/sources/LLVMSharp/Interop/LLVMMemoryManagerAllocateDataSectionCallback.cs b/sources/LLVMSharp.Interop/LLVMMemoryManagerAllocateDataSectionCallback.cs similarity index 68% rename from sources/LLVMSharp/Interop/LLVMMemoryManagerAllocateDataSectionCallback.cs rename to sources/LLVMSharp.Interop/LLVMMemoryManagerAllocateDataSectionCallback.cs index 868e9eb1..5296614d 100644 --- a/sources/LLVMSharp/Interop/LLVMMemoryManagerAllocateDataSectionCallback.cs +++ b/sources/LLVMSharp.Interop/LLVMMemoryManagerAllocateDataSectionCallback.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; @@ -10,5 +10,5 @@ namespace LLVMSharp.Interop { [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [return: NativeTypeName("uint8_t *")] - public unsafe delegate byte* LLVMMemoryManagerAllocateDataSectionCallback([NativeTypeName("void *")] void* Opaque, [NativeTypeName("uintptr_t")] UIntPtr Size, [NativeTypeName("unsigned int")] uint Alignment, [NativeTypeName("unsigned int")] uint SectionID, [NativeTypeName("const char *")] sbyte* SectionName, [NativeTypeName("LLVMBool")] int IsReadOnly); + public unsafe delegate byte* LLVMMemoryManagerAllocateDataSectionCallback(void* Opaque, [NativeTypeName("uintptr_t")] UIntPtr Size, [NativeTypeName("unsigned int")] uint Alignment, [NativeTypeName("unsigned int")] uint SectionID, [NativeTypeName("const char *")] sbyte* SectionName, [NativeTypeName("LLVMBool")] int IsReadOnly); } diff --git a/sources/LLVMSharp/Interop/LLVMMemoryManagerDestroyCallback.cs b/sources/LLVMSharp.Interop/LLVMMemoryManagerDestroyCallback.cs similarity index 90% rename from sources/LLVMSharp/Interop/LLVMMemoryManagerDestroyCallback.cs rename to sources/LLVMSharp.Interop/LLVMMemoryManagerDestroyCallback.cs index 1288826c..c2e132f7 100644 --- a/sources/LLVMSharp/Interop/LLVMMemoryManagerDestroyCallback.cs +++ b/sources/LLVMSharp.Interop/LLVMMemoryManagerDestroyCallback.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; @@ -8,5 +8,5 @@ namespace LLVMSharp.Interop { [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void LLVMMemoryManagerDestroyCallback([NativeTypeName("void *")] void* Opaque); + public unsafe delegate void LLVMMemoryManagerDestroyCallback(void* Opaque); } diff --git a/sources/LLVMSharp/Interop/LLVMMemoryManagerFinalizeMemoryCallback.cs b/sources/LLVMSharp.Interop/LLVMMemoryManagerFinalizeMemoryCallback.cs similarity index 84% rename from sources/LLVMSharp/Interop/LLVMMemoryManagerFinalizeMemoryCallback.cs rename to sources/LLVMSharp.Interop/LLVMMemoryManagerFinalizeMemoryCallback.cs index 0a1e956f..26a78bb1 100644 --- a/sources/LLVMSharp/Interop/LLVMMemoryManagerFinalizeMemoryCallback.cs +++ b/sources/LLVMSharp.Interop/LLVMMemoryManagerFinalizeMemoryCallback.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; @@ -9,5 +9,5 @@ namespace LLVMSharp.Interop { [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [return: NativeTypeName("LLVMBool")] - public unsafe delegate int LLVMMemoryManagerFinalizeMemoryCallback([NativeTypeName("void *")] void* Opaque, [NativeTypeName("char **")] sbyte** ErrMsg); + public unsafe delegate int LLVMMemoryManagerFinalizeMemoryCallback(void* Opaque, [NativeTypeName("char **")] sbyte** ErrMsg); } diff --git a/sources/LLVMSharp/Interop/LLVMModuleFlagBehavior.cs b/sources/LLVMSharp.Interop/LLVMModuleFlagBehavior.cs similarity index 96% rename from sources/LLVMSharp/Interop/LLVMModuleFlagBehavior.cs rename to sources/LLVMSharp.Interop/LLVMModuleFlagBehavior.cs index 0e379471..8e1f3ea2 100644 --- a/sources/LLVMSharp/Interop/LLVMModuleFlagBehavior.cs +++ b/sources/LLVMSharp.Interop/LLVMModuleFlagBehavior.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpInfo1.cs b/sources/LLVMSharp.Interop/LLVMOpInfo1.cs similarity index 96% rename from sources/LLVMSharp/Interop/LLVMOpInfo1.cs rename to sources/LLVMSharp.Interop/LLVMOpInfo1.cs index 56687076..0f7417cd 100644 --- a/sources/LLVMSharp/Interop/LLVMOpInfo1.cs +++ b/sources/LLVMSharp.Interop/LLVMOpInfo1.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOrcLazyCompileCallbackFn.cs b/sources/LLVMSharp.Interop/LLVMOpInfoCallback.cs similarity index 69% rename from sources/LLVMSharp/Interop/LLVMOrcLazyCompileCallbackFn.cs rename to sources/LLVMSharp.Interop/LLVMOpInfoCallback.cs index 935881bf..da971493 100644 --- a/sources/LLVMSharp/Interop/LLVMOrcLazyCompileCallbackFn.cs +++ b/sources/LLVMSharp.Interop/LLVMOpInfoCallback.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; @@ -8,6 +8,5 @@ namespace LLVMSharp.Interop { [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - [return: NativeTypeName("uint64_t")] - public unsafe delegate ulong LLVMOrcLazyCompileCallbackFn([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("void *")] void* CallbackCtx); + public unsafe delegate int LLVMOpInfoCallback(void* DisInfo, [NativeTypeName("uint64_t")] ulong PC, [NativeTypeName("uint64_t")] ulong Offset, [NativeTypeName("uint64_t")] ulong Size, int TagType, void* TagBuf); } diff --git a/sources/LLVMSharp/Interop/LLVMOpInfoSymbol1.cs b/sources/LLVMSharp.Interop/LLVMOpInfoSymbol1.cs similarity index 96% rename from sources/LLVMSharp/Interop/LLVMOpInfoSymbol1.cs rename to sources/LLVMSharp.Interop/LLVMOpInfoSymbol1.cs index 2b3df9a5..b33c8fc9 100644 --- a/sources/LLVMSharp/Interop/LLVMOpInfoSymbol1.cs +++ b/sources/LLVMSharp.Interop/LLVMOpInfoSymbol1.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueAttributeRef.cs b/sources/LLVMSharp.Interop/LLVMOpaqueAttributeRef.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueAttributeRef.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueAttributeRef.cs index af743ff1..fb6b7c71 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueAttributeRef.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueAttributeRef.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueBasicBlock.cs b/sources/LLVMSharp.Interop/LLVMOpaqueBasicBlock.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueBasicBlock.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueBasicBlock.cs index dc821ed3..8c72d21b 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueBasicBlock.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueBasicBlock.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueBinary.cs b/sources/LLVMSharp.Interop/LLVMOpaqueBinary.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueBinary.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueBinary.cs index 9bd98a35..d121e459 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueBinary.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueBinary.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueBuilder.cs b/sources/LLVMSharp.Interop/LLVMOpaqueBuilder.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueBuilder.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueBuilder.cs index a586f90e..f974f506 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueBuilder.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueBuilder.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueContext.cs b/sources/LLVMSharp.Interop/LLVMOpaqueContext.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueContext.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueContext.cs index 89312c9e..dd217f69 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueContext.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueContext.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueDIBuilder.cs b/sources/LLVMSharp.Interop/LLVMOpaqueDIBuilder.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueDIBuilder.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueDIBuilder.cs index d99ba65a..78518c67 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueDIBuilder.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueDIBuilder.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueDiagnosticInfo.cs b/sources/LLVMSharp.Interop/LLVMOpaqueDiagnosticInfo.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueDiagnosticInfo.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueDiagnosticInfo.cs index dcaa22ae..3fcfca6a 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueDiagnosticInfo.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueDiagnosticInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueError.cs b/sources/LLVMSharp.Interop/LLVMOpaqueError.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueError.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueError.cs index 2d731785..efcbf2dc 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueError.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueError.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueExecutionEngine.cs b/sources/LLVMSharp.Interop/LLVMOpaqueExecutionEngine.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueExecutionEngine.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueExecutionEngine.cs index 99e6bbb5..867b2b97 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueExecutionEngine.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueExecutionEngine.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueGenericValue.cs b/sources/LLVMSharp.Interop/LLVMOpaqueGenericValue.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueGenericValue.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueGenericValue.cs index a6bb6996..7dbfa7bc 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueGenericValue.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueGenericValue.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueJITEventListener.cs b/sources/LLVMSharp.Interop/LLVMOpaqueJITEventListener.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueJITEventListener.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueJITEventListener.cs index c7e1440c..27d6214b 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueJITEventListener.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueJITEventListener.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueLTOCodeGenerator.cs b/sources/LLVMSharp.Interop/LLVMOpaqueLTOCodeGenerator.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueLTOCodeGenerator.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueLTOCodeGenerator.cs index 4e23bacb..00526cef 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueLTOCodeGenerator.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueLTOCodeGenerator.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueLTOInput.cs b/sources/LLVMSharp.Interop/LLVMOpaqueLTOInput.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueLTOInput.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueLTOInput.cs index b2009c9a..42551092 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueLTOInput.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueLTOInput.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueLTOModule.cs b/sources/LLVMSharp.Interop/LLVMOpaqueLTOModule.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueLTOModule.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueLTOModule.cs index 046e36ec..a1759245 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueLTOModule.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueLTOModule.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueMCJITMemoryManager.cs b/sources/LLVMSharp.Interop/LLVMOpaqueMCJITMemoryManager.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueMCJITMemoryManager.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueMCJITMemoryManager.cs index 08d08433..e16ff9e3 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueMCJITMemoryManager.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueMCJITMemoryManager.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueMemoryBuffer.cs b/sources/LLVMSharp.Interop/LLVMOpaqueMemoryBuffer.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueMemoryBuffer.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueMemoryBuffer.cs index 1a550bf4..ffd04027 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueMemoryBuffer.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueMemoryBuffer.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueMetadata.cs b/sources/LLVMSharp.Interop/LLVMOpaqueMetadata.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueMetadata.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueMetadata.cs index 67301b05..094877ed 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueMetadata.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueMetadata.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueModule.cs b/sources/LLVMSharp.Interop/LLVMOpaqueModule.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueModule.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueModule.cs index 2c577d3e..e7ca1355 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueModule.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueModule.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueModuleFlagEntry.cs b/sources/LLVMSharp.Interop/LLVMOpaqueModuleFlagEntry.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueModuleFlagEntry.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueModuleFlagEntry.cs index 03e4c065..8a84b991 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueModuleFlagEntry.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueModuleFlagEntry.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueModuleProvider.cs b/sources/LLVMSharp.Interop/LLVMOpaqueModuleProvider.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueModuleProvider.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueModuleProvider.cs index d07f4a9e..d965f921 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueModuleProvider.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueModuleProvider.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueNamedMDNode.cs b/sources/LLVMSharp.Interop/LLVMOpaqueNamedMDNode.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueNamedMDNode.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueNamedMDNode.cs index 7b057832..5eb42ec8 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueNamedMDNode.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueNamedMDNode.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueObjectFile.cs b/sources/LLVMSharp.Interop/LLVMOpaqueObjectFile.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueObjectFile.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueObjectFile.cs index 73303352..740a566b 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueObjectFile.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueObjectFile.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaquePassManager.cs b/sources/LLVMSharp.Interop/LLVMOpaquePassManager.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaquePassManager.cs rename to sources/LLVMSharp.Interop/LLVMOpaquePassManager.cs index 1233a19a..6dbdee10 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaquePassManager.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaquePassManager.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaquePassManagerBuilder.cs b/sources/LLVMSharp.Interop/LLVMOpaquePassManagerBuilder.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaquePassManagerBuilder.cs rename to sources/LLVMSharp.Interop/LLVMOpaquePassManagerBuilder.cs index 915cf35a..9a5cbc86 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaquePassManagerBuilder.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaquePassManagerBuilder.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaquePassRegistry.cs b/sources/LLVMSharp.Interop/LLVMOpaquePassRegistry.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaquePassRegistry.cs rename to sources/LLVMSharp.Interop/LLVMOpaquePassRegistry.cs index 1ee44ded..194898a6 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaquePassRegistry.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaquePassRegistry.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueRelocationIterator.cs b/sources/LLVMSharp.Interop/LLVMOpaqueRelocationIterator.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueRelocationIterator.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueRelocationIterator.cs index 2b43e021..0c382a93 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueRelocationIterator.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueRelocationIterator.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueSectionIterator.cs b/sources/LLVMSharp.Interop/LLVMOpaqueSectionIterator.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueSectionIterator.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueSectionIterator.cs index e5eccf84..a799790e 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueSectionIterator.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueSectionIterator.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueSymbolIterator.cs b/sources/LLVMSharp.Interop/LLVMOpaqueSymbolIterator.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueSymbolIterator.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueSymbolIterator.cs index 4d473898..44045034 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueSymbolIterator.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueSymbolIterator.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueTargetData.cs b/sources/LLVMSharp.Interop/LLVMOpaqueTargetData.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueTargetData.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueTargetData.cs index 4e923701..cdb4f79f 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueTargetData.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueTargetData.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueTargetLibraryInfotData.cs b/sources/LLVMSharp.Interop/LLVMOpaqueTargetLibraryInfotData.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueTargetLibraryInfotData.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueTargetLibraryInfotData.cs index 69b64aae..bcb4a79c 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueTargetLibraryInfotData.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueTargetLibraryInfotData.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueTargetMachine.cs b/sources/LLVMSharp.Interop/LLVMOpaqueTargetMachine.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueTargetMachine.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueTargetMachine.cs index 53008cc7..f5169568 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueTargetMachine.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueTargetMachine.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueThinLTOCodeGenerator.cs b/sources/LLVMSharp.Interop/LLVMOpaqueThinLTOCodeGenerator.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueThinLTOCodeGenerator.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueThinLTOCodeGenerator.cs index f5529454..5edcfc53 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueThinLTOCodeGenerator.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueThinLTOCodeGenerator.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueType.cs b/sources/LLVMSharp.Interop/LLVMOpaqueType.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueType.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueType.cs index e62af0d8..b4b68b24 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueType.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueType.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueUse.cs b/sources/LLVMSharp.Interop/LLVMOpaqueUse.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueUse.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueUse.cs index 1b7be533..cb144b26 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueUse.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueUse.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueValue.cs b/sources/LLVMSharp.Interop/LLVMOpaqueValue.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueValue.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueValue.cs index edd61894..b86a98c7 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueValue.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueValue.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpaqueValueMetadataEntry.cs b/sources/LLVMSharp.Interop/LLVMOpaqueValueMetadataEntry.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOpaqueValueMetadataEntry.cs rename to sources/LLVMSharp.Interop/LLVMOpaqueValueMetadataEntry.cs index 6ac38522..4af17747 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueValueMetadataEntry.cs +++ b/sources/LLVMSharp.Interop/LLVMOpaqueValueMetadataEntry.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOpcode.cs b/sources/LLVMSharp.Interop/LLVMOpcode.cs similarity index 98% rename from sources/LLVMSharp/Interop/LLVMOpcode.cs rename to sources/LLVMSharp.Interop/LLVMOpcode.cs index b078e16a..17b1a7a5 100644 --- a/sources/LLVMSharp/Interop/LLVMOpcode.cs +++ b/sources/LLVMSharp.Interop/LLVMOpcode.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction.cs b/sources/LLVMSharp.Interop/LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction.cs new file mode 100644 index 00000000..88116383 --- /dev/null +++ b/sources/LLVMSharp.Interop/LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction.cs @@ -0,0 +1,14 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop +{ + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + [return: NativeTypeName("LLVMErrorRef")] + public unsafe delegate LLVMOpaqueError* LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction([NativeTypeName("LLVMOrcDefinitionGeneratorRef")] LLVMOrcOpaqueDefinitionGenerator* GeneratorObj, void* Ctx, [NativeTypeName("LLVMOrcLookupStateRef *")] LLVMOrcOpaqueLookupState** LookupState, LLVMOrcLookupKind Kind, [NativeTypeName("LLVMOrcJITDylibRef")] LLVMOrcOpaqueJITDylib* JD, LLVMOrcJITDylibLookupFlags JDLookupFlags, [NativeTypeName("LLVMOrcCLookupSet")] LLVMOrcCLookupSetElement* LookupSet, [NativeTypeName("size_t")] UIntPtr LookupSetSize); +} diff --git a/sources/LLVMSharp.Interop/LLVMOrcCLookupSetElement.cs b/sources/LLVMSharp.Interop/LLVMOrcCLookupSetElement.cs new file mode 100644 index 00000000..24068b22 --- /dev/null +++ b/sources/LLVMSharp.Interop/LLVMOrcCLookupSetElement.cs @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 unsafe partial struct LLVMOrcCLookupSetElement + { + [NativeTypeName("LLVMOrcSymbolStringPoolEntryRef")] + public LLVMOrcOpaqueSymbolStringPoolEntry* Name; + + public LLVMOrcSymbolLookupFlags LookupFlags; + } +} diff --git a/sources/LLVMSharp/Interop/LLVMOrcSymbolResolverFn.cs b/sources/LLVMSharp.Interop/LLVMOrcErrorReporterFunction.cs similarity index 72% rename from sources/LLVMSharp/Interop/LLVMOrcSymbolResolverFn.cs rename to sources/LLVMSharp.Interop/LLVMOrcErrorReporterFunction.cs index 98acc3de..d777633c 100644 --- a/sources/LLVMSharp/Interop/LLVMOrcSymbolResolverFn.cs +++ b/sources/LLVMSharp.Interop/LLVMOrcErrorReporterFunction.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; @@ -8,6 +8,5 @@ namespace LLVMSharp.Interop { [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - [return: NativeTypeName("uint64_t")] - public unsafe delegate ulong LLVMOrcSymbolResolverFn([NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("void *")] void* LookupCtx); + public unsafe delegate void LLVMOrcErrorReporterFunction(void* Ctx, [NativeTypeName("LLVMErrorRef")] LLVMOpaqueError* Err); } diff --git a/sources/LLVMSharp.Interop/LLVMOrcJITDylibLookupFlags.cs b/sources/LLVMSharp.Interop/LLVMOrcJITDylibLookupFlags.cs new file mode 100644 index 00000000..dfced71b --- /dev/null +++ b/sources/LLVMSharp.Interop/LLVMOrcJITDylibLookupFlags.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; + +namespace LLVMSharp.Interop +{ + [Flags] + public enum LLVMOrcJITDylibLookupFlags + { + LLVMOrcJITDylibLookupFlagsMatchExportedSymbolsOnly, + LLVMOrcJITDylibLookupFlagsMatchAllSymbols, + } +} diff --git a/sources/LLVMSharp/Interop/LLVMOpInfoCallback.cs b/sources/LLVMSharp.Interop/LLVMOrcLLJITBuilderObjectLinkingLayerCreatorFunction.cs similarity index 63% rename from sources/LLVMSharp/Interop/LLVMOpInfoCallback.cs rename to sources/LLVMSharp.Interop/LLVMOrcLLJITBuilderObjectLinkingLayerCreatorFunction.cs index 83958308..a7d05cd2 100644 --- a/sources/LLVMSharp/Interop/LLVMOpInfoCallback.cs +++ b/sources/LLVMSharp.Interop/LLVMOrcLLJITBuilderObjectLinkingLayerCreatorFunction.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; @@ -8,5 +8,6 @@ namespace LLVMSharp.Interop { [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate int LLVMOpInfoCallback([NativeTypeName("void *")] void* DisInfo, [NativeTypeName("uint64_t")] ulong PC, [NativeTypeName("uint64_t")] ulong Offset, [NativeTypeName("uint64_t")] ulong Size, int TagType, [NativeTypeName("void *")] void* TagBuf); + [return: NativeTypeName("LLVMOrcObjectLayerRef")] + public unsafe delegate LLVMOrcOpaqueObjectLayer* LLVMOrcLLJITBuilderObjectLinkingLayerCreatorFunction(void* Ctx, [NativeTypeName("LLVMOrcExecutionSessionRef")] LLVMOrcOpaqueExecutionSession* ES, [NativeTypeName("const char *")] sbyte* Triple); } diff --git a/sources/LLVMSharp.Interop/LLVMOrcLookupKind.cs b/sources/LLVMSharp.Interop/LLVMOrcLookupKind.cs new file mode 100644 index 00000000..bdc1f919 --- /dev/null +++ b/sources/LLVMSharp.Interop/LLVMOrcLookupKind.cs @@ -0,0 +1,13 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 LLVMOrcLookupKind + { + LLVMOrcLookupKindStatic, + LLVMOrcLookupKindDLSym, + } +} diff --git a/sources/LLVMSharp/Interop/LLVMOrcQuaqueSymbolStringPoolEntryPtr.cs b/sources/LLVMSharp.Interop/LLVMOrcOpaqueDefinitionGenerator.cs similarity index 84% rename from sources/LLVMSharp/Interop/LLVMOrcQuaqueSymbolStringPoolEntryPtr.cs rename to sources/LLVMSharp.Interop/LLVMOrcOpaqueDefinitionGenerator.cs index 94e7b91a..a69aa04c 100644 --- a/sources/LLVMSharp/Interop/LLVMOrcQuaqueSymbolStringPoolEntryPtr.cs +++ b/sources/LLVMSharp.Interop/LLVMOrcOpaqueDefinitionGenerator.cs @@ -1,11 +1,11 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 partial struct LLVMOrcQuaqueSymbolStringPoolEntryPtr + public partial struct LLVMOrcOpaqueDefinitionGenerator { } } diff --git a/sources/LLVMSharp/Interop/LLVMOrcOpaqueExecutionSession.cs b/sources/LLVMSharp.Interop/LLVMOrcOpaqueExecutionSession.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOrcOpaqueExecutionSession.cs rename to sources/LLVMSharp.Interop/LLVMOrcOpaqueExecutionSession.cs index a306c3bb..29189ced 100644 --- a/sources/LLVMSharp/Interop/LLVMOrcOpaqueExecutionSession.cs +++ b/sources/LLVMSharp.Interop/LLVMOrcOpaqueExecutionSession.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOrcOpaqueJITDylib.cs b/sources/LLVMSharp.Interop/LLVMOrcOpaqueJITDylib.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOrcOpaqueJITDylib.cs rename to sources/LLVMSharp.Interop/LLVMOrcOpaqueJITDylib.cs index ad5affe3..48398a20 100644 --- a/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITDylib.cs +++ b/sources/LLVMSharp.Interop/LLVMOrcOpaqueJITDylib.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOrcOpaqueJITTargetMachineBuilder.cs b/sources/LLVMSharp.Interop/LLVMOrcOpaqueJITTargetMachineBuilder.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOrcOpaqueJITTargetMachineBuilder.cs rename to sources/LLVMSharp.Interop/LLVMOrcOpaqueJITTargetMachineBuilder.cs index c497b449..5da95bb5 100644 --- a/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITTargetMachineBuilder.cs +++ b/sources/LLVMSharp.Interop/LLVMOrcOpaqueJITTargetMachineBuilder.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOrcOpaqueLLJIT.cs b/sources/LLVMSharp.Interop/LLVMOrcOpaqueLLJIT.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOrcOpaqueLLJIT.cs rename to sources/LLVMSharp.Interop/LLVMOrcOpaqueLLJIT.cs index 70d65aaa..def67537 100644 --- a/sources/LLVMSharp/Interop/LLVMOrcOpaqueLLJIT.cs +++ b/sources/LLVMSharp.Interop/LLVMOrcOpaqueLLJIT.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOrcOpaqueLLJITBuilder.cs b/sources/LLVMSharp.Interop/LLVMOrcOpaqueLLJITBuilder.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOrcOpaqueLLJITBuilder.cs rename to sources/LLVMSharp.Interop/LLVMOrcOpaqueLLJITBuilder.cs index 7bd5b95b..46ead461 100644 --- a/sources/LLVMSharp/Interop/LLVMOrcOpaqueLLJITBuilder.cs +++ b/sources/LLVMSharp.Interop/LLVMOrcOpaqueLLJITBuilder.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOrcOpaqueJITStack.cs b/sources/LLVMSharp.Interop/LLVMOrcOpaqueLookupState.cs similarity index 86% rename from sources/LLVMSharp/Interop/LLVMOrcOpaqueJITStack.cs rename to sources/LLVMSharp.Interop/LLVMOrcOpaqueLookupState.cs index 7c13fe6d..ace62ee4 100644 --- a/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITStack.cs +++ b/sources/LLVMSharp.Interop/LLVMOrcOpaqueLookupState.cs @@ -1,11 +1,11 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 partial struct LLVMOrcOpaqueJITStack + public partial struct LLVMOrcOpaqueLookupState { } } diff --git a/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITDylibDefinitionGenerator.cs b/sources/LLVMSharp.Interop/LLVMOrcOpaqueMaterializationUnit.cs similarity index 83% rename from sources/LLVMSharp/Interop/LLVMOrcOpaqueJITDylibDefinitionGenerator.cs rename to sources/LLVMSharp.Interop/LLVMOrcOpaqueMaterializationUnit.cs index 14c22a5e..7906bf00 100644 --- a/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITDylibDefinitionGenerator.cs +++ b/sources/LLVMSharp.Interop/LLVMOrcOpaqueMaterializationUnit.cs @@ -1,11 +1,11 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 partial struct LLVMOrcOpaqueJITDylibDefinitionGenerator + public partial struct LLVMOrcOpaqueMaterializationUnit { } } diff --git a/sources/LLVMSharp.Interop/LLVMOrcOpaqueObjectLayer.cs b/sources/LLVMSharp.Interop/LLVMOrcOpaqueObjectLayer.cs new file mode 100644 index 00000000..3189b34c --- /dev/null +++ b/sources/LLVMSharp.Interop/LLVMOrcOpaqueObjectLayer.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 partial struct LLVMOrcOpaqueObjectLayer + { + } +} diff --git a/sources/LLVMSharp.Interop/LLVMOrcOpaqueResourceTracker.cs b/sources/LLVMSharp.Interop/LLVMOrcOpaqueResourceTracker.cs new file mode 100644 index 00000000..80b434f7 --- /dev/null +++ b/sources/LLVMSharp.Interop/LLVMOrcOpaqueResourceTracker.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 partial struct LLVMOrcOpaqueResourceTracker + { + } +} diff --git a/sources/LLVMSharp.Interop/LLVMOrcOpaqueSymbolStringPool.cs b/sources/LLVMSharp.Interop/LLVMOrcOpaqueSymbolStringPool.cs new file mode 100644 index 00000000..63936508 --- /dev/null +++ b/sources/LLVMSharp.Interop/LLVMOrcOpaqueSymbolStringPool.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 partial struct LLVMOrcOpaqueSymbolStringPool + { + } +} diff --git a/sources/LLVMSharp.Interop/LLVMOrcOpaqueSymbolStringPoolEntry.cs b/sources/LLVMSharp.Interop/LLVMOrcOpaqueSymbolStringPoolEntry.cs new file mode 100644 index 00000000..117d98dd --- /dev/null +++ b/sources/LLVMSharp.Interop/LLVMOrcOpaqueSymbolStringPoolEntry.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 partial struct LLVMOrcOpaqueSymbolStringPoolEntry + { + } +} diff --git a/sources/LLVMSharp/Interop/LLVMOrcOpaqueThreadSafeContext.cs b/sources/LLVMSharp.Interop/LLVMOrcOpaqueThreadSafeContext.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOrcOpaqueThreadSafeContext.cs rename to sources/LLVMSharp.Interop/LLVMOrcOpaqueThreadSafeContext.cs index ed38c20b..f761d3af 100644 --- a/sources/LLVMSharp/Interop/LLVMOrcOpaqueThreadSafeContext.cs +++ b/sources/LLVMSharp.Interop/LLVMOrcOpaqueThreadSafeContext.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOrcOpaqueThreadSafeModule.cs b/sources/LLVMSharp.Interop/LLVMOrcOpaqueThreadSafeModule.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMOrcOpaqueThreadSafeModule.cs rename to sources/LLVMSharp.Interop/LLVMOrcOpaqueThreadSafeModule.cs index 78cfbe51..5433540d 100644 --- a/sources/LLVMSharp/Interop/LLVMOrcOpaqueThreadSafeModule.cs +++ b/sources/LLVMSharp.Interop/LLVMOrcOpaqueThreadSafeModule.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMOrcSymbolLookupFlags.cs b/sources/LLVMSharp.Interop/LLVMOrcSymbolLookupFlags.cs new file mode 100644 index 00000000..ab8d99eb --- /dev/null +++ b/sources/LLVMSharp.Interop/LLVMOrcSymbolLookupFlags.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; + +namespace LLVMSharp.Interop +{ + [Flags] + public enum LLVMOrcSymbolLookupFlags + { + LLVMOrcSymbolLookupFlagsRequiredSymbol, + LLVMOrcSymbolLookupFlagsWeaklyReferencedSymbol, + } +} diff --git a/sources/LLVMSharp/Interop/LLVMOrcSymbolPredicate.cs b/sources/LLVMSharp.Interop/LLVMOrcSymbolPredicate.cs similarity index 72% rename from sources/LLVMSharp/Interop/LLVMOrcSymbolPredicate.cs rename to sources/LLVMSharp.Interop/LLVMOrcSymbolPredicate.cs index 8eaecab6..a3d5caca 100644 --- a/sources/LLVMSharp/Interop/LLVMOrcSymbolPredicate.cs +++ b/sources/LLVMSharp.Interop/LLVMOrcSymbolPredicate.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; @@ -8,5 +8,5 @@ namespace LLVMSharp.Interop { [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate int LLVMOrcSymbolPredicate([NativeTypeName("LLVMOrcSymbolStringPoolEntryRef")] LLVMOrcQuaqueSymbolStringPoolEntryPtr* Sym, [NativeTypeName("void *")] void* Ctx); + public unsafe delegate int LLVMOrcSymbolPredicate(void* Ctx, [NativeTypeName("LLVMOrcSymbolStringPoolEntryRef")] LLVMOrcOpaqueSymbolStringPoolEntry* Sym); } diff --git a/sources/LLVMSharp/Interop/LLVMRealPredicate.cs b/sources/LLVMSharp.Interop/LLVMRealPredicate.cs similarity index 96% rename from sources/LLVMSharp/Interop/LLVMRealPredicate.cs rename to sources/LLVMSharp.Interop/LLVMRealPredicate.cs index cf54ec48..01d45c4e 100644 --- a/sources/LLVMSharp/Interop/LLVMRealPredicate.cs +++ b/sources/LLVMSharp.Interop/LLVMRealPredicate.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMRelocMode.cs b/sources/LLVMSharp.Interop/LLVMRelocMode.cs similarity index 96% rename from sources/LLVMSharp/Interop/LLVMRelocMode.cs rename to sources/LLVMSharp.Interop/LLVMRelocMode.cs index 0fe072f3..086b3c65 100644 --- a/sources/LLVMSharp/Interop/LLVMRelocMode.cs +++ b/sources/LLVMSharp.Interop/LLVMRelocMode.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMRemarkOpaqueArg.cs b/sources/LLVMSharp.Interop/LLVMRemarkOpaqueArg.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMRemarkOpaqueArg.cs rename to sources/LLVMSharp.Interop/LLVMRemarkOpaqueArg.cs index 819c70d2..5f840b62 100644 --- a/sources/LLVMSharp/Interop/LLVMRemarkOpaqueArg.cs +++ b/sources/LLVMSharp.Interop/LLVMRemarkOpaqueArg.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMRemarkOpaqueDebugLoc.cs b/sources/LLVMSharp.Interop/LLVMRemarkOpaqueDebugLoc.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMRemarkOpaqueDebugLoc.cs rename to sources/LLVMSharp.Interop/LLVMRemarkOpaqueDebugLoc.cs index 03c3678b..634bbd94 100644 --- a/sources/LLVMSharp/Interop/LLVMRemarkOpaqueDebugLoc.cs +++ b/sources/LLVMSharp.Interop/LLVMRemarkOpaqueDebugLoc.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMRemarkOpaqueEntry.cs b/sources/LLVMSharp.Interop/LLVMRemarkOpaqueEntry.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMRemarkOpaqueEntry.cs rename to sources/LLVMSharp.Interop/LLVMRemarkOpaqueEntry.cs index 1e16b271..2a333589 100644 --- a/sources/LLVMSharp/Interop/LLVMRemarkOpaqueEntry.cs +++ b/sources/LLVMSharp.Interop/LLVMRemarkOpaqueEntry.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMRemarkOpaqueParser.cs b/sources/LLVMSharp.Interop/LLVMRemarkOpaqueParser.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMRemarkOpaqueParser.cs rename to sources/LLVMSharp.Interop/LLVMRemarkOpaqueParser.cs index f9f06c1a..1b322b1d 100644 --- a/sources/LLVMSharp/Interop/LLVMRemarkOpaqueParser.cs +++ b/sources/LLVMSharp.Interop/LLVMRemarkOpaqueParser.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMRemarkOpaqueString.cs b/sources/LLVMSharp.Interop/LLVMRemarkOpaqueString.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMRemarkOpaqueString.cs rename to sources/LLVMSharp.Interop/LLVMRemarkOpaqueString.cs index e5f6e2f8..0bd51321 100644 --- a/sources/LLVMSharp/Interop/LLVMRemarkOpaqueString.cs +++ b/sources/LLVMSharp.Interop/LLVMRemarkOpaqueString.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMRemarkType.cs b/sources/LLVMSharp.Interop/LLVMRemarkType.cs similarity index 96% rename from sources/LLVMSharp/Interop/LLVMRemarkType.cs rename to sources/LLVMSharp.Interop/LLVMRemarkType.cs index 547a5de6..90c920f2 100644 --- a/sources/LLVMSharp/Interop/LLVMRemarkType.cs +++ b/sources/LLVMSharp.Interop/LLVMRemarkType.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMSharp.Interop.csproj b/sources/LLVMSharp.Interop/LLVMSharp.Interop.csproj new file mode 100644 index 00000000..b0a6ad85 --- /dev/null +++ b/sources/LLVMSharp.Interop/LLVMSharp.Interop.csproj @@ -0,0 +1,21 @@ + + + + + net5.0;netcoreapp3.1;netstandard2.0 + + + + + + + + + + + + + + + + diff --git a/sources/LLVMSharp/Interop/LLVMSymbolLookupCallback.cs b/sources/LLVMSharp.Interop/LLVMSymbolLookupCallback.cs similarity index 64% rename from sources/LLVMSharp/Interop/LLVMSymbolLookupCallback.cs rename to sources/LLVMSharp.Interop/LLVMSymbolLookupCallback.cs index 617bd99b..85129047 100644 --- a/sources/LLVMSharp/Interop/LLVMSymbolLookupCallback.cs +++ b/sources/LLVMSharp.Interop/LLVMSymbolLookupCallback.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; @@ -9,5 +9,5 @@ namespace LLVMSharp.Interop { [UnmanagedFunctionPointer(CallingConvention.Cdecl)] [return: NativeTypeName("const char *")] - public unsafe delegate sbyte* LLVMSymbolLookupCallback([NativeTypeName("void *")] void* DisInfo, [NativeTypeName("uint64_t")] ulong ReferenceValue, [NativeTypeName("uint64_t *")] ulong* ReferenceType, [NativeTypeName("uint64_t")] ulong ReferencePC, [NativeTypeName("const char **")] sbyte** ReferenceName); + public unsafe delegate sbyte* LLVMSymbolLookupCallback(void* DisInfo, [NativeTypeName("uint64_t")] ulong ReferenceValue, [NativeTypeName("uint64_t *")] ulong* ReferenceType, [NativeTypeName("uint64_t")] ulong ReferencePC, [NativeTypeName("const char **")] sbyte** ReferenceName); } diff --git a/sources/LLVMSharp/Interop/LLVMTarget.cs b/sources/LLVMSharp.Interop/LLVMTarget.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMTarget.cs rename to sources/LLVMSharp.Interop/LLVMTarget.cs index cfc662fb..7208febf 100644 --- a/sources/LLVMSharp/Interop/LLVMTarget.cs +++ b/sources/LLVMSharp.Interop/LLVMTarget.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMThreadLocalMode.cs b/sources/LLVMSharp.Interop/LLVMThreadLocalMode.cs similarity index 96% rename from sources/LLVMSharp/Interop/LLVMThreadLocalMode.cs rename to sources/LLVMSharp.Interop/LLVMThreadLocalMode.cs index d0ff31ca..d755d855 100644 --- a/sources/LLVMSharp/Interop/LLVMThreadLocalMode.cs +++ b/sources/LLVMSharp.Interop/LLVMThreadLocalMode.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMTypeKind.cs b/sources/LLVMSharp.Interop/LLVMTypeKind.cs similarity index 94% rename from sources/LLVMSharp/Interop/LLVMTypeKind.cs rename to sources/LLVMSharp.Interop/LLVMTypeKind.cs index e52e5736..843519a8 100644 --- a/sources/LLVMSharp/Interop/LLVMTypeKind.cs +++ b/sources/LLVMSharp.Interop/LLVMTypeKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 @@ -26,5 +26,6 @@ public enum LLVMTypeKind LLVMTokenTypeKind, LLVMScalableVectorTypeKind, LLVMBFloatTypeKind, + LLVMX86_AMXTypeKind, } } diff --git a/sources/LLVMSharp/Interop/LLVMUnnamedAddr.cs b/sources/LLVMSharp.Interop/LLVMUnnamedAddr.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMUnnamedAddr.cs rename to sources/LLVMSharp.Interop/LLVMUnnamedAddr.cs index 34d56087..0f4b6a62 100644 --- a/sources/LLVMSharp/Interop/LLVMUnnamedAddr.cs +++ b/sources/LLVMSharp.Interop/LLVMUnnamedAddr.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMValueKind.cs b/sources/LLVMSharp.Interop/LLVMValueKind.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMValueKind.cs rename to sources/LLVMSharp.Interop/LLVMValueKind.cs index 8a2276fd..e792dac6 100644 --- a/sources/LLVMSharp/Interop/LLVMValueKind.cs +++ b/sources/LLVMSharp.Interop/LLVMValueKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 @@ -32,5 +32,6 @@ public enum LLVMValueKind LLVMMetadataAsValueValueKind, LLVMInlineAsmValueKind, LLVMInstructionValueKind, + LLVMPoisonValueValueKind, } } diff --git a/sources/LLVMSharp/Interop/LLVMVerifierFailureAction.cs b/sources/LLVMSharp.Interop/LLVMVerifierFailureAction.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMVerifierFailureAction.cs rename to sources/LLVMSharp.Interop/LLVMVerifierFailureAction.cs index 5b458181..b7b20adc 100644 --- a/sources/LLVMSharp/Interop/LLVMVerifierFailureAction.cs +++ b/sources/LLVMSharp.Interop/LLVMVerifierFailureAction.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMVisibility.cs b/sources/LLVMSharp.Interop/LLVMVisibility.cs similarity index 95% rename from sources/LLVMSharp/Interop/LLVMVisibility.cs rename to sources/LLVMSharp.Interop/LLVMVisibility.cs index 5b5b4d0c..d67fa0b4 100644 --- a/sources/LLVMSharp/Interop/LLVMVisibility.cs +++ b/sources/LLVMSharp.Interop/LLVMVisibility.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/LLVMYieldCallback.cs b/sources/LLVMSharp.Interop/LLVMYieldCallback.cs similarity index 84% rename from sources/LLVMSharp/Interop/LLVMYieldCallback.cs rename to sources/LLVMSharp.Interop/LLVMYieldCallback.cs index cc7cabd7..32873454 100644 --- a/sources/LLVMSharp/Interop/LLVMYieldCallback.cs +++ b/sources/LLVMSharp.Interop/LLVMYieldCallback.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; @@ -8,5 +8,5 @@ namespace LLVMSharp.Interop { [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void LLVMYieldCallback([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* param0, [NativeTypeName("void *")] void* param1); + public unsafe delegate void LLVMYieldCallback([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* param0, void* param1); } diff --git a/sources/LLVMSharp/Interop/LTOObjectBuffer.cs b/sources/LLVMSharp.Interop/LTOObjectBuffer.cs similarity index 96% rename from sources/LLVMSharp/Interop/LTOObjectBuffer.cs rename to sources/LLVMSharp.Interop/LTOObjectBuffer.cs index f8ac2b40..cf092dcf 100644 --- a/sources/LLVMSharp/Interop/LTOObjectBuffer.cs +++ b/sources/LLVMSharp.Interop/LTOObjectBuffer.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/lto_codegen_diagnostic_severity_t.cs b/sources/LLVMSharp.Interop/lto_codegen_diagnostic_severity_t.cs similarity index 95% rename from sources/LLVMSharp/Interop/lto_codegen_diagnostic_severity_t.cs rename to sources/LLVMSharp.Interop/lto_codegen_diagnostic_severity_t.cs index 23f8a305..c1974d21 100644 --- a/sources/LLVMSharp/Interop/lto_codegen_diagnostic_severity_t.cs +++ b/sources/LLVMSharp.Interop/lto_codegen_diagnostic_severity_t.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/lto_codegen_model.cs b/sources/LLVMSharp.Interop/lto_codegen_model.cs similarity index 96% rename from sources/LLVMSharp/Interop/lto_codegen_model.cs rename to sources/LLVMSharp.Interop/lto_codegen_model.cs index 2812975d..7473057a 100644 --- a/sources/LLVMSharp/Interop/lto_codegen_model.cs +++ b/sources/LLVMSharp.Interop/lto_codegen_model.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/lto_debug_model.cs b/sources/LLVMSharp.Interop/lto_debug_model.cs similarity index 95% rename from sources/LLVMSharp/Interop/lto_debug_model.cs rename to sources/LLVMSharp.Interop/lto_debug_model.cs index a104454f..00a221ea 100644 --- a/sources/LLVMSharp/Interop/lto_debug_model.cs +++ b/sources/LLVMSharp.Interop/lto_debug_model.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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/lto_diagnostic_handler_t.cs b/sources/LLVMSharp.Interop/lto_diagnostic_handler_t.cs similarity index 89% rename from sources/LLVMSharp/Interop/lto_diagnostic_handler_t.cs rename to sources/LLVMSharp.Interop/lto_diagnostic_handler_t.cs index fa3b92b1..4c0a10db 100644 --- a/sources/LLVMSharp/Interop/lto_diagnostic_handler_t.cs +++ b/sources/LLVMSharp.Interop/lto_diagnostic_handler_t.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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; @@ -8,5 +8,5 @@ namespace LLVMSharp.Interop { [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void lto_diagnostic_handler_t(lto_codegen_diagnostic_severity_t severity, [NativeTypeName("const char *")] sbyte* diag, [NativeTypeName("void *")] void* ctxt); + public unsafe delegate void lto_diagnostic_handler_t(lto_codegen_diagnostic_severity_t severity, [NativeTypeName("const char *")] sbyte* diag, void* ctxt); } diff --git a/sources/LLVMSharp/Interop/lto_symbol_attributes.cs b/sources/LLVMSharp.Interop/lto_symbol_attributes.cs similarity index 98% rename from sources/LLVMSharp/Interop/lto_symbol_attributes.cs rename to sources/LLVMSharp.Interop/lto_symbol_attributes.cs index 5aa00bec..f0a68354 100644 --- a/sources/LLVMSharp/Interop/lto_symbol_attributes.cs +++ b/sources/LLVMSharp.Interop/lto_symbol_attributes.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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.Extensions/LLVMOrcJITStackRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMOrcJITStackRef.cs deleted file mode 100644 index e056f87a..00000000 --- a/sources/LLVMSharp/Interop.Extensions/LLVMOrcJITStackRef.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. - -using System; - -namespace LLVMSharp.Interop -{ - public unsafe partial struct LLVMOrcJITStackRef : IEquatable - { - public IntPtr Handle; - - public LLVMOrcJITStackRef(IntPtr handle) - { - Handle = handle; - } - - public static implicit operator LLVMOrcJITStackRef(LLVMOrcOpaqueJITStack* value) => new LLVMOrcJITStackRef((IntPtr)value); - - public static implicit operator LLVMOrcOpaqueJITStack*(LLVMOrcJITStackRef value) => (LLVMOrcOpaqueJITStack*)value.Handle; - - public static bool operator ==(LLVMOrcJITStackRef left, LLVMOrcJITStackRef right) => left.Handle == right.Handle; - - public static bool operator !=(LLVMOrcJITStackRef left, LLVMOrcJITStackRef right) => !(left == right); - - public override bool Equals(object obj) => (obj is LLVMOrcJITStackRef other) && Equals(other); - - public bool Equals(LLVMOrcJITStackRef other) => this == other; - - public override int GetHashCode() => Handle.GetHashCode(); - - public override string ToString() => $"{nameof(LLVMOrcJITStackRef)}: {Handle:X}"; - } -} diff --git a/sources/LLVMSharp/Interop/llvm_lto_status.cs b/sources/LLVMSharp/Interop/llvm_lto_status.cs deleted file mode 100644 index 63709d29..00000000 --- a/sources/LLVMSharp/Interop/llvm_lto_status.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. - -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/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 llvm_lto_status - { - LLVM_LTO_UNKNOWN, - LLVM_LTO_OPT_SUCCESS, - LLVM_LTO_READ_SUCCESS, - LLVM_LTO_READ_FAILURE, - LLVM_LTO_WRITE_FAILURE, - LLVM_LTO_NO_TARGET, - LLVM_LTO_NO_WORK, - LLVM_LTO_MODULE_MERGE_FAILURE, - LLVM_LTO_ASM_FAILURE, - LLVM_LTO_NULL_OBJECT, - } -} diff --git a/sources/LLVMSharp/LLVMSharp.csproj b/sources/LLVMSharp/LLVMSharp.csproj index e1fccfc0..0e04df29 100644 --- a/sources/LLVMSharp/LLVMSharp.csproj +++ b/sources/LLVMSharp/LLVMSharp.csproj @@ -19,4 +19,8 @@ + + + + diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMComdatTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMComdatTests.cs index 1e447e88..dfff4be3 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMComdatTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMComdatTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMJITCSymbolMapPairTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMJITCSymbolMapPairTests.cs new file mode 100644 index 00000000..2f49c04e --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMJITCSymbolMapPairTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMJITCSymbolMapPairTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMJITCSymbolMapPair))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMJITCSymbolMapPair).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMJITCSymbolMapPair), Is.EqualTo(24)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMJITEvaluatedSymbolTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMJITEvaluatedSymbolTests.cs new file mode 100644 index 00000000..68767a5d --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMJITEvaluatedSymbolTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMJITEvaluatedSymbolTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMJITEvaluatedSymbol))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMJITEvaluatedSymbol).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMJITEvaluatedSymbol), Is.EqualTo(16)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMJITSymbolFlagsTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMJITSymbolFlagsTests.cs new file mode 100644 index 00000000..1e41a11c --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMJITSymbolFlagsTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMJITSymbolFlagsTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMJITSymbolFlags))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMJITSymbolFlags).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMJITSymbolFlags), Is.EqualTo(2)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMMCJITCompilerOptionsTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMMCJITCompilerOptionsTests.cs index ae1c55c3..095637ac 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMMCJITCompilerOptionsTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMMCJITCompilerOptionsTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpInfo1Tests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpInfo1Tests.cs index 52321282..94b582f2 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpInfo1Tests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpInfo1Tests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpInfoSymbol1Tests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpInfoSymbol1Tests.cs index 58a087ac..9abe8998 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpInfoSymbol1Tests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpInfoSymbol1Tests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueAttributeRefTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueAttributeRefTests.cs index c5c655a7..f8249234 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueAttributeRefTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueAttributeRefTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBasicBlockTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBasicBlockTests.cs index eba0738c..392be018 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBasicBlockTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBasicBlockTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBinaryTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBinaryTests.cs index 5f0ead9e..a0fce00f 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBinaryTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBinaryTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBuilderTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBuilderTests.cs index 421ba34e..d4d3674f 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBuilderTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBuilderTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueContextTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueContextTests.cs index 74ced8ba..826e1009 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueContextTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueContextTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueDIBuilderTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueDIBuilderTests.cs index 74afd8a8..d12ab40e 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueDIBuilderTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueDIBuilderTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueDiagnosticInfoTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueDiagnosticInfoTests.cs index 68113aef..c3963045 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueDiagnosticInfoTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueDiagnosticInfoTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueErrorTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueErrorTests.cs index 3e29998d..2b3866d3 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueErrorTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueErrorTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueExecutionEngineTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueExecutionEngineTests.cs index 0e424eb4..50f2ed0f 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueExecutionEngineTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueExecutionEngineTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueGenericValueTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueGenericValueTests.cs index 35fd071a..e85571ae 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueGenericValueTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueGenericValueTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueJITEventListenerTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueJITEventListenerTests.cs index 76ae3532..940883bf 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueJITEventListenerTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueJITEventListenerTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOCodeGeneratorTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOCodeGeneratorTests.cs index 865ecb3d..278697fc 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOCodeGeneratorTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOCodeGeneratorTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOInputTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOInputTests.cs index a4815e69..bbb089ed 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOInputTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOInputTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOModuleTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOModuleTests.cs index 163fd4a8..5c7b855e 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOModuleTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOModuleTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMCJITMemoryManagerTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMCJITMemoryManagerTests.cs index 4b841b2e..bed193d5 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMCJITMemoryManagerTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMCJITMemoryManagerTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMemoryBufferTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMemoryBufferTests.cs index b946300f..986b5c3b 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMemoryBufferTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMemoryBufferTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMetadataTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMetadataTests.cs index bb368a7f..fda5e520 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMetadataTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMetadataTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleFlagEntryTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleFlagEntryTests.cs index 81f943ac..ca8c550a 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleFlagEntryTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleFlagEntryTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleProviderTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleProviderTests.cs index 2c63e0c1..eba4665e 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleProviderTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleProviderTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleTests.cs index 09c4cf2e..502e099f 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueNamedMDNodeTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueNamedMDNodeTests.cs index 43dafbcf..a95a4bd0 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueNamedMDNodeTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueNamedMDNodeTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueObjectFileTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueObjectFileTests.cs index b318c686..11aa8158 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueObjectFileTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueObjectFileTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassManagerBuilderTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassManagerBuilderTests.cs index 1927b571..948688df 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassManagerBuilderTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassManagerBuilderTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassManagerTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassManagerTests.cs index 46f1c31d..cf6c1b9d 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassManagerTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassManagerTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassRegistryTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassRegistryTests.cs index 42b65f07..59648cca 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassRegistryTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassRegistryTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueRelocationIteratorTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueRelocationIteratorTests.cs index 5985318b..95641c36 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueRelocationIteratorTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueRelocationIteratorTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueSectionIteratorTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueSectionIteratorTests.cs index 25677586..fe784c87 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueSectionIteratorTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueSectionIteratorTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueSymbolIteratorTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueSymbolIteratorTests.cs index ff1de82f..36e215af 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueSymbolIteratorTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueSymbolIteratorTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetDataTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetDataTests.cs index cb0b4e4d..d3df1498 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetDataTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetDataTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetLibraryInfotDataTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetLibraryInfotDataTests.cs index 2535d3b1..01911901 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetLibraryInfotDataTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetLibraryInfotDataTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetMachineTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetMachineTests.cs index 5cca1fce..b6c61f56 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetMachineTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetMachineTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueThinLTOCodeGeneratorTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueThinLTOCodeGeneratorTests.cs index 3ffab4df..c7cc6f05 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueThinLTOCodeGeneratorTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueThinLTOCodeGeneratorTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTypeTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTypeTests.cs index 24cd57a9..ae519b3e 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTypeTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTypeTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueUseTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueUseTests.cs index c1898ad3..41ffbbda 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueUseTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueUseTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueValueMetadataEntryTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueValueMetadataEntryTests.cs index ce1b7d39..9df7de45 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueValueMetadataEntryTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueValueMetadataEntryTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueValueTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueValueTests.cs index de4ac007..e4b2ea0f 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueValueTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueValueTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcCLookupSetElementTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcCLookupSetElementTests.cs new file mode 100644 index 00000000..04b8d92d --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcCLookupSetElementTests.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; +using System; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOrcCLookupSetElementTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcCLookupSetElement))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOrcCLookupSetElement).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(LLVMOrcCLookupSetElement), Is.EqualTo(16)); + } + else + { + Assert.That(sizeof(LLVMOrcCLookupSetElement), Is.EqualTo(8)); + } + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITDylibDefinitionGeneratorTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueDefinitionGeneratorTests.cs similarity index 59% rename from tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITDylibDefinitionGeneratorTests.cs rename to tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueDefinitionGeneratorTests.cs index 9375a724..273e027f 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITDylibDefinitionGeneratorTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueDefinitionGeneratorTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; @@ -8,28 +8,28 @@ namespace LLVMSharp.Interop.UnitTests { - /// Provides validation of the struct. - public static unsafe class LLVMOrcOpaqueJITDylibDefinitionGeneratorTests + /// Provides validation of the struct. + public static unsafe class LLVMOrcOpaqueDefinitionGeneratorTests { - /// Validates that the struct is blittable. + /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueJITDylibDefinitionGenerator))); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueDefinitionGenerator))); } - /// Validates that the struct has the right . + /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.That(typeof(LLVMOrcOpaqueJITDylibDefinitionGenerator).IsLayoutSequential, Is.True); + Assert.That(typeof(LLVMOrcOpaqueDefinitionGenerator).IsLayoutSequential, Is.True); } - /// Validates that the struct has the correct size. + /// Validates that the struct has the correct size. [Test] public static void SizeOfTest() { - Assert.That(sizeof(LLVMOrcOpaqueJITDylibDefinitionGenerator), Is.EqualTo(1)); + Assert.That(sizeof(LLVMOrcOpaqueDefinitionGenerator), Is.EqualTo(1)); } } } diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueExecutionSessionTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueExecutionSessionTests.cs index 19bbd183..b63917ab 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueExecutionSessionTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueExecutionSessionTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITDylibTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITDylibTests.cs index ab2e951c..1c697c47 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITDylibTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITDylibTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITTargetMachineBuilderTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITTargetMachineBuilderTests.cs index 5e73638f..7943e478 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITTargetMachineBuilderTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITTargetMachineBuilderTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLLJITBuilderTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLLJITBuilderTests.cs index b4d260b0..8dceadc7 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLLJITBuilderTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLLJITBuilderTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLLJITTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLLJITTests.cs index 26346113..da67866b 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLLJITTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLLJITTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITStackTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLookupStateTests.cs similarity index 64% rename from tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITStackTests.cs rename to tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLookupStateTests.cs index 2142a8c2..6bd626c4 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITStackTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLookupStateTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; @@ -8,28 +8,28 @@ namespace LLVMSharp.Interop.UnitTests { - /// Provides validation of the struct. - public static unsafe class LLVMOrcOpaqueJITStackTests + /// Provides validation of the struct. + public static unsafe class LLVMOrcOpaqueLookupStateTests { - /// Validates that the struct is blittable. + /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueJITStack))); + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueLookupState))); } - /// Validates that the struct has the right . + /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() { - Assert.That(typeof(LLVMOrcOpaqueJITStack).IsLayoutSequential, Is.True); + Assert.That(typeof(LLVMOrcOpaqueLookupState).IsLayoutSequential, Is.True); } - /// Validates that the struct has the correct size. + /// Validates that the struct has the correct size. [Test] public static void SizeOfTest() { - Assert.That(sizeof(LLVMOrcOpaqueJITStack), Is.EqualTo(1)); + Assert.That(sizeof(LLVMOrcOpaqueLookupState), Is.EqualTo(1)); } } } diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueMaterializationUnitTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueMaterializationUnitTests.cs new file mode 100644 index 00000000..9d7ff97f --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueMaterializationUnitTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOrcOpaqueMaterializationUnitTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueMaterializationUnit))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOrcOpaqueMaterializationUnit).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOrcOpaqueMaterializationUnit), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueObjectLayerTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueObjectLayerTests.cs new file mode 100644 index 00000000..798d70c8 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueObjectLayerTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOrcOpaqueObjectLayerTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueObjectLayer))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOrcOpaqueObjectLayer).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOrcOpaqueObjectLayer), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueResourceTrackerTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueResourceTrackerTests.cs new file mode 100644 index 00000000..6e1a7b7a --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueResourceTrackerTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOrcOpaqueResourceTrackerTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueResourceTracker))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOrcOpaqueResourceTracker).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOrcOpaqueResourceTracker), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueSymbolStringPoolEntryTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueSymbolStringPoolEntryTests.cs new file mode 100644 index 00000000..fac18ffe --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueSymbolStringPoolEntryTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOrcOpaqueSymbolStringPoolEntryTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueSymbolStringPoolEntry))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOrcOpaqueSymbolStringPoolEntry).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOrcOpaqueSymbolStringPoolEntry), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueSymbolStringPoolTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueSymbolStringPoolTests.cs new file mode 100644 index 00000000..d20c73e0 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueSymbolStringPoolTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOrcOpaqueSymbolStringPoolTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueSymbolStringPool))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOrcOpaqueSymbolStringPool).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOrcOpaqueSymbolStringPool), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueThreadSafeContextTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueThreadSafeContextTests.cs index e48d72f2..cf3d0ad7 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueThreadSafeContextTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueThreadSafeContextTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueThreadSafeModuleTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueThreadSafeModuleTests.cs index ac6bea31..90727a58 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueThreadSafeModuleTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueThreadSafeModuleTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcQuaqueSymbolStringPoolEntryPtrTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcQuaqueSymbolStringPoolEntryPtrTests.cs deleted file mode 100644 index ae25c5a0..00000000 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcQuaqueSymbolStringPoolEntryPtrTests.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. - -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/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 NUnit.Framework; -using System.Runtime.InteropServices; - -namespace LLVMSharp.Interop.UnitTests -{ - /// Provides validation of the struct. - public static unsafe class LLVMOrcQuaqueSymbolStringPoolEntryPtrTests - { - /// Validates that the struct is blittable. - [Test] - public static void IsBlittableTest() - { - Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcQuaqueSymbolStringPoolEntryPtr))); - } - - /// Validates that the struct has the right . - [Test] - public static void IsLayoutSequentialTest() - { - Assert.That(typeof(LLVMOrcQuaqueSymbolStringPoolEntryPtr).IsLayoutSequential, Is.True); - } - - /// Validates that the struct has the correct size. - [Test] - public static void SizeOfTest() - { - Assert.That(sizeof(LLVMOrcQuaqueSymbolStringPoolEntryPtr), Is.EqualTo(1)); - } - } -} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueArgTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueArgTests.cs index 908d76cd..e2e9865b 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueArgTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueArgTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueDebugLocTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueDebugLocTests.cs index aaaf8936..a6a7c4a8 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueDebugLocTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueDebugLocTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueEntryTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueEntryTests.cs index 63410424..8de0860a 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueEntryTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueEntryTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueParserTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueParserTests.cs index 20920cfd..7051fdb6 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueParserTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueParserTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueStringTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueStringTests.cs index 69ccfcb1..57009462 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueStringTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueStringTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMTargetTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMTargetTests.cs index 65ca43f3..961ad933 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LLVMTargetTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMTargetTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework; diff --git a/tests/LLVMSharp.UnitTests/Interop/LTOObjectBufferTests.cs b/tests/LLVMSharp.UnitTests/Interop/LTOObjectBufferTests.cs index 0d972ca4..6586b956 100644 --- a/tests/LLVMSharp.UnitTests/Interop/LTOObjectBufferTests.cs +++ b/tests/LLVMSharp.UnitTests/Interop/LTOObjectBufferTests.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-12.0.0/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 NUnit.Framework;