pub trait MaterializableOp: Op {
// Required method
fn materialize(
&self,
ctx: &mut Context,
result_ty: Vec<TypeHandle>,
operands: Vec<Value>,
attributes: AttributeDict,
) -> Ptr<Operation>;
// Provided method
fn verify(_op: &dyn Op, _ctx: &Context) -> Result<()>
where Self: Sized { ... }
}Expand description
Op that can be rematerialized from a set of operands. Should be implemented for anything that doesn’t have regions or successors.
Required Methods§
fn materialize( &self, ctx: &mut Context, result_ty: Vec<TypeHandle>, operands: Vec<Value>, attributes: AttributeDict, ) -> Ptr<Operation>
Provided Methods§
Trait Implementations§
impl OpInterfaceMarker for dyn MaterializableOp
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".