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,
compilee: Either<&PrototypeAST, &FunctionAST>
) -> Result<FnValue<'llvm>, String>
[src]
pub fn compile(
module: &'llvm Module,
compilee: Either<&PrototypeAST, &FunctionAST>
) -> Result<FnValue<'llvm>, String>
[src]Compile either a PrototypeAST
or a FunctionAST
into the LLVM module
.