LLVMSharp icon indicating copy to clipboard operation
LLVMSharp copied to clipboard

LLVM bindings for .NET Standard written in C# using ClangSharp

Results 51 LLVMSharp issues
Sort by recently updated
recently updated
newest added

There does not seem to be an equivalent method in the object oriented api.

I'm a little confused about how this is implemented in LLVMSharp. It's possible to set the DataLayout string, but the function `getDataLayout` that returns an object with methods as per...

All the LLVMSharp.API stuff was removed in commit bc6c79b4e418a82514a99d6885ad43e21bbd55cc back in June. I've been looking around trying to find discussion around this change, but I'm not seeing it. Does anyone...

question

I write compiler for my own language using LLVMSharp. Currently I want to make print to standard output and read from standard input. I tried looking into other projects but...

There doesn't seem to be any way of creating [trampolines](https://llvm.org/docs/LangRef.html#trampoline-intrinsics) using LLVMSharp. It would be great if this feature was added.

As the title says, the latest Nuget package for `libllvm` is missing C API symbols. ``` joao@joao-HP:~/dev/dotnet/corert/packages/libllvm$ llvm-nm-6.0 5.0.1/runtimes/linux-x64/native/libLLVM.so | grep LLVMModuleCreateWithName 0000000000838d20 T LLVMModuleCreateWithName 0000000000838db0 T LLVMModuleCreateWithNameInContext joao@joao-HP:~/dev/dotnet/corert/packages/libllvm$ llvm-nm-6.0...

bug

If I call this as it is, for example `LLVM.DIBuilderCreateBasicType(dibuilder, "i32", 32, 32, 5)`, and then do DumpModule, I can see that the string has become 32 characters long and...

When I run `dotnet msbuild` locally, I get warning: ``` warning NU1701: Package 'LibLLVM 5.0.1' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not...

LLVM.DumpType(LLVM.TypeOf(lhs.Value)); ``` Unhandled Exception: System.EntryPointNotFoundException: Unable to find an entry point named 'LLVMDumpType' in DLL 'libLLVM'. at LLVMSharp.LLVM.DumpType(LLVMTypeRef Val) at Goddamnfuckinglanguage.LangVisitor.VisitExpression(ExpressionContext context) in C:\Users\superblaubeere27\source\repos\Goddamnfuckinglanguage\Goddamnfuckinglanguage\LangVisitor.cs:line 98 at Goddamnfuckinglanguage.LangVisitor.VisitReturnStatement(ReturnStatementContext context) in C:\Users\superblaubeere27\source\repos\Goddamnfuckinglanguage\Goddamnfuckinglanguage\LangVisitor.cs:line...

As per the MSDN documentation, any delegate that's passed to unmanaged code as a function pointer needs to be explicitly kept alive in managed code, since the GC doesn't track...