================
@@ -4049,6 +4049,39 @@ def CIR_ExpectOp : CIR_Op<"expect", [
   }];
 }
 
+//===----------------------------------------------------------------------===//
+// PrefetchOp
+//===----------------------------------------------------------------------===//
+
+def CIR_PrefetchOp : CIR_Op<"prefetch"> {
+  let summary = "prefetch operation";
+  let description = [{
+    The `cir.prefetch` op prefetches data from the memmory address.
----------------
andykaylor wrote:

```suggestion
    The `cir.prefetch` operation is a hint to the code generator to insert a
    prefetch instruction if supported; otherwise, it is a noop. Prefetches
    have no effect on the behavior of the program but can change its
    performance characteristics.
```
This is copied from the LLVM language reference description of the 
`llvm.prefetch` intrinsic. It provides a bit more clarity.

https://github.com/llvm/llvm-project/pull/164387
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to