You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 https://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.