Struct llvm_kaleidoscope_rs::llvm::LLJit [−][src]
pub struct LLJit { /* fields omitted */ }
Implementations
Create a new LLJit instance.
+Struct llvm_kaleidoscope_rs::llvm::LLJit [−][src]
pub struct LLJit { /* fields omitted */ }
Expand description
Wrapper for a LLVM LLJIT.
+Implementations
Add an LLVM IR module to the JIT. Return a ResourceTracker
, which when dropped, will
+
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.
Find the symbol with the name sym
in the JIT.
Find the symbol with the name sym
in the JIT.
Panics
Panics if the symbol is not found in the JIT.
-Enable lookup of dynamic symbols available in the current process from the JIT.
+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 UnwindSafe for LLJit
Blanket Implementations
Gets the TypeId
of self
. Read more
Struct llvm_kaleidoscope_rs::llvm::ResourceTracker [−][src]
pub struct ResourceTracker<'jit>(_, _);
Expand description
A resource handle to code added to an LLJit
instance. When a ResourceTracker
handle is
-dropped, the code corresponding to the handle will be removed from the JIT.
Trait Implementations
Executes the destructor for this type. Read more
+Struct llvm_kaleidoscope_rs::llvm::ResourceTracker [−][src]
pub struct ResourceTracker<'jit>(_, _);
Expand description
A resource handle for code added to an LLJit
instance.
When a ResourceTracker
handle is dropped, the code corresponding to the handle will be
+removed from the JIT.