[Mlir-commits] [mlir] [mlir][spirv] Add pattern matching for arith.index_cast index to i1 for ArithToSPIRV (PR #156031)

Md Abdullah Shahneous Bari llvmlistbot at llvm.org
Fri Aug 29 08:27:37 PDT 2025


================
@@ -607,6 +607,38 @@ struct UIToFPI1Pattern final : public OpConversionPattern<arith::UIToFPOp> {
   }
 };
 
+//===----------------------------------------------------------------------===//
+// IndexCastOp
+//===----------------------------------------------------------------------===//
+
+/// Converts arith.index_cast to spirv.Select if the type of source is index.
----------------
mshahneo wrote:

Nit. 
```suggestion
// Converts arith.index_cast to spirv.Select if the target type is i1.
```

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


More information about the Mlir-commits mailing list