Skip to content

Commit 938a6f7

Browse files
committed
-Formats example IR for the linalg.*matmul ops for syntax highlighting.
1 parent 9b018a7 commit 938a6f7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ def MatmulOp : LinalgStructuredBase_Op<"matmul", [
689689
the maps if specified.
690690

691691
Example Transpose:
692-
```
692+
```mlir
693693
linalg.matmul
694694
indexing_maps = [affine_map<(m, n, k) -> (k, m)>, // transpose
695695
affine_map<(m, n, k) -> (k, n)>,
@@ -699,7 +699,7 @@ def MatmulOp : LinalgStructuredBase_Op<"matmul", [
699699
```
700700

701701
Example Broadcast:
702-
```
702+
```mlir
703703
linalg.matmul
704704
indexing_maps = [affine_map<(m, n, k) -> (k)>, // broadcast
705705
affine_map<(m, n, k) -> (k, n)>,
@@ -709,7 +709,7 @@ def MatmulOp : LinalgStructuredBase_Op<"matmul", [
709709
```
710710

711711
Example Broadcast and transpose:
712-
```
712+
```mlir
713713
linalg.matmul
714714
indexing_maps = [affine_map<(m, n, k) -> (k, m)>, // transpose
715715
affine_map<(m, n, k) -> (k)>, // broadcast
@@ -951,7 +951,7 @@ def BatchMatmulOp : LinalgStructuredBase_Op<"batch_matmul", !listconcat([AttrSiz
951951
arguments if specified.
952952

953953
Example Transpose:
954-
```
954+
```mlir
955955
linalg.batch_matmul
956956
indexing_maps = [affine_map<(batch, m, n, k) -> (batch, k, m)>, // transpose
957957
affine_map<(batch, m, n, k) -> (batch, k, n)>,
@@ -961,7 +961,7 @@ def BatchMatmulOp : LinalgStructuredBase_Op<"batch_matmul", !listconcat([AttrSiz
961961
```
962962

963963
Example Broadcast:
964-
```
964+
```mlir
965965
linalg.batch_matmul
966966
indexing_maps = [affine_map<(batch, m, n, k) -> (k)>, // broadcast
967967
affine_map<(batch, m, n, k) -> (batch, k, n)>,
@@ -971,7 +971,7 @@ def BatchMatmulOp : LinalgStructuredBase_Op<"batch_matmul", !listconcat([AttrSiz
971971
```
972972

973973
Example Broadcast and Transpose:
974-
```
974+
```mlir
975975
linalg.batch_matmul
976976
indexing_maps = [affine_map<(batch, m, n, k) -> (m, k)>, // broadcast
977977
affine_map<(batch, m, n, k) -> (batch, n, k)>, // transpose
@@ -1079,7 +1079,7 @@ def BatchReduceMatmulOp : LinalgStructuredBase_Op<"batch_reduce_matmul", [
10791079
arguments if specified.
10801080

10811081
Example Transpose:
1082-
```
1082+
```mlir
10831083
linalg.batch_reduce_matmul
10841084
indexing_maps = [affine_map<(batch, m, n, k) -> (batch, k, m)>, // transpose
10851085
affine_map<(batch, m, n, k) -> (batch, k, n)>,
@@ -1089,7 +1089,7 @@ def BatchReduceMatmulOp : LinalgStructuredBase_Op<"batch_reduce_matmul", [
10891089
```
10901090

10911091
Example Broadcast:
1092-
```
1092+
```mlir
10931093
linalg.batch_reduce_matmul
10941094
indexing_maps = [affine_map<(batch, m, n, k) -> (k)>, // broadcast
10951095
affine_map<(batch, m, n, k) -> (batch, k, n)>,
@@ -1099,7 +1099,7 @@ def BatchReduceMatmulOp : LinalgStructuredBase_Op<"batch_reduce_matmul", [
10991099
```
11001100

11011101
Example Broadcast and Transpose:
1102-
```
1102+
```mlir
11031103
linalg.batch_reduce_matmul
11041104
indexing_maps = [affine_map<(batch, m, n, k) -> (m, k)>, // broadcast
11051105
affine_map<(batch, m, n, k) -> (batch, n, k)>, // transpose

0 commit comments

Comments
 (0)