[Mlir-commits] [mlir] [mlir][gpu] Support arith.truncf in subgroup MMA elementwise ops (PR #182499)
Jakub Kuderski
llvmlistbot at llvm.org
Fri Feb 20 07:12:49 PST 2026
================
@@ -270,6 +271,8 @@ convertElementwiseOpToMMA(Operation *op) {
return gpu::MMAElementwiseOp::NEGATEF;
if (isa<arith::ExtFOp>(op))
return gpu::MMAElementwiseOp::EXTF;
+ if (isa<arith::TruncFOp>(op))
+ return gpu::MMAElementwiseOp::TRUNCF;
return std::nullopt;
----------------
kuhar wrote:
The whole thing should probably be a type-switch (feel free to leave as-is though)
https://github.com/llvm/llvm-project/pull/182499
More information about the Mlir-commits
mailing list