summaryrefslogtreecommitdiffstats
path: root/mlir/include
diff options
context:
space:
mode:
authorJacques Pienaar <jpienaar@google.com>2019-12-18 10:48:02 -0800
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-12-18 10:57:59 -0800
commitd7e2cc9bd1d17cbc7182bd904a9173817745525a (patch)
tree9cf94f5abf6ca3992c5e5089ee7bf2cec9cbda44 /mlir/include
parent2666b97314ad1b50f88fcc4376ae941f601f67ea (diff)
downloadbcm5719-llvm-d7e2cc9bd1d17cbc7182bd904a9173817745525a.tar.gz
bcm5719-llvm-d7e2cc9bd1d17cbc7182bd904a9173817745525a.zip
Update code block designations
'```mlir' is used to indicate the code block is MLIR code/should use MLIR syntax highlighting, while '{.mlir}' was a markdown extension that used a style file to color the background differently of the code block. The background color extension was a custom one that we can retire given we have syntax highlighting. Also change '```td' to '```tablegen' to match chroma syntax highlighting designation. PiperOrigin-RevId: 286222976
Diffstat (limited to 'mlir/include')
-rw-r--r--mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.h2
-rw-r--r--mlir/include/mlir/Dialect/Linalg/IR/LinalgTypes.h2
-rw-r--r--mlir/include/mlir/IR/AffineMap.h12
3 files changed, 8 insertions, 8 deletions
diff --git a/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.h b/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.h
index 41155701b8d..2226b5ee6e4 100644
--- a/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.h
+++ b/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.h
@@ -67,7 +67,7 @@ std::string generateLibraryCallName(Operation *op);
/// `A(i, k) * B(k, j) -> C(i, j)` will have the following, ordered, list of
/// affine maps:
///
-/// ```{.mlir}
+/// ```mlir
/// (
/// (i, j, k) -> (i, k),
/// (i, j, k) -> (k, j),
diff --git a/mlir/include/mlir/Dialect/Linalg/IR/LinalgTypes.h b/mlir/include/mlir/Dialect/Linalg/IR/LinalgTypes.h
index 181a79ce38d..f779c3de6ae 100644
--- a/mlir/include/mlir/Dialect/Linalg/IR/LinalgTypes.h
+++ b/mlir/include/mlir/Dialect/Linalg/IR/LinalgTypes.h
@@ -46,7 +46,7 @@ public:
/// It is constructed by calling the linalg.range op with three values index of
/// index type:
///
-/// ```{.mlir}
+/// ```mlir
/// func @foo(%arg0 : index, %arg1 : index, %arg2 : index) {
/// %0 = linalg.range %arg0:%arg1:%arg2 : !linalg.range
/// }
diff --git a/mlir/include/mlir/IR/AffineMap.h b/mlir/include/mlir/IR/AffineMap.h
index ab07cfac227..abd3712b0e1 100644
--- a/mlir/include/mlir/IR/AffineMap.h
+++ b/mlir/include/mlir/IR/AffineMap.h
@@ -180,27 +180,27 @@ AffineMap simplifyAffineMap(AffineMap map);
///
/// Example 1:
///
-/// ```{.mlir}
+/// ```mlir
/// (d0, d1, d2) -> (d1, d1, d0, d2, d1, d2, d1, d0)
/// 0 2 3
/// ```
///
/// returns:
///
-/// ```{.mlir}
+/// ```mlir
/// (d0, d1, d2, d3, d4, d5, d6, d7) -> (d2, d0, d3)
/// ```
///
/// Example 2:
///
-/// ```{.mlir}
+/// ```mlir
/// (d0, d1, d2) -> (d1, d0 + d1, d0, d2, d1, d2, d1, d0)
/// 0 2 3
/// ```
///
/// returns:
///
-/// ```{.mlir}
+/// ```mlir
/// (d0, d1, d2, d3, d4, d5, d6, d7) -> (d2, d0, d3)
/// ```
AffineMap inversePermutation(AffineMap map);
@@ -214,7 +214,7 @@ AffineMap inversePermutation(AffineMap map);
/// Example:
/// When applied to the following list of 3 affine maps,
///
-/// ```{.mlir}
+/// ```mlir
/// {
/// (i, j, k) -> (i, k),
/// (i, j, k) -> (k, j),
@@ -224,7 +224,7 @@ AffineMap inversePermutation(AffineMap map);
///
/// Returns the map:
///
-/// ```{.mlir}
+/// ```mlir
/// (i, j, k) -> (i, k, k, j, i, j)
/// ```
AffineMap concatAffineMaps(ArrayRef<AffineMap> maps);
OpenPOWER on IntegriCloud