[Mlir-commits] [mlir] [mlir][arith] Add ElementwiseMappable to `arith.trunci` (PR #145000)

Matthias Springer llvmlistbot at llvm.org
Fri Jun 20 02:07:43 PDT 2025


https://github.com/matthias-springer created https://github.com/llvm/llvm-project/pull/145000

This trait was accidentally dropped in #144863.

>From 57c2b92736c9e7739e7961105ee9d56c4748cb38 Mon Sep 17 00:00:00 2001
From: Matthias Springer <me at m-sp.org>
Date: Fri, 20 Jun 2025 09:06:37 +0000
Subject: [PATCH] [mlir][arith] Add ElementwiseMappable to `arith.trunci`

This trait was accidentally dropped in #144863.
---
 mlir/include/mlir/Dialect/Arith/IR/ArithOps.td | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mlir/include/mlir/Dialect/Arith/IR/ArithOps.td b/mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
index 993f36f556e87..0518cac156eba 100644
--- a/mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
+++ b/mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
@@ -1271,7 +1271,7 @@ def Arith_ScalingExtFOp
 // TruncIOp
 //===----------------------------------------------------------------------===//
 
-def Arith_TruncIOp : Op<Arith_Dialect, "trunci",
+def Arith_TruncIOp : Arith_Op<"trunci",
     [Pure, SameOperandsAndResultShape, SameInputOutputTensorDims,
      DeclareOpInterfaceMethods<CastOpInterface>,
      DeclareOpInterfaceMethods<InferIntRangeInterface, ["inferResultRanges"]>,



More information about the Mlir-commits mailing list