[llvm-branch-commits] [llvm] [libsycl] Add parallel_for feature (PR #189068)
Sergey Semenov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Apr 24 06:25:48 PDT 2026
================
@@ -0,0 +1,412 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// This file contains the declaration of the SYCL 2020 ranges and index space
+/// identifiers (4.9.1.).
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBSYCL___IMPL_INDEX_SPACE_CLASSES_HPP
+#define _LIBSYCL___IMPL_INDEX_SPACE_CLASSES_HPP
+
+#include <sycl/__impl/detail/config.hpp>
+
+#include <cstddef>
+#include <type_traits>
+#include <variant>
+
+_LIBSYCL_BEGIN_NAMESPACE_SYCL
+
+namespace detail {
+
+class Builder;
+
+/// Helper class for dimensions data management.
+template <int Dimensions = 1> class RawArray {
+ static_assert(Dimensions >= 1 && Dimensions <= 3,
+ "RawArray can only be 1, 2, or 3 Dimensional.");
+
+public:
+ /// Constructs one-dimensional instance and assign corresponding data to Dim0
+ /// value. Available only if Dimensions = 1.
----------------
sergey-semenov wrote:
```suggestion
/// Constructs a one-dimensional instance and assigns the corresponding data to Dim0
/// value. Available only if Dimensions = 1.
```
The same applies to the other constructors below.
https://github.com/llvm/llvm-project/pull/189068
More information about the llvm-branch-commits
mailing list