[llvm-branch-commits] [llvm] [libsycl] Add parallel_for feature (PR #189068)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Apr 22 09:20:06 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions hpp,cpp -- libsycl/include/sycl/__impl/detail/kernel_arg_helpers.hpp libsycl/include/sycl/__impl/index_space_classes.hpp libsycl/include/sycl/__spirv/spirv_vars.hpp libsycl/test/basic/parallel_for_indexers.cpp libsycl/test/basic/queue_parallel_for_generic.cpp libsycl/test/basic/wrapped_usm_pointers.cpp libsycl/include/sycl/__impl/detail/unified_range_view.hpp libsycl/include/sycl/__impl/queue.hpp libsycl/include/sycl/sycl.hpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libsycl/include/sycl/__spirv/spirv_vars.hpp b/libsycl/include/sycl/__spirv/spirv_vars.hpp
index c8d2c990d..450f581d9 100644
--- a/libsycl/include/sycl/__spirv/spirv_vars.hpp
+++ b/libsycl/include/sycl/__spirv/spirv_vars.hpp
@@ -15,8 +15,8 @@
 #ifndef _LIBSYCL___SPIRV_SPIRV_VARS
 #define _LIBSYCL___SPIRV_SPIRV_VARS
 
-#  include <cstddef>
-#  include <cstdint>
+#include <cstddef>
+#include <cstdint>
 
 // SPIR-V built-in variables mapped to function call.
 
@@ -58,7 +58,7 @@ __SPIRV_DEFINE_INIT_AND_GET_HELPERS(BuiltInGlobalSize);
 __SPIRV_DEFINE_INIT_AND_GET_HELPERS(BuiltInGlobalInvocationId)
 __SPIRV_DEFINE_INIT_AND_GET_HELPERS(BuiltInGlobalOffset)
 
-#  undef __SPIRV_DEFINE_INIT_AND_GET_HELPERS
+#undef __SPIRV_DEFINE_INIT_AND_GET_HELPERS
 
 } // namespace __spirv
 

``````````

</details>


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


More information about the llvm-branch-commits mailing list