[Mlir-commits] [mlir] [mlir][memref][spirv] Add SPIR-V Image Lowering (PR #150978)
Krzysztof Drewniak
llvmlistbot at llvm.org
Tue Jul 29 08:46:25 PDT 2025
================
@@ -527,6 +537,11 @@ IntLoadOpPattern::matchAndRewrite(memref::LoadOp loadOp, OpAdaptor adaptor,
if (!memrefType.getElementType().isSignlessInteger())
return failure();
+ if (memrefType.getMemorySpace() ==
----------------
krzysz00 wrote:
Nit: Don't check attribute equality here. `dyn_cast` to `spirv::StorageClassAttr` and check for `Image`.
(This approach constructs the attribute each time through)
https://github.com/llvm/llvm-project/pull/150978
More information about the Mlir-commits
mailing list