[Mlir-commits] [mlir] [mlir][tosa] Support more float types in resource transpose folding (PR #213226)

Sayan Saha llvmlistbot at llvm.org
Wed Aug 5 05:16:10 PDT 2026


================
@@ -231,6 +254,19 @@ DenseElementsAttr transpose(ElementsAttr attr, ShapedType inputType,
     if (auto data = tryGetDenseResourceValues<float>(attr);
         data && elementTy.isF32())
       return transposeType(*data, inputType, outputType, permValues);
+
+    if (auto data = tryGetDenseResourceValues<uint8_t>(attr);
+        data && isa<Float4E2M1FNType, Float8E4M3FNType, Float8E5M2Type,
----------------
sahas3 wrote:

I don't know how thorough the LIT tests should be since it's covering the same code-path but looks like `f8E4M3FN` test point is missing.


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


More information about the Mlir-commits mailing list