Skip to main content

IKunIlpExtractor

Struct IKunIlpExtractor 

Source
pub struct IKunIlpExtractor<'a, A: Analysis<IKun>, C: CostModel> {
    pub egraph: &'a EGraph<IKun, A>,
    pub cost_model: C,
}
Expand description

A DAG-aware extractor that attempts to find the optimal extraction considering node sharing. This is a placeholder for a full ILP solver.

Fields§

§egraph: &'a EGraph<IKun, A>§cost_model: C

Implementations§

Source§

impl<'a, A: Analysis<IKun>, C: CostModel + Clone> IKunIlpExtractor<'a, A, C>

Source

pub fn new(egraph: &'a EGraph<IKun, A>, cost_model: C) -> Self

Source

pub fn extract(&self, id: Id) -> IKunTree
where A::Data: HasDebugInfo,

Performs extraction. Currently uses the greedy extractor as a fallback. In a full implementation, this would use an ILP solver to find the minimum cost subgraph that covers the root e-class.

Auto Trait Implementations§

§

impl<'a, A, C> Freeze for IKunIlpExtractor<'a, A, C>
where C: Freeze,

§

impl<'a, A, C> !RefUnwindSafe for IKunIlpExtractor<'a, A, C>

§

impl<'a, A, C> Send for IKunIlpExtractor<'a, A, C>
where C: Send, A: Send + Sync, <A as Analysis<IKun>>::Data: Send + Sync,

§

impl<'a, A, C> Sync for IKunIlpExtractor<'a, A, C>
where C: Sync, A: Send + Sync, <A as Analysis<IKun>>::Data: Send + Sync,

§

impl<'a, A, C> Unpin for IKunIlpExtractor<'a, A, C>
where C: Unpin,

§

impl<'a, A, C> UnsafeUnpin for IKunIlpExtractor<'a, A, C>
where C: UnsafeUnpin,

§

impl<'a, A, C> !UnwindSafe for IKunIlpExtractor<'a, A, C>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.