pub struct RdoEngine { /* private fields */ }Expand description
RDO engine for mode decision.
Implementations§
Source§impl RdoEngine
impl RdoEngine
Sourcepub fn new(config: &OptimizerConfig) -> OxiResult<Self>
pub fn new(config: &OptimizerConfig) -> OxiResult<Self>
Creates a new RDO engine.
Sourcepub fn evaluate_modes<F>(
&self,
candidates: &[ModeCandidate],
eval_fn: F,
) -> RdoResult
pub fn evaluate_modes<F>( &self, candidates: &[ModeCandidate], eval_fn: F, ) -> RdoResult
Evaluates multiple mode decisions and returns the best one.
Sourcepub fn optimization_level(&self) -> OptimizationLevel
pub fn optimization_level(&self) -> OptimizationLevel
Gets the optimization level.
Sourcepub fn should_perform_full_rdo(&self) -> bool
pub fn should_perform_full_rdo(&self) -> bool
Checks if the engine should perform full RDO.
Sourcepub fn should_use_satd(&self) -> bool
pub fn should_use_satd(&self) -> bool
Checks if the engine should use SATD instead of SAD.
Auto Trait Implementations§
impl Freeze for RdoEngine
impl RefUnwindSafe for RdoEngine
impl Send for RdoEngine
impl Sync for RdoEngine
impl Unpin for RdoEngine
impl UnsafeUnpin for RdoEngine
impl UnwindSafe for RdoEngine
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
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