lleaves.compiler.codegen.codegen module
- class lleaves.compiler.codegen.codegen.LTree(llvm_function: Function, class_id: int)
Bases:
object
Class for the LLVM function of a tree paired with relevant non-LLVM context
- class_id: int
- llvm_function: Function
- lleaves.compiler.codegen.codegen.dconst(value)
- lleaves.compiler.codegen.codegen.fconst(value)
- lleaves.compiler.codegen.codegen.gen_forest(forest, module, fblocksize, froot_func_name, use_fp64)
Populate the passed IR module with code for the forest.
- lleaves.compiler.codegen.codegen.gen_node(func, node_block, node, use_fp64)
generate code for node, recursing into children
- lleaves.compiler.codegen.codegen.gen_tree(tree, tree_func, use_fp64)
generate code for tree given the function, recursing into nodes
- lleaves.compiler.codegen.codegen.get_fdtype(use_fp64)
- lleaves.compiler.codegen.codegen.get_fdtype_const(value, use_fp64)
- lleaves.compiler.codegen.codegen.iconst(value)
- lleaves.compiler.codegen.codegen.lconst(value)