Lime Parser Generator 0.1.0
Runtime-extensible LALR(1) parser with SIMD tokenization and LLVM JIT
Loading...
Searching...
No Matches
JIT Compilation API

Control LLVM JIT compilation of parser action tables. More...

Functions

bool lime_jit_available (void)
 Check whether JIT compilation support is available at runtime.
 
int lime_jit_compile (ParserSnapshot *snap)
 Compile and attach JIT code to a snapshot's action tables.
 

Detailed Description

Control LLVM JIT compilation of parser action tables.

Function Documentation

◆ lime_jit_available()

bool lime_jit_available ( void  )

#include <include/parser.h>

Check whether JIT compilation support is available at runtime.

Return values
trueLLVM was linked and initialization succeeded.
falseJIT is not available.

◆ lime_jit_compile()

int lime_jit_compile ( ParserSnapshot snap)

#include <include/parser.h>

Compile and attach JIT code to a snapshot's action tables.

Parameters
snapSnapshot to JIT-compile.
Return values
0Success (or already compiled, or LLVM unavailable).
non-zeroCompilation failure.