let arguments = (ins Shape_SizeType:$lhs, Shape_SizeType:$rhs);
let results = (outs Shape_SizeType:$result);
+
+ let assemblyFormat = "$lhs `,` $rhs attr-dict";
}
def Shape_BroadcastOp : Shape_Op<"broadcast", []> {
%init = shape.const_size 0
%num_elements = shape.reduce(%shape, %init) -> !shape.size {
^bb0(%index: index, %dim: !shape.size, %lci: !shape.size):
- %acc = "shape.add"(%lci, %dim) : (!shape.size, !shape.size) -> !shape.size
+ %acc = shape.add %lci, %dim
shape.yield %acc : !shape.size
}
return %num_elements : !shape.size