pub struct LLVMModule { /* private fields */ }
Implementations§
Source§impl LLVMModule
impl LLVMModule
pub fn create_thread_safe_module(&self) -> LLVMOrcThreadSafeModuleRef
pub fn from_raw(module_ref: LLVMModuleRef) -> Self
pub fn to_assembly(&self, target_triple: &str) -> Result<String, String>
pub fn register_struct( &mut self, name: impl AsRef<str>, field_map: HashMap<String, usize>, t: LLVMType, )
pub fn register_extern_function( &mut self, name: impl AsRef<str>, function_type: LLVMType, ) -> Function
pub fn register_function( &mut self, name: impl AsRef<str>, function_type: LLVMType, param_names: Vec<String>, ) -> Function
pub fn verify_with_debug_info(&self)
pub fn add_global(&mut self, name: impl AsRef<str>, v: LLVMValue)
pub fn create_executor(&self) -> Result<JITExecutor, String>
pub fn get_function(&self, name: impl AsRef<str>) -> Option<&Function>
pub fn get_function_ref(&self, name: impl AsRef<str>) -> LLVMValueRef
pub fn get_struct( &self, name: impl AsRef<str>, ) -> Option<&(HashMap<String, usize>, LLVMType)>
pub fn get_struct_by_type( &self, t: &LLVMType, ) -> Option<(&String, &HashMap<String, usize>, &LLVMType)>
pub fn get_struct_by_pointer_type( &self, t: &LLVMType, ) -> Option<(&String, &HashMap<String, usize>, &LLVMType)>
pub fn dump(&self)
Trait Implementations§
Source§impl Debug for LLVMModule
impl Debug for LLVMModule
Auto Trait Implementations§
impl Freeze for LLVMModule
impl !RefUnwindSafe for LLVMModule
impl !Send for LLVMModule
impl !Sync for LLVMModule
impl Unpin for LLVMModule
impl !UnwindSafe for LLVMModule
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