pub struct FunctionOptimizer { /* private fields */ }Expand description
Function optimizer and fusion engine
Implementations§
Source§impl FunctionOptimizer
impl FunctionOptimizer
Sourcepub fn new(config: OptimizationConfig) -> Self
pub fn new(config: OptimizationConfig) -> Self
Create a new function optimizer
Sourcepub fn register_function(&mut self, function_info: FunctionInfo)
pub fn register_function(&mut self, function_info: FunctionInfo)
Register a function for optimization tracking
Sourcepub fn optimize_functions(
&mut self,
function_ids: &[usize],
) -> Result<Vec<OptimizationResult>>
pub fn optimize_functions( &mut self, function_ids: &[usize], ) -> Result<Vec<OptimizationResult>>
Optimize a sequence of functions
Sourcepub fn get_optimization_stats(&self) -> OptimizationStats
pub fn get_optimization_stats(&self) -> OptimizationStats
Get optimization statistics
Auto Trait Implementations§
impl Freeze for FunctionOptimizer
impl RefUnwindSafe for FunctionOptimizer
impl Send for FunctionOptimizer
impl Sync for FunctionOptimizer
impl Unpin for FunctionOptimizer
impl UnsafeUnpin for FunctionOptimizer
impl UnwindSafe for FunctionOptimizer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more