[Mlir-commits] [mlir] 3326edd - [mlir] fix documentation format in SCF

Alex Zinenko llvmlistbot at llvm.org
Tue Jun 7 02:52:40 PDT 2022


Author: Alex Zinenko
Date: 2022-06-07T11:51:24+02:00
New Revision: 3326eddcd1236c6d4763cd2d8ea6adf5dbf51adf

URL: https://github.com/llvm/llvm-project/commit/3326eddcd1236c6d4763cd2d8ea6adf5dbf51adf
DIFF: https://github.com/llvm/llvm-project/commit/3326eddcd1236c6d4763cd2d8ea6adf5dbf51adf.diff

LOG: [mlir] fix documentation format in SCF

Four leading spaces are interpreted as a code block in markdown. Unless
used consistently in ODS op description, they cannot be stripped away by
the tablegen backend, which results in malformed markdown being
generated.

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/SCF/SCFOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/SCF/SCFOps.td b/mlir/include/mlir/Dialect/SCF/SCFOps.td
index 3e20412b17369..32b51b72f501b 100644
--- a/mlir/include/mlir/Dialect/SCF/SCFOps.td
+++ b/mlir/include/mlir/Dialect/SCF/SCFOps.td
@@ -357,7 +357,8 @@ def ForeachThreadOp : SCF_Op<"foreach_thread", [
     writes to memory is unspecified across threads.
 
     Example:
-    ```
+
+    ```mlir
     //
     // Sequential context.
     //
@@ -392,8 +393,7 @@ def ForeachThreadOp : SCF_Op<"foreach_thread", [
     // Implicit synchronization point.
     // Sequential context.
     //
-```
-
+    ```
   }];
   let arguments = (ins Variadic<Index>:$num_threads);
 


        


More information about the Mlir-commits mailing list