[Mlir-commits] [mlir] Memref prefetch side effect (PR #151261)
Alexandre Eichenberger
llvmlistbot at llvm.org
Fri Aug 1 07:12:58 PDT 2025
================
@@ -1351,7 +1351,8 @@ def MemRef_PrefetchOp : MemRef_Op<"prefetch"> {
instruction cache.
}];
- let arguments = (ins AnyMemRef:$memref, Variadic<Index>:$indices,
+ let arguments = (ins Arg<AnyMemRef, "prefetch address", [MemWrite]> :$memref,
----------------
AlexandreEichenberger wrote:
Good suggestion, will add a comment. It's basically to ensure that dead-code analysis does not remove the operation. It is inline with making that operation a "volatile" so that it remains in place with respect to the other load/store of the prefetched data.
https://github.com/llvm/llvm-project/pull/151261
More information about the Mlir-commits
mailing list