[Mlir-commits] [mlir] [mlir][emitc] Fix arith.{div, rem}ui index support (PR #221546)

Gil Rapaport llvmlistbot at llvm.org
Thu Sep 10 02:12:29 PDT 2026


================
@@ -459,16 +459,16 @@ class BinaryUIOpConversion final : public OpConversionPattern<ArithOp> {
     if (!newRetTy)
       return rewriter.notifyMatchFailure(uiBinOp,
                                          "converting result type failed");
-    if (!isa<IntegerType>(newRetTy)) {
+    if (!isa<IntegerType, emitc::SizeTType>(newRetTy)) {
       return rewriter.notifyMatchFailure(uiBinOp, "expected integer type");
----------------
aniragil wrote:

good catch! replacing with a more general message.

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


More information about the Mlir-commits mailing list