[Mlir-commits] [mlir] [mlir][emitc] Lower arith.index_cast, arith.index_castui, arith.shli, arith.shrui, arith.shrsi (PR #95795)
Simon Camphausen
llvmlistbot at llvm.org
Wed Jul 3 02:58:53 PDT 2024
================
@@ -410,8 +433,10 @@ class IntegerOpConversion final : public OpConversionPattern<ArithOp> {
ConversionPatternRewriter &rewriter) const override {
Type type = this->getTypeConverter()->convertType(op.getType());
- if (!isa_and_nonnull<IntegerType, IndexType>(type)) {
- return rewriter.notifyMatchFailure(op, "expected integer type");
+ if (!type || !(isa_and_nonnull<IntegerType>(type) ||
----------------
simon-camp wrote:
```suggestion
if (!type || !(isa<IntegerType>(type) ||
```
https://github.com/llvm/llvm-project/pull/95795
More information about the Mlir-commits
mailing list