pub fn operand_shape_keys(
operands: &[Operand],
out: &mut [OperandShapeKey],
) -> Result<usize, EncodeError>Expand description
Computes packed operand-shape keys for all materialized flattenings of operands.
Some operands can contribute optional flattened fields (for example bare [base]
memory offsets). This function returns one key per valid materialized shape.
ยงErrors
Returns EncodeError when flattening fails or out is too small.