Skip to main content

compile_expr

Function compile_expr 

Source
pub fn compile_expr(
    pipeline: &mut CodegenPipeline,
    tree: &CoreExpr,
    name: &str,
) -> Result<FuncId, EmitError>
Expand description

Compile a CoreExpr into a JIT function. Returns the FuncId. The compiled function has signature: (vmctx: i64) -> i64 It returns a heap pointer to the result.