LLVM bindings for .NET Standard written in C# using ClangSharp
Перейти к файлу
Tanner Gooding 629c44c540 Updating dependencies to their latest versions 2022-04-02 22:07:33 -07:00
.github/workflows Adding a nightly nuget feed and a link to the source browser 2021-12-05 22:18:11 -08:00
packages/libLLVM Updating version information to v14.0.0 2022-04-02 22:07:33 -07:00
samples Update to LLVM 10.0.0 (#131) 2020-04-14 07:48:32 -07:00
scripts Moving forward to .NET 6 2022-01-07 19:21:37 -08:00
sources Updating version information to v14.0.0 2022-04-02 22:07:33 -07:00
tests Updating version information to v14.0.0 2022-04-02 22:07:33 -07:00
.editorconfig Setup some infrastructure for the repository. (#100) 2019-06-01 10:42:46 -07:00
.gitattributes Setup some infrastructure for the repository. (#100) 2019-06-01 10:42:46 -07:00
.gitignore Fixing up some infrastructure so we can consume the libLLVM 8.0.0 packages (#104) 2019-06-08 01:24:07 -07:00
CODE_OF_CONDUCT.md Resolve dotnet-org-policy PR15 by ensuring we only link to the foundation CoC 2021-12-02 12:53:30 -08:00
Directory.Build.props Updating version information to v14.0.0 2022-04-02 22:07:33 -07:00
Directory.Build.targets Updating dependencies to their latest versions 2022-04-02 22:07:33 -07:00
LICENSE.md Updating the license to MIT 2021-11-11 14:27:35 -08:00
LLVMSharp.sln Updating version information to v14.0.0 2022-04-02 22:07:33 -07:00
NOTICE.md Updating the license to MIT 2021-11-11 14:27:35 -08:00
Open.snk Updating to support .NET 5 and to use Open.snk (#155) 2021-02-10 23:14:10 -08:00
README.md Update README.md 2021-12-24 02:19:57 -08:00
build.cmd Setup some infrastructure for the repository. (#100) 2019-06-01 10:42:46 -07:00
build.sh Setup some infrastructure for the repository. (#100) 2019-06-01 10:42:46 -07:00
pack.cmd Setup some infrastructure for the repository. (#100) 2019-06-01 10:42:46 -07:00
pack.sh Setup some infrastructure for the repository. (#100) 2019-06-01 10:42:46 -07:00
restore.cmd Setup some infrastructure for the repository. (#100) 2019-06-01 10:42:46 -07:00
restore.sh Setup some infrastructure for the repository. (#100) 2019-06-01 10:42:46 -07:00
test.cmd Setup some infrastructure for the repository. (#100) 2019-06-01 10:42:46 -07:00
test.sh Setup some infrastructure for the repository. (#100) 2019-06-01 10:42:46 -07:00

README.md

LLVMSharp

LLVMSharp is a multi-platform .NET Standard library for accessing the LLVM infrastructure. The bindings are auto-generated using ClangSharp parsing LLVM-C header files.

ci

A nuget package for the project is provided here: https://www.nuget.org/packages/llvmsharp.

A convenience package which provides the native libLLVM library for several platforms is provided here: https://www.nuget.org/packages/libLLVM

Nightly packages are available via the NuGet Feed URL: https://pkgs.clangsharp.dev/index.json

Source browsing is available via: https://source.clangsharp.dev/

Table of Contents

Code of Conduct

LLVMSharp and everyone contributing (this includes issues, pull requests, the wiki, etc) must abide by the .NET Foundation Code of Conduct: https://dotnetfoundation.org/about/code-of-conduct.

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at conduct@dotnetfoundation.org.

License

Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See LICENSE.md in the repository root for more information.

Features

  • Auto-generated using LLVM C headers files, and supports all functionality exposed by them (more than enough to build a full compiler)
  • Type safe (LLVMValueRef and LLVMTypeRef are different types, despite being pointers internally)
  • Nearly identical to LLVM C APIs, e.g. LLVMModuleCreateWithName in C, vs. LLVM.ModuleCreateWithName (notice the . in the C# API)

Building LLVMSharp

On Linux using .NET Core:

 $ git clone http://github.com/dotnet/llvmsharp
 $ cd LLVMSharp
 $ dotnet build

On Windows using .NET Core

Note: - you need to run these commands from the Visual Studio Developer Command Prompt.

 :> git clone http://github.com/dotnet/LLVMSharp
 :> cd LLVMSharp
 :> dotnet build