waffle::op_traits

Function op_inputs

Source
pub fn op_inputs(
    module: &Module<'_>,
    op_stack: Option<&[(Type, Value)]>,
    op: &Operator,
) -> Result<Cow<'static, [Type]>>
Expand description

Given a module and an existing operand stack for context, provide the type(s) that a given operator requires as inputs.