[llvm] [offload] support arbitrary memoryFill pattern sizes in L0 plugin (PR #209724)

Alex Duran via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 15 04:00:05 PDT 2026


================
@@ -58,6 +62,107 @@ Error L0QueueTy::dispatchLaunchKernel(ze_kernel_handle_t Kernel,
                                      KEnv.IsCooperative);
 }
 
+static bool allBytesEqual(const unsigned char *buf, size_t size) {
----------------
adurang wrote:

For this function, can't be just use a llvm StringRef and do something like `str.find_first_not_of(str[0]) != npos` ?

Also, arguments and variables names should start with uppercase.

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


More information about the llvm-commits mailing list