Struct llvm_kaleidoscope_rs::codegen::Codegen [−][src]
pub struct Codegen<'llvm, 'a> { /* fields omitted */ }
Expand description
Code generator from kaleidoscope AST to LLVM IR.
Implementations
pub fn compile(
module: &'llvm Module,
fn_protos: &mut HashMap<String, PrototypeAST>,
compilee: Either<&PrototypeAST, &FunctionAST>
) -> Result<FnValue<'llvm>, String>
pub fn compile(
module: &'llvm Module,
fn_protos: &mut HashMap<String, PrototypeAST>,
compilee: Either<&PrototypeAST, &FunctionAST>
) -> Result<FnValue<'llvm>, String>
Compile either a PrototypeAST
or a FunctionAST
into the LLVM module
.