pub struct Compiler { /* private fields */ }
Implementations§
Source§impl Compiler
impl Compiler
pub fn new(module: Module) -> Self
pub fn register_builtin_symbol(&mut self, name: &str, ty: LLVMValue)
pub fn register_llvm_function( &mut self, name: &str, ty: LLVMType, arg_names: Vec<String>, )
pub fn compile(&mut self, ctx: &Context) -> Rc<RwLock<LLVMModule>>
pub fn prepare_function(&self, ctx: &Context, function: &Function) -> Context
Auto Trait Implementations§
impl Freeze for Compiler
impl !RefUnwindSafe for Compiler
impl !Send for Compiler
impl !Sync for Compiler
impl Unpin for Compiler
impl !UnwindSafe for Compiler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more