@@ -48,10 +48,11 @@ class AllocLikeOp<string mnemonic,
48
48
], traits)> {
49
49
50
50
let arguments = (ins Variadic<Index>:$dynamicSizes,
51
- // The symbolic operands (the ones in square brackets) bind
52
- // to the symbols of the memref's layout map.
53
- Variadic<Index>:$symbolOperands,
54
- Confined<OptionalAttr<I64Attr>, [IntMinValue<0>]>:$alignment);
51
+ // The symbolic operands (the ones in square brackets)
52
+ // bind to the symbols of the memref's layout map.
53
+ Variadic<Index>:$symbolOperands,
54
+ Confined<OptionalAttr<I64Attr>,
55
+ [IntMinValue<0>]>:$alignment);
55
56
let results = (outs Res<AnyMemRef, "", [MemAlloc<resource>]>:$memref);
56
57
57
58
let builders = [
@@ -753,11 +754,9 @@ def MemRef_DmaWaitOp : MemRef_Op<"dma_wait"> {
753
754
dma_wait %tag[%index], %num_elements : memref<1 x i32, (d0) -> (d0), 2>
754
755
```
755
756
}];
756
- let arguments = (ins
757
- AnyMemRef:$tagMemRef,
758
- Variadic<Index>:$tagIndices,
759
- Index:$numElements
760
- );
757
+ let arguments = (ins AnyMemRef:$tagMemRef,
758
+ Variadic<Index>:$tagIndices,
759
+ Index:$numElements);
761
760
let assemblyFormat = [{
762
761
$tagMemRef `[` $tagIndices `]` `,` $numElements attr-dict `:`
763
762
type($tagMemRef)
@@ -853,14 +852,12 @@ def MemRef_GlobalOp : MemRef_Op<"global", [Symbol]> {
853
852
```
854
853
}];
855
854
856
- let arguments = (ins
857
- SymbolNameAttr:$sym_name,
858
- OptionalAttr<StrAttr>:$sym_visibility,
859
- MemRefTypeAttr:$type,
860
- OptionalAttr<AnyAttr>:$initial_value,
861
- UnitAttr:$constant,
862
- OptionalAttr<I64Attr>:$alignment
863
- );
855
+ let arguments = (ins SymbolNameAttr:$sym_name,
856
+ OptionalAttr<StrAttr>:$sym_visibility,
857
+ MemRefTypeAttr:$type,
858
+ OptionalAttr<AnyAttr>:$initial_value,
859
+ UnitAttr:$constant,
860
+ OptionalAttr<I64Attr>:$alignment);
864
861
865
862
let assemblyFormat = [{
866
863
($sym_visibility^)?
@@ -978,10 +975,10 @@ def MemRef_PrefetchOp : MemRef_Op<"prefetch"> {
978
975
}];
979
976
980
977
let arguments = (ins AnyMemRef:$memref, Variadic<Index>:$indices,
981
- BoolAttr:$isWrite,
982
- Confined<I32Attr, [IntMinValue<0>,
983
- IntMaxValue<3>]>:$localityHint,
984
- BoolAttr:$isDataCache);
978
+ BoolAttr:$isWrite,
979
+ Confined<I32Attr, [IntMinValue<0>,
980
+ IntMaxValue<3>]>:$localityHint,
981
+ BoolAttr:$isDataCache);
985
982
986
983
let extraClassDeclaration = [{
987
984
MemRefType getMemRefType() {
@@ -1024,15 +1021,13 @@ def MemRef_ReinterpretCastOp:
1024
1021
```
1025
1022
}];
1026
1023
1027
- let arguments = (ins
1028
- Arg<AnyRankedOrUnrankedMemRef, "", []>:$source,
1029
- Variadic<Index>:$offsets,
1030
- Variadic<Index>:$sizes,
1031
- Variadic<Index>:$strides,
1032
- I64ArrayAttr:$static_offsets,
1033
- I64ArrayAttr:$static_sizes,
1034
- I64ArrayAttr:$static_strides
1035
- );
1024
+ let arguments = (ins Arg<AnyRankedOrUnrankedMemRef, "", []>:$source,
1025
+ Variadic<Index>:$offsets,
1026
+ Variadic<Index>:$sizes,
1027
+ Variadic<Index>:$strides,
1028
+ I64ArrayAttr:$static_offsets,
1029
+ I64ArrayAttr:$static_sizes,
1030
+ I64ArrayAttr:$static_strides);
1036
1031
let results = (outs AnyMemRef:$result);
1037
1032
1038
1033
let assemblyFormat = [{
@@ -1130,10 +1125,8 @@ def MemRef_ReshapeOp: MemRef_Op<"reshape", [
1130
1125
```
1131
1126
}];
1132
1127
1133
- let arguments = (ins
1134
- AnyRankedOrUnrankedMemRef:$source,
1135
- MemRefRankOf<[AnySignlessInteger, Index], [1]>:$shape
1136
- );
1128
+ let arguments = (ins AnyRankedOrUnrankedMemRef:$source,
1129
+ MemRefRankOf<[AnySignlessInteger, Index], [1]>:$shape);
1137
1130
let results = (outs AnyRankedOrUnrankedMemRef:$result);
1138
1131
1139
1132
let builders = [OpBuilder<
@@ -1504,15 +1497,13 @@ def SubViewOp : BaseOpWithOffsetSizesAndStrides<
1504
1497
}
1505
1498
}];
1506
1499
1507
- let arguments = (ins
1508
- AnyMemRef:$source,
1509
- Variadic<Index>:$offsets,
1510
- Variadic<Index>:$sizes,
1511
- Variadic<Index>:$strides,
1512
- I64ArrayAttr:$static_offsets,
1513
- I64ArrayAttr:$static_sizes,
1514
- I64ArrayAttr:$static_strides
1515
- );
1500
+ let arguments = (ins AnyMemRef:$source,
1501
+ Variadic<Index>:$offsets,
1502
+ Variadic<Index>:$sizes,
1503
+ Variadic<Index>:$strides,
1504
+ I64ArrayAttr:$static_offsets,
1505
+ I64ArrayAttr:$static_sizes,
1506
+ I64ArrayAttr:$static_strides);
1516
1507
let results = (outs AnyMemRef:$result);
1517
1508
1518
1509
let assemblyFormat = [{
@@ -1774,8 +1765,8 @@ def MemRef_ViewOp : MemRef_Op<"view", [
1774
1765
}];
1775
1766
1776
1767
let arguments = (ins MemRefRankOf<[I8], [1]>:$source,
1777
- Index:$byte_shift,
1778
- Variadic<Index>:$sizes);
1768
+ Index:$byte_shift,
1769
+ Variadic<Index>:$sizes);
1779
1770
let results = (outs AnyMemRef);
1780
1771
1781
1772
let extraClassDeclaration = [{
0 commit comments