Skip to content

Commit 43687da

Browse files
committed
[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
1 parent 5c03c05 commit 43687da

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

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

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,26 +1717,27 @@ def Tosa_CastOp: Tosa_Op<"cast", [Pure,
17171717

17181718
let description = [{
17191719
Performs a set of permissible cast operations
1720-
Mode Input Output
1721-
---------------------------------------
1722-
signed 8 to bool int8 Boolean
1723-
signed 16 to bool int16 Boolean
1724-
signed 32 to bool int32 Boolean
1725-
bool to 8 Boolean int8
1726-
bool to 16 Boolean int16
1727-
bool to 32 Boolean int32
1728-
signed 8 to signed 16 int8 int16
1729-
signed 8 to signed 32 int8 int32
1730-
signed 16 to signed 8 int16 int8
1731-
signed 16 to signed 32 int16 int32
1732-
signed 32 to signed 8 int32 int8
1733-
signed 32 to signed 16 int32 int16
1734-
float to signed 8 float int8
1735-
float to signed 16 float int16
1736-
signed 8 to float int8 float
1737-
signed 16 to float int16 float
1738-
float 32 to float 64 float32 float64
1739-
float 64 to float 32 float64 float32
1720+
1721+
| Mode | Input | Output |
1722+
|--------------------------|---------|---------|
1723+
| signed 8 to bool | int8 | Boolean |
1724+
| signed 16 to bool | int16 | Boolean |
1725+
| signed 32 to bool | int32 | Boolean |
1726+
| bool to 8 | Boolean | int8 |
1727+
| bool to 16 | Boolean | int16 |
1728+
| bool to 32 | Boolean | int32 |
1729+
| signed 8 to signed 16 | int8 | int16 |
1730+
| signed 8 to signed 32 | int8 | int32 |
1731+
| signed 16 to signed 8 | int16 | int8 |
1732+
| signed 16 to signed 32 | int16 | int32 |
1733+
| signed 32 to signed 8 | int32 | int8 |
1734+
| signed 32 to signed 16 | int32 | int16 |
1735+
| float to signed 8 | float | int8 |
1736+
| float to signed 16 | float | int16 |
1737+
| signed 8 to float | int8 | float |
1738+
| signed 16 to float | int16 | float |
1739+
| float 32 to float 64 | float32 | float64 |
1740+
| float 64 to float 32 | float64 | float32 |
17401741
}];
17411742

17421743
let arguments = (ins

0 commit comments

Comments
 (0)