doc updates

pull/81/head
Dibyendu Majumdar 9 years ago
parent 0109450536
commit 5164786bad

@ -21,6 +21,7 @@ Contents:
ravi-jit-compilation-hook
ravi-lua-types
llvm-tbaa
llvm-bindings
ravi-benchmarks
ravi-jit-status
ravi-jit-libgccjit

@ -100,5 +100,30 @@ The following table lists the Lua LLVM api functions available.
| **LLVMstructtype methods** |
+---------------------------------------------------+------------------------------------------+
| setbody({types}) | Adds members to the struct type |
+---------------------------------------------------+------------------------------------------+
+---------------------------------------------------+------------------------------------------+
| **LLVMmainfunction methods** |
+---------------------------------------------------+------------------------------------------+
| appendblock(LLVMbasicblock) | Adds a basic block to the end |
+---------------------------------------------------+------------------------------------------+
| compile() | Compiles the module and returns a |
| | reference to the C Closure |
+---------------------------------------------------+------------------------------------------+
| arg(position) -> LLVMvalue | Returns the argument at position; |
| | position >= 1; returns ``nil`` if |
| | argument not available |
+---------------------------------------------------+------------------------------------------+
| module() -> LLVMmodule | Returns the module associated with the |
| | function |
+---------------------------------------------------+------------------------------------------+
| extern(name[, functiontype]) -> LLVMconstant | Returns an extern declaration; |
| | A number of Lua Api functions are |
| | predefined. |
+---------------------------------------------------+------------------------------------------+
| **LLVMmodule methods** |
+---------------------------------------------------+------------------------------------------+
| newfunction(name, functiontype) | Returns an internal linkage function |
| | within the module |
+---------------------------------------------------+------------------------------------------+
| dump() | Dumps the module |
+---------------------------------------------------+------------------------------------------+

Loading…
Cancel
Save