pub struct JitCompiler { /* private fields */ }Expand description
JIT compiler.
Implementations§
Source§impl JitCompiler
impl JitCompiler
Sourcepub fn with_optimizer(optimizer: Optimizer) -> Self
pub fn with_optimizer(optimizer: Optimizer) -> Self
Creates a compiler with custom optimizer.
Sourcepub fn compile(&self, graph: &Graph) -> JitResult<CompiledFunction>
pub fn compile(&self, graph: &Graph) -> JitResult<CompiledFunction>
Compiles a graph into an executable function.
Sourcepub fn cache_stats(&self) -> CacheStats
pub fn cache_stats(&self) -> CacheStats
Returns cache statistics.
Sourcepub fn clear_cache(&self)
pub fn clear_cache(&self)
Clears the compilation cache.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for JitCompiler
impl !RefUnwindSafe for JitCompiler
impl Send for JitCompiler
impl Sync for JitCompiler
impl Unpin for JitCompiler
impl UnwindSafe for JitCompiler
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