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

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Jun 20 02:23:36 PDT 2025


Author: Matthias Springer
Date: 2025-06-20T11:23:33+02:00
New Revision: f577516d91dc1ae5b9c8a3bcad81558bc19ccf65

URL: https://github.com/llvm/llvm-project/commit/f577516d91dc1ae5b9c8a3bcad81558bc19ccf65
DIFF: https://github.com/llvm/llvm-project/commit/f577516d91dc1ae5b9c8a3bcad81558bc19ccf65.diff

LOG: [mlir][arith] Add back ElementwiseMappable to `arith.trunci` (#145000)

This trait was accidentally dropped in #144863.

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Arith/IR/ArithOps.td

Removed: 
    


################################################################################
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