projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f104b8
)
[mlir] Add tablegen types for fp8 types
author
Benjamin Kramer
<benny.kra@googlemail.com>
Tue, 22 Nov 2022 19:05:12 +0000
(20:05 +0100)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Tue, 22 Nov 2022 19:13:08 +0000
(20:13 +0100)
For consistency and allowing users easy access to these types.
Differential Revision: https://reviews.llvm.org/D138516
mlir/include/mlir/IR/OpBase.td
patch
|
blob
|
history
diff --git
a/mlir/include/mlir/IR/OpBase.td
b/mlir/include/mlir/IR/OpBase.td
index
da0e2de
..
9c87071
100644
(file)
--- a/
mlir/include/mlir/IR/OpBase.td
+++ b/
mlir/include/mlir/IR/OpBase.td
@@
-490,6
+490,10
@@
def F128 : F<128>;
def BF16 : Type<CPred<"$_self.isBF16()">, "bfloat16 type">,
BuildableType<"$_builder.getBF16Type()">;
+def F8E4M3FN : Type<CPred<"$_self.isFloat8E4M3FN()">, "f8E4M3FN type">,
+ BuildableType<"$_builder.getFloat8E4M3FNType()">;
+def F8E5M2 : Type<CPred<"$_self.isFloat8E5M2()">, "f8E5M2 type">,
+ BuildableType<"$_builder.getFloat8E5M2Type()">;
def AnyComplex : Type<CPred<"$_self.isa<::mlir::ComplexType>()">,
"complex-type", "::mlir::ComplexType">;