[Mlir-commits] [mlir] 43687da - [mlir][doc] Fix the layout of the table for the tosa.cast permissible operations

Kai Sasaki llvmlistbot at llvm.org
Thu Jun 15 16:59:50 PDT 2023


Author: Kai Sasaki
Date: 2023-06-16T08:59:40+09:00
New Revision: 43687da7a0d6ba13b1428037e8587568cc40b449

URL: https://github.com/llvm/llvm-project/commit/43687da7a0d6ba13b1428037e8587568cc40b449
DIFF: https://github.com/llvm/llvm-project/commit/43687da7a0d6ba13b1428037e8587568cc40b449.diff

LOG: [mlir][doc] Fix the layout of the table for the tosa.cast permissible operations

We can make the table for the `tosa.cast` permissible operations readable by utilizing the markdown table format.

{F27924602}

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D152992

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
index 613b9e325bb03..8c8a862e87d42 100644
--- a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
+++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
@@ -1717,26 +1717,27 @@ def Tosa_CastOp: Tosa_Op<"cast", [Pure,
 
   let description = [{
     Performs a set of permissible cast operations
-        Mode                    Input   Output
-        ---------------------------------------
-        signed 8 to bool        int8    Boolean
-        signed 16 to bool       int16   Boolean
-        signed 32 to bool       int32   Boolean
-        bool to 8               Boolean int8
-        bool to 16              Boolean int16
-        bool to 32              Boolean int32
-        signed 8 to signed 16   int8    int16
-        signed 8 to signed 32   int8    int32
-        signed 16 to signed 8   int16   int8
-        signed 16 to signed 32  int16   int32
-        signed 32 to signed 8   int32   int8
-        signed 32 to signed 16  int32   int16
-        float to signed 8       float   int8
-        float to signed 16      float   int16
-        signed 8 to float       int8    float
-        signed 16 to float      int16   float
-        float 32 to float 64    float32 float64
-        float 64 to float 32    float64 float32
+
+    | Mode                     | Input   | Output  |
+    |--------------------------|---------|---------|
+    | signed 8 to bool         | int8    | Boolean | 
+    | signed 16 to bool        | int16   | Boolean | 
+    | signed 32 to bool        | int32   | Boolean | 
+    | bool to 8                | Boolean | int8    |
+    | bool to 16               | Boolean | int16   |
+    | bool to 32               | Boolean | int32   |
+    | signed 8 to signed 16    | int8    | int16   |
+    | signed 8 to signed 32    | int8    | int32   |
+    | signed 16 to signed 8    | int16   | int8    |
+    | signed 16 to signed 32   | int16   | int32   |
+    | signed 32 to signed 8    | int32   | int8    |
+    | signed 32 to signed 16   | int32   | int16   |
+    | float to signed 8        | float   | int8    |
+    | float to signed 16       | float   | int16   |
+    | signed 8 to float        | int8    | float   |
+    | signed 16 to float       | int16   | float   |
+    | float 32 to float 64     | float32 | float64 | 
+    | float 64 to float 32     | float64 | float32 | 
   }];
 
   let arguments = (ins


        


More information about the Mlir-commits mailing list