pub struct Module { /* private fields */ }
Implementations§
Source§impl Module
impl Module
pub fn new(name: &str) -> Module
pub fn new_in_context(name: &str, context: LLVMContextRef) -> Module
pub fn as_ref(&self) -> LLVMModuleRef
pub fn add_function(&self, name: &str, function_type: LLVMTypeRef) -> Function
pub fn named_function(&self, name: &str) -> Function
pub fn get_or_add_function( &self, name: &str, function_type: LLVMTypeRef, ) -> Function
pub fn verify(&self) -> Result<(), String>
pub fn dump(&self)
pub fn print_module_to_string(&self) -> String
pub fn print_module_to_file(&self, filename: &str) -> Result<(), String>
pub fn create_interpreter(&self) -> Result<Engine, String>
pub fn create_jit_engine(&self) -> Result<Engine, String>
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