[Mlir-commits] [mlir] [mlir][spirv] Retain nontemporal attribute when converting memref load/store (PR #82119)

Jakub Kuderski llvmlistbot at llvm.org
Mon Feb 26 07:21:33 PST 2024


================
@@ -445,15 +445,23 @@ DeallocOpPattern::matchAndRewrite(memref::DeallocOp operation,
 // LoadOp
 //===----------------------------------------------------------------------===//
 
-using AlignmentRequirements =
+using MemoryRequirements =
     FailureOr<std::pair<spirv::MemoryAccessAttr, IntegerAttr>>;
----------------
kuhar wrote:

Now that it's less clear what this represents (e.g., what is the interpretation of `IntegerAttr` when there's no alignment), I think we should make it a struct and add some comments.
Also the `FailureOr` should probably be spelled out as the return type and not part of the typedef.

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


More information about the Mlir-commits mailing list