Struct llvm_kaleidoscope_rs::llvm::LLJit
source · [−]pub struct LLJit { /* private fields */ }
Expand description
Wrapper for a LLVM LLJIT.
Implementations
sourceimpl LLJit
impl LLJit
sourcepub fn add_module(&self, module: Module) -> ResourceTracker<'_>
pub fn add_module(&self, module: Module) -> ResourceTracker<'_>
Add an LLVM IR module to the JIT. Return a ResourceTracker
, which when dropped, will
remove the code of the LLVM IR module from the JIT.
Panics
Panics if LLVM API returns a null
pointer or an error.
sourcepub fn find_symbol<F: JitFn>(&self, sym: &str) -> F
pub fn find_symbol<F: JitFn>(&self, sym: &str) -> F
sourcepub fn enable_process_symbols(&self)
pub fn enable_process_symbols(&self)
Enable lookup of dynamic symbols available in the current process from the JIT.
Panics
Panics if LLVM API returns an error.
Auto Trait Implementations
impl RefUnwindSafe for LLJit
impl !Send for LLJit
impl !Sync for LLJit
impl Unpin for LLJit
impl UnwindSafe for LLJit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more