[Mlir-commits] [mlir] [mlir][memref][spirv] Add SPIR-V Image Lowering (PR #150978)

Jack Frankland llvmlistbot at llvm.org
Wed Jul 30 02:50:51 PDT 2025


================
@@ -527,6 +537,11 @@ IntLoadOpPattern::matchAndRewrite(memref::LoadOp loadOp, OpAdaptor adaptor,
   if (!memrefType.getElementType().isSignlessInteger())
     return failure();
 
+  if (memrefType.getMemorySpace() ==
+      spirv::StorageClassAttr::get(rewriter.getContext(),
+                                   spirv::StorageClass::Image))
+    return failure();
----------------
FranklandJack wrote:

Good point!

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


More information about the Mlir-commits mailing list