Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
2cd6942
LibLLVMSharp implementation
ds5678 Jun 20, 2025
9abf421
Add response files
ds5678 Jul 21, 2025
43576fb
Add functions for debug info nodes
ds5678 Sep 11, 2025
68e38b4
Update GenerateLLVM.rsp
ds5678 Sep 11, 2025
a66073f
DITemplateParameter_getType and DITemplateValueParameter_getValue
ds5678 Sep 11, 2025
fb9281f
DISubprogram_getTemplateParams
ds5678 Sep 11, 2025
4aa5a4f
More debug info methods
ds5678 Sep 11, 2025
3621ab6
DINode_getTagString
ds5678 Sep 11, 2025
0446c52
More debug info methods
ds5678 Sep 11, 2025
2e9c762
llvmsharp_GlobalVariable_getGlobalVariableExpression and llvmsharp_Gl…
ds5678 Sep 20, 2025
a947923
Remove unnecessary if checks
ds5678 Sep 20, 2025
f1554ae
llvmsharp_DISubrange_getCount
ds5678 Sep 20, 2025
0236104
Use proper unwrap template in llvmsharp_ConstantDataArray_getData
ds5678 Sep 20, 2025
a1c96ac
Standardize naming
ds5678 Sep 20, 2025
4cbd4d9
Remove unused parameter in llvmsharp_createPromoteMemoryToRegisterPass
ds5678 Sep 20, 2025
c519252
llvmsharp_Value_getDemangledName should return actual length not byte…
ds5678 Sep 20, 2025
c785e31
Metadata operands
ds5678 Sep 26, 2025
c41303b
Metadata "is a" functions
ds5678 Sep 26, 2025
b12fdd3
llvmsharp_MDString_getString
ds5678 Sep 26, 2025
347e5ee
Make demangling more generalized
ds5678 Sep 26, 2025
9546cde
standardize usage of int32_t instead of size_t
ds5678 Sep 26, 2025
df607a1
Merge branch 'main' into libllvmsharp
tannergooding Sep 28, 2025
a959d0a
Fix compile errors and add missing API content
ds5678 Sep 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
cmake_minimum_required(VERSION 3.13)

project(LLVMSharp VERSION 20.1.2)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

add_subdirectory(sources)
42 changes: 42 additions & 0 deletions LLVMSharp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,41 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVM.runtime.osx-arm64",
packages\libLLVM\libLLVM.runtime.osx-arm64\libLLVM.runtime.osx-arm64.nuspec = packages\libLLVM\libLLVM.runtime.osx-arm64\libLLVM.runtime.osx-arm64.nuspec
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVMSharp", "libLLVMSharp", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVMSharp", "libLLVMSharp", "{0682D98B-82C9-4EC9-8207-70C142418BB2}"
ProjectSection(SolutionItems) = preProject
packages\libLLVMSharp\libLLVMSharp\libLLVMSharp.nuspec = packages\libLLVMSharp\libLLVMSharp\libLLVMSharp.nuspec
packages\libLLVMSharp\libLLVMSharp\LICENSE.TXT = packages\libLLVMSharp\libLLVMSharp\LICENSE.TXT
packages\libLLVMSharp\libLLVMSharp\NOTICE.txt = packages\libLLVMSharp\libLLVMSharp\NOTICE.txt
packages\libLLVMSharp\libLLVMSharp\runtime.json = packages\libLLVMSharp\libLLVMSharp\runtime.json
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVMSharp.runtime.linux-arm64", "libLLVMSharp.runtime.linux-arm64", "{50AABB72-FDA0-417B-875D-3DB2EE7C3BAF}"
ProjectSection(SolutionItems) = preProject
packages\libLLVMSharp\libLLVMSharp.runtime.linux-arm64\libLLVMSharp.runtime.linux-arm64.nuspec = packages\libLLVMSharp\libLLVMSharp.runtime.linux-arm64\libLLVMSharp.runtime.linux-arm64.nuspec
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVMSharp.runtime.linux-x64", "libLLVMSharp.runtime.linux-x64", "{C7FC1228-24FC-4353-8676-F48CBAAB39F2}"
ProjectSection(SolutionItems) = preProject
packages\libLLVMSharp\libLLVMSharp.runtime.linux-x64\libLLVMSharp.runtime.linux-x64.nuspec = packages\libLLVMSharp\libLLVMSharp.runtime.linux-x64\libLLVMSharp.runtime.linux-x64.nuspec
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVMSharp.runtime.osx-arm64", "libLLVMSharp.runtime.osx-arm64", "{5C3AF6C4-561B-4261-9E7C-6643F95253AF}"
ProjectSection(SolutionItems) = preProject
packages\libLLVMSharp\libLLVMSharp.runtime.osx-arm64\libLLVMSharp.runtime.osx-arm64.nuspec = packages\libLLVMSharp\libLLVMSharp.runtime.osx-arm64\libLLVMSharp.runtime.osx-arm64.nuspec
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVMSharp.runtime.win-arm64", "libLLVMSharp.runtime.win-arm64", "{DD215D09-65A9-4CA2-8D08-1451193194C1}"
ProjectSection(SolutionItems) = preProject
packages\libLLVMSharp\libLLVMSharp.runtime.win-arm64\libLLVMSharp.runtime.win-arm64.nuspec = packages\libLLVMSharp\libLLVMSharp.runtime.win-arm64\libLLVMSharp.runtime.win-arm64.nuspec
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libLLVMSharp.runtime.win-x64", "libLLVMSharp.runtime.win-x64", "{AB31A11D-2B8A-405A-A70A-FD94E99689E5}"
ProjectSection(SolutionItems) = preProject
packages\libLLVMSharp\libLLVMSharp.runtime.win-x64\libLLVMSharp.runtime.win-x64.nuspec = packages\libLLVMSharp\libLLVMSharp.runtime.win-x64\libLLVMSharp.runtime.win-x64.nuspec
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -134,6 +169,13 @@ Global
{706334B8-BB91-49A4-BC9C-DFFDF3DCD770} = {E8ADE5A7-4363-43B7-B104-6B0E5510CAF0}
{C8508256-2EC1-4C88-B61D-AFB86569FBCD} = {9D46FF1C-E09F-4063-A97D-C09F26310B67}
{3870145D-F6DC-4082-A3F5-2316D49ADD43} = {9D46FF1C-E09F-4063-A97D-C09F26310B67}
{02EA681E-C7D8-13C7-8484-4AC65E1B71E8} = {CD611531-75EA-4328-8C25-8D0496E61EC2}
{0682D98B-82C9-4EC9-8207-70C142418BB2} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
{50AABB72-FDA0-417B-875D-3DB2EE7C3BAF} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
{C7FC1228-24FC-4353-8676-F48CBAAB39F2} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
{5C3AF6C4-561B-4261-9E7C-6643F95253AF} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
{DD215D09-65A9-4CA2-8D08-1451193194C1} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
{AB31A11D-2B8A-405A-A70A-FD94E99689E5} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {75550D8C-A492-4ED3-8387-206830F8B21E}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata minClientVersion="2.12">
<id>libLLVMSharp.runtime.linux-arm64</id>
<version>20.1.2</version>
<authors>.NET Foundation and Contributors</authors>
<owners>.NET Foundation and Contributors</owners>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<license type="expression">MIT</license>
<projectUrl>https://github.com/dotnet/llvmsharp</projectUrl>
<description>linux arm64 native library for libLLVMSharp.</description>
<copyright>Copyright © .NET Foundation and Contributors</copyright>
<repository type="git" url="https://github.com/dotnet/llvmsharp" branch="main" />
</metadata>
<files>
<file src="..\..\..\LICENSE.md" target="LICENSE.md" />
<file src="..\..\..\NOTICE.md" target="NOTICE.md" />
<file src="libLLVMSharp.so" target="runtimes\linux-arm64\native\libLLVMSharp.so" />
</files>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata minClientVersion="2.12">
<id>libLLVMSharp.runtime.linux-x64</id>
<version>20.1.2</version>
<authors>.NET Foundation and Contributors</authors>
<owners>.NET Foundation and Contributors</owners>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<license type="expression">MIT</license>
<projectUrl>https://github.com/dotnet/llvmsharp</projectUrl>
<description>linux x64 native library for libLLVMSharp.</description>
<copyright>Copyright © .NET Foundation and Contributors</copyright>
<repository type="git" url="https://github.com/dotnet/llvmsharp" branch="main" />
</metadata>
<files>
<file src="..\..\..\LICENSE.md" target="LICENSE.md" />
<file src="..\..\..\NOTICE.md" target="NOTICE.md" />
<file src="libLLVMSharp.so" target="runtimes\linux-x64\native\libLLVMSharp.so" />
</files>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata minClientVersion="2.12">
<id>libLLVMSharp.runtime.osx-arm64</id>
<version>20.1.2</version>
<authors>.NET Foundation and Contributors</authors>
<owners>.NET Foundation and Contributors</owners>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<license type="expression">MIT</license>
<projectUrl>https://github.com/dotnet/llvmsharp</projectUrl>
<description>osx arm64 native library for libLLVMSharp.</description>
<copyright>Copyright © .NET Foundation and Contributors</copyright>
<repository type="git" url="https://github.com/dotnet/llvmsharp" branch="main" />
</metadata>
<files>
<file src="..\..\..\LICENSE.md" target="LICENSE.md" />
<file src="..\..\..\NOTICE.md" target="NOTICE.md" />
<file src="libLLVMSharp.dylib" target="runtimes\osx-arm64\native\libLLVMSharp.dylib" />
</files>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata minClientVersion="2.12">
<id>libLLVMSharp.runtime.win-arm64</id>
<version>20.1.2</version>
<authors>.NET Foundation and Contributors</authors>
<owners>.NET Foundation and Contributors</owners>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<license type="expression">MIT</license>
<projectUrl>https://github.com/dotnet/llvmsharp</projectUrl>
<description>win arm64 native library for libLLVMSharp.</description>
<copyright>Copyright © .NET Foundation and Contributors</copyright>
<repository type="git" url="https://github.com/dotnet/llvmsharp" branch="main" />
</metadata>
<files>
<file src="..\..\..\LICENSE.md" target="LICENSE.md" />
<file src="..\..\..\NOTICE.md" target="NOTICE.md" />
<file src="libLLVMSharp.dll" target="runtimes\win-arm64\native\libLLVMSharp.dll" />
</files>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata minClientVersion="2.12">
<id>libLLVMSharp.runtime.win-x64</id>
<version>20.1.2</version>
<authors>.NET Foundation and Contributors</authors>
<owners>.NET Foundation and Contributors</owners>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<license type="expression">MIT</license>
<projectUrl>https://github.com/dotnet/llvmsharp</projectUrl>
<description>win x64 native library for libLLVMSharp.</description>
<copyright>Copyright © .NET Foundation and Contributors</copyright>
<repository type="git" url="https://github.com/dotnet/llvmsharp" branch="main" />
</metadata>
<files>
<file src="..\..\..\LICENSE.md" target="LICENSE.md" />
<file src="..\..\..\NOTICE.md" target="NOTICE.md" />
<file src="libLLVMSharp.dll" target="runtimes\win-x64\native\libLLVMSharp.dll" />
</files>
</package>
12 changes: 12 additions & 0 deletions packages/libLLVMSharp/libLLVMSharp/LICENSE.TXT
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
University of Illinois/NCSA Open Source License
Copyright (c) .NET Foundation and Contributors
All rights reserved.

Developed by: .NET Foundation and Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimers.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimers in the documentation and/or other materials provided with the distribution.
Neither the names of Microsoft, nor the names of its contributors may be used to endorse or promote products derived from this Software without specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
Loading
Loading