pub struct Module { /* private fields */ }
Expand description
An representation of LLVMModule.
Implementations§
Source§impl Module
impl Module
pub fn set_target_triple(&mut self, triple: TargetTriple)
pub fn set_target_datalayout(&mut self, layout: TargetDataLayout)
pub fn get_function_ref_as_mut(&mut self, func_id: FunctionId) -> &mut Function
pub fn get_function_ref(&self, func_id: FunctionId) -> &Function
pub fn new_function( &mut self, func_name: &str, ret_type: ReturnType, ) -> FunctionId
pub fn add_intrinsic(&mut self, i: Intrinsic)
pub fn add_global_var(&mut self, name: String, var: GlobalVariable)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
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