[Mlir-commits] [mlir] [MLIR][AMDGPU] Add OCP FP8 support for new hardware (PR #106160)

Paul C Fuqua llvmlistbot at llvm.org
Wed Sep 18 13:40:28 PDT 2024


================
@@ -272,14 +272,16 @@ LogicalResult MFMAOp::verify() {
   }
 
   Type sourceBType = getSourceB().getType();
-  if (sourceElem.isFloat8E5M2FNUZ() || sourceElem.isFloat8E4M3FNUZ()) {
+  if (sourceElem.isFloat8E5M2FNUZ() || sourceElem.isFloat8E4M3FNUZ() ||
+      sourceElem.isFloat8E5M2() || sourceElem.isFloat8E4M3FN()) {
----------------
pcf000 wrote:

I invented isFloat(), by analogy with isInteger().  Is that what you had in mind?

https://github.com/llvm/llvm-project/pull/106160


More information about the Mlir-commits mailing list