[mlir][NFC] Fix the tags for various doc code blocks
authorRiver Riddle <riddleriver@gmail.com>
Mon, 16 May 2022 23:45:51 +0000 (16:45 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Mon, 16 May 2022 23:46:13 +0000 (16:46 -0700)
mlir/docs/AttributesAndTypes.md
mlir/docs/DataLayout.md
mlir/docs/Interfaces.md
mlir/docs/OpDefinitions.md
mlir/docs/PassManagement.md

index d0b9225..aaa420f 100644 (file)
@@ -584,7 +584,7 @@ template <> struct FieldParser<MyParameter> {
 
 Example of using ODS parameter classes:
 
-```
+```tablegen
 def MyParameter : TypeParameter<"std::pair<int, int>", "pair of ints"> {
   let printer = [{ $_printer << $_self.first << " * " << $_self.second }];
   let parser = [{ [&] -> FailureOr<std::pair<int, int>> {
@@ -655,7 +655,7 @@ the equality operator is used.
 
 For example:
 
-```
+```tablegen
 let parameters = (ins DefaultValuedParameter<"Optional<int>", "5">:$a)
 let mnemonic = "default_valued";
 let assemblyFormat = "(`<` $a^ `>`)?";
@@ -663,7 +663,7 @@ let assemblyFormat = "(`<` $a^ `>`)?";
 
 Which will look like:
 
-```
+```mlir
 !test.default_valued     // a = 5
 !test.default_valued<10> // a = 10
 ```
@@ -671,7 +671,7 @@ Which will look like:
 For optional `Attribute` or `Type` parameters, the current MLIR context is
 available through `$_ctx`. E.g.
 
-```
+```tablegen
 DefaultValuedParameter<"IntegerType", "IntegerType::get($_ctx, 32)">
 ```
 
index 4ffbf03..a1eda21 100644 (file)
@@ -113,7 +113,7 @@ specific to the type.
 For example, a data layout specification may be an actual list of pairs with
 simple custom syntax resembling the following:
 
-```
+```mlir
 #my_dialect.layout_spec<
   #my_dialect.layout_entry<!my_dialect.type, size=42>,
   #my_dialect.layout_entry<"my_dialect.endianness", "little">,
@@ -259,7 +259,7 @@ Index type is an integer type used for target-specific size information in,
 e.g., `memref` operations. Its data layout is parameterized by a single integer
 data layout entry that specifies its bitwidth. For example,
 
-```
+```mlir
 module attributes { dlti.dl_spec = #dlti.dl_spec<
   #dlti.dl_entry<index, 32>
 >} {}
index 00fbd60..8ec20a9 100644 (file)
@@ -459,7 +459,7 @@ operation if the operation specifies the interface with
 
 Examples:
 
-~~~tablegen
+```tablegen
 def MyInterface : OpInterface<"MyInterface"> {
   let description = [{
     This is the description of the interface. It provides concrete information
@@ -630,7 +630,7 @@ def OpWithInferTypeInterfaceOp : Op<...
 // the generation of a declaration for those methods.
 def OpWithOverrideInferTypeInterfaceOp : Op<...
     [DeclareOpInterfaceMethods<MyInterface, ["getNumWithDefault"]>]> { ... }
-~~~
+```
 
 Note: Existing operation interfaces defined in C++ can be accessed in the ODS
 framework via the `OpInterfaceTrait` class.
index ad0232f..b3399d8 100644 (file)
@@ -1530,7 +1530,7 @@ mlir-tblgen --gen-op-interface-doc -I /path/to/mlir/include /path/to/input/td/fi
 Classes/defs can be marked as deprecated by using the `Deprecate` helper class,
 e.g.,
 
-```td
+```tablegen
 def OpTraitA : NativeOpTrait<"OpTraitA">, Deprecated<"use `bar` instead">;
 ```
 
index 524e90e..69e16c5 100644 (file)
@@ -375,7 +375,7 @@ operation type. Nesting in this sense, corresponds to the
 
 For example, the following `.mlir`:
 
-```
+```mlir
 module {
   spv.module "Logical" "GLSL450" {
     func @foo() {