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

Thibaut Goetghebuer-Planchon llvmlistbot at llvm.org
Wed Aug 5 08:24:54 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,
----------------
Tessil wrote:

Done, I added an extra test, thanks.

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


More information about the Mlir-commits mailing list