[][src]Struct cranelift_codegen_meta::cdsl::xform::Transform

pub(crate) struct Transform {
    pub src: DefIndex,
    pub dst: Vec<DefIndex>,
    pub var_pool: VarPool,
    pub def_pool: DefPool,
    pub block_pool: BlockPool,
    pub const_pool: ConstPool,
    pub type_env: TypeEnvironment,
}

An instruction transformation consists of a source and destination pattern.

Patterns are expressed in register transfer language as tuples of Def or Expr nodes. A pattern may optionally have a sequence of TypeConstraints, that additionally limit the set of cases when it applies.

The source pattern can contain only a single instruction.

Fields

src: DefIndexdst: Vec<DefIndex>var_pool: VarPooldef_pool: DefPoolblock_pool: BlockPoolconst_pool: ConstPooltype_env: TypeEnvironment

Methods

impl Transform[src]

fn new(src: DummyDef, dst: Vec<DummyDef>) -> Self[src]

fn verify_legalize(&self)[src]

Auto Trait Implementations

impl !RefUnwindSafe for Transform

impl !Send for Transform

impl !Sync for Transform

impl Unpin for Transform

impl !UnwindSafe for Transform

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.