Git Product home page Git Product logo

llvm.net's Introduction

LLVM.NET

This library includes all C bindings from LLVM 3.1 converted to pinvoke imports. The library also includes wrappers around some of the core functionality to make it easier to use. The wrappers are not necessary to use the library; all functionality is available in the LLVM.Native class. However, the wrappers do help with reducing common code and reducing the need to use unsafe blocks.

Building LLVM for use with LLVM.NET

LLVM needs to be built as a shared library so that it can be dynamically loaded. On Windows, this requires the use of Mingw as Visual Studio can't build LLVM as a shared library (yet). With Mingw, you can do something like ./configure --enable-shared --enable-jit && make && make install.

This has only been tested on Windows so far, but I've tried to make it easy to use with Mono.

c2cs

A C++ command line application for converting llvm-c header files to C#. This tool uses clang's front end to parse the llvm-c headers and then uses the resulting AST to convert enums, typedefs, and function declarations to C#. This uses the latest version of clang so comments can be copied to the output as well. I believe this could be easily modified to convert any header files, but right now it's specific to LLVM.

This tool uses hardcoded paths for the output file and clang include directories. It should be simple to change these to command line arguments. The paths are all defined at the top of c2cs.cpp.

Kaleidoscope

This is a port of the LLVM Kaleidoscope tutorials to C#.

llvm.net's People

Contributors

aaronrandolph avatar miguelzf avatar

Stargazers

Anne Thorpe avatar Carl Clark avatar Danilo Lekovic avatar Phillip Ressler avatar Alex avatar Heath Isler avatar  avatar Wojtek Gawroński avatar Luke Hoban avatar Nathan Allan avatar  avatar antonijn avatar Al Gray avatar Josh avatar Callum Rogers avatar

Watchers

0r0 avatar Luke Hoban avatar Matthew Ishimaru avatar Kerem Kat avatar Jia-Rui Lin avatar  avatar Alex avatar antonijn avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.