Skip to content

Commit c02b8a0

Browse files
authored
[MLIR][Linalg] Fix unclosed code block which broke generated docs - NFC (llvm#115763)
llvm#115319 added a tablegen description for an op (MatmulOp) but missed closing one of the code blocks in the description. As a result the generated docs broke, i.e. https://mlir.llvm.org/docs/Dialects/Linalg was broken after this code block.
1 parent bf1c86c commit c02b8a0

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def BroadcastOp : LinalgStructuredBase_Op<"broadcast", [
561561
def MatmulOp : LinalgStructuredBase_Op<"matmul", [
562562
AttrSizedOperandSegments,
563563
LinalgContractionOpInterface]> {
564-
564+
565565
let summary = [{
566566
Performs a matrix multiplication of two 2D inputs without broadcast or transpose.
567567
}];
@@ -593,16 +593,17 @@ def MatmulOp : LinalgStructuredBase_Op<"matmul", [
593593
]
594594
ins(%arg0, %arg1 : memref<3xf32>, memref<5x7xf32>)
595595
outs(%arg2: memref<3x7xf32>)
596-
```
596+
```
597597

598-
Example Broadcast and transpose:
599-
```
600-
linalg.matmul indexing_maps = [
601-
affine_map<(d0, d1, d2) -> (d2, d0)>, // transpose
602-
affine_map<(d0, d1, d2) -> (d2)>, // broadcast
603-
affine_map<(d0, d1, d2) -> (d0, d1)>
604-
]
605-
ins(%arg0, %arg1 : memref<5x3xf32>, memref<7xf32>) outs(%arg2: memref<3x7xf32>)
598+
Example Broadcast and transpose:
599+
```
600+
linalg.matmul indexing_maps = [
601+
affine_map<(d0, d1, d2) -> (d2, d0)>, // transpose
602+
affine_map<(d0, d1, d2) -> (d2)>, // broadcast
603+
affine_map<(d0, d1, d2) -> (d0, d1)>
604+
]
605+
ins(%arg0, %arg1 : memref<5x3xf32>, memref<7xf32>) outs(%arg2: memref<3x7xf32>)
606+
```
606607
}];
607608

608609
let arguments = (ins

0 commit comments

Comments
 (0)