diff --git a/mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td b/mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td --- a/mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td +++ b/mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td @@ -123,7 +123,7 @@ let arguments = (ins IndexAttr:$value); let results = (outs Shape_SizeType:$result); - let assemblyFormat = "attr-dict $value"; + let assemblyFormat = "$value attr-dict"; let hasFolder = 1; } @@ -143,7 +143,7 @@ let arguments = (ins Variadic:$extents); let results = (outs Shape_ShapeType:$shape); - let assemblyFormat = "attr-dict $extents"; + let assemblyFormat = "$extents attr-dict"; let hasFolder = 1; } @@ -219,7 +219,7 @@ let arguments = (ins Index:$arg); let results = (outs Shape_SizeType:$result); - let assemblyFormat = "attr-dict $arg"; + let assemblyFormat = "$arg attr-dict"; let hasFolder = 1; } @@ -268,7 +268,7 @@ let arguments = (ins Shape_SizeType:$lhs, Shape_SizeType:$rhs); let results = (outs Shape_SizeType:$result); - let assemblyFormat = "attr-dict $lhs `,` $rhs"; + let assemblyFormat = "$lhs `,` $rhs attr-dict"; } def Shape_NumElementsOp : Shape_Op<"num_elements", [NoSideEffect]> { @@ -285,7 +285,7 @@ let arguments = (ins Shape_ShapeType:$shape); let results = (outs Shape_SizeType:$result); - let assemblyFormat = "attr-dict $shape"; + let assemblyFormat = "$shape attr-dict"; let hasFolder = 1; } @@ -337,7 +337,7 @@ let arguments = (ins AnyTypeOf<[AnyShaped, Shape_ValueShapeType]>:$arg); let results = (outs Shape_ShapeType:$result); - let assemblyFormat = "attr-dict $arg `:` type($arg)"; + let assemblyFormat = "$arg `:` type($arg) attr-dict"; let hasFolder = 1; } @@ -354,7 +354,7 @@ let arguments = (ins Shape_SizeType:$arg); let results = (outs Index:$result); - let assemblyFormat = "attr-dict $arg"; + let assemblyFormat = "$arg attr-dict"; let hasFolder = 1; }