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

Lei Zhang llvmlistbot at llvm.org
Sat Feb 17 21:48:00 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:

`nontemproal` is an attribute codified in the memref load/store op's definition. You can have direct accessors like `loadOp.getNontemproal()`.

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


More information about the Mlir-commits mailing list