Skip to main content

SymbolUserOpInterface

Trait SymbolUserOpInterface 

Source
pub trait SymbolUserOpInterface: Op {
    // Required methods
    fn verify_symbol_uses(
        &self,
        ctx: &Context,
        symbol_tables: &mut SymbolTableCollection,
    ) -> Result<(), Error>;
    fn used_symbols(&self, ctx: &Context) -> Vec<Identifier>;
}

Required Methods§

Source

fn verify_symbol_uses( &self, ctx: &Context, symbol_tables: &mut SymbolTableCollection, ) -> Result<(), Error>

Verify the symbol uses held by this operation. This is called when verifying a symbol table operation that (possibly transitively) contains this operation.

Source

fn used_symbols(&self, ctx: &Context) -> Vec<Identifier>

Returns the list of symbols used by this operation.

Trait Implementations§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl SymbolUserOpInterface for cubecl_ir::dialect::matrix::ElementwiseOp

Source§

impl SymbolUserOpInterface for cubecl_ir::dialect::ssa_matrix::ElementwiseOp