[Mlir-commits] [mlir] [mlir][spirv] Retain nontemporal attribute when converting memref load/store (PR #82119)
Artem Tyurin
llvmlistbot at llvm.org
Sun Feb 18 03:33:57 PST 2024
================
@@ -623,7 +631,8 @@ LoadOpPattern::matchAndRewrite(memref::LoadOp loadOp, OpAdaptor adaptor,
if (!loadPtr)
return failure();
- AlignmentRequirements requiredAlignment = calculateRequiredAlignment(loadPtr);
+ AlignmentRequirements requiredAlignment =
----------------
agentcooper wrote:
```c++
using AlignmentRequirements = FailureOr<std::pair<spirv::MemoryAccessAttr, IntegerAttr>>;
```
It does calculate both memory access and alignment and nontemporal is `spirv::MemoryAccess::Nontemporal`, so I think it fits.
https://github.com/llvm/llvm-project/pull/82119
More information about the Mlir-commits
mailing list