I would like to define an operation which can have optional memref operands and attribute. I have the following question:
Based on some examples that I found I see that I need to add the trait AttrSizedOperandSegments and then define 1D i32 elements attribute ‘operand_segment_sizes’, can someone explain what does mean please? is it the numbe of operand or their sizes??
How can declare in ODS that either a memref operand or an attribute (FlatSymbolRefAttr) is optional: I mean that my operation should either use the memref operand or use the attribute.