Skip to main content

CanonicalizeInterface

Trait CanonicalizeInterface 

Source
pub trait CanonicalizeInterface: Op {
    // Required method
    fn canonicalize(
        &self,
        ctx: &mut Context,
        rewriter: &mut MatchRewriter,
    ) -> Result<()>;

    // Provided method
    fn verify(_op: &dyn Op, _ctx: &Context) -> Result<()>
       where Self: Sized { ... }
}

Required Methods§

Source

fn canonicalize( &self, ctx: &mut Context, rewriter: &mut MatchRewriter, ) -> Result<()>

Provided Methods§

Source

fn verify(_op: &dyn Op, _ctx: &Context) -> Result<()>
where Self: Sized,

Trait Implementations§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl CanonicalizeInterface for ForOp

Source§

impl CanonicalizeInterface for cubecl_ir::dialect::branch::IfOp

Source§

impl CanonicalizeInterface for cubecl_ir::dialect::scf::IfOp

Source§

impl CanonicalizeInterface for cubecl_ir::dialect::branch::SwitchOp

Source§

impl CanonicalizeInterface for cubecl_ir::dialect::scf::SwitchOp

Source§

impl CanonicalizeInterface for WhileOp