Lua wrapper for the LLVM-C API. It uses inclua for generating bindings, and then making wrappings around that more Lua friendly.
- lua >= 5.2
- LLVM (tested with version 3.9, but should work with others)
- inclua (for building)
- CMake >= 2.8 (for building)
With cmake:
$ mkdir build
$ cd build
$ cmake ..
$ make
Using LuaRocks:
# luarocks install lualvm
Using make directly (after building with cmake):
# make install
- The following headers: Disassembler.h (function pointers or useless), LinkTimeOptimizer.h and lto.h (different API, maybe will be put in another module) and OrcBindings.h (unstable API)
- Document Lua API
- Make Kaleidoscope tutorial
Even though, lualvm is ready for use!
Lua API will be documented using ldoc.