[Mlir-commits] [mlir] [mlir][spirv] Retain nontemporal attribute when converting memref load/store (PR #82119)
Lei Zhang
llvmlistbot at llvm.org
Sun Feb 25 16:36:42 PST 2024
================
@@ -481,6 +481,14 @@ calculateRequiredAlignment(Value accessedPtr, Operation *memrefAccessOp) {
assert((isa<memref::LoadOp, memref::StoreOp>(memrefAccessOp)) &&
"Bad op type");
+ auto nontemporalAttr = memrefAccessOp->getAttrOfType<BoolAttr>("nontemporal");
----------------
antiagainst wrote:
We can make this a templated function so that we can use the accessor directly.
https://github.com/llvm/llvm-project/pull/82119
More information about the Mlir-commits
mailing list