[llvm] [Offload] Implement olMemFill (PR #154102)

Callum Fare via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 22 06:13:00 PDT 2025


================
@@ -63,3 +63,23 @@ def : Function {
     ];
     let returns = [];
 }
+
+def : Function {
+  let name = "olMemFill";
+  let desc = "Fill memory with copies of the given pattern";
+  let details = [
+    "Filling with patterns larger than 4 bytes may be less performant",
+    "The destination pointer and queue must be associated with the same device",
+    "The fill size must be a multiple of the pattern size",
+  ];
+  let params = [
+      Param<"ol_queue_handle_t", "Queue", "handle of the queue", PARAM_IN_OPTIONAL>,
+      Param<"void*", "Ptr", "destination pointer to start filling at", PARAM_IN>,
+      Param<"size_t", "PatternSize", "the size of the pattern in bytes", PARAM_IN>,
+      Param<"void*", "PatternPtr", "", PARAM_IN>,
----------------
callumfare wrote:

Fixed now

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


More information about the llvm-commits mailing list