Skip to main content

SimplifyInterface

Trait SimplifyInterface 

Source
pub trait SimplifyInterface: Op {
    // Required method
    fn check_fold(
        &self,
        ctx: &Context,
        operand_attrs: &[Option<AttrObj>],
    ) -> Option<Value>;

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

Required Methods§

Source

fn check_fold( &self, ctx: &Context, operand_attrs: &[Option<AttrObj>], ) -> Option<Value>

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 SimplifyInterface for BitwiseAndOp

Source§

impl SimplifyInterface for BitwiseOrOp

Source§

impl SimplifyInterface for BitwiseXorOp

Source§

impl SimplifyInterface for BoolAndOp

Source§

impl SimplifyInterface for BoolOrOp

Source§

impl SimplifyInterface for CastOp

Source§

impl SimplifyInterface for CopyOp

Source§

impl SimplifyInterface for FAddOp

Source§

impl SimplifyInterface for FDivOp

Source§

impl SimplifyInterface for FMaxOp

Source§

impl SimplifyInterface for FMinOp

Source§

impl SimplifyInterface for FMulOp

Source§

impl SimplifyInterface for FRemOp

Source§

impl SimplifyInterface for FSubOp

Source§

impl SimplifyInterface for IAddOp

Source§

impl SimplifyInterface for IMulOp

Source§

impl SimplifyInterface for ISubOp

Source§

impl SimplifyInterface for ReinterpretCastOp

Source§

impl SimplifyInterface for SDivOp

Source§

impl SimplifyInterface for SMaxOp

Source§

impl SimplifyInterface for SMinOp

Source§

impl SimplifyInterface for SMulHiOp

Source§

impl SimplifyInterface for SRemOp

Source§

impl SimplifyInterface for SaturatingSAddOp

Source§

impl SimplifyInterface for SaturatingSSubOp

Source§

impl SimplifyInterface for SaturatingUAddOp

Source§

impl SimplifyInterface for SaturatingUSubOp

Source§

impl SimplifyInterface for SelectOp

Source§

impl SimplifyInterface for ShiftLeftOp

Source§

impl SimplifyInterface for ShiftRightOp

Source§

impl SimplifyInterface for UDivOp

Source§

impl SimplifyInterface for UMaxOp

Source§

impl SimplifyInterface for UMinOp

Source§

impl SimplifyInterface for UMulHiOp

Source§

impl SimplifyInterface for URemOp