[Mlir-commits] [mlir] [mlir] Add `arith-int-range-narrowing` pass (PR #112404)
Jakub Kuderski
llvmlistbot at llvm.org
Sat Nov 2 17:02:45 PDT 2024
================
@@ -190,8 +195,244 @@ struct DeleteTrivialRem : public OpRewritePattern<RemOp> {
DataFlowSolver &solver;
};
-struct IntRangeOptimizationsPass
- : public arith::impl::ArithIntRangeOptsBase<IntRangeOptimizationsPass> {
+/// Check if `type` is index or integer type with `getWidth() > targetBitwidth`.
+static Type checkIntType(Type type, unsigned targetBitwidth) {
----------------
kuhar wrote:
I still don't understand this. I'd expect this to return `LogicalResult`, not give the type back.
https://github.com/llvm/llvm-project/pull/112404
More information about the Mlir-commits
mailing list