llvm
0b772fd1 - [NFCI][SYCL] Reduce dependencies of `<sycl/range.hpp>` (#20029)

Commit
180 days ago
[NFCI][SYCL] Reduce dependencies of `<sycl/range.hpp>` (#20029) North star goal: compile ```cpp #include <something> namespace syclext = sycl::ext::oneapi; namespace syclexp = sycl::ext::oneapi::experimental; SYCL_EXT_ONEAPI_FUNCTION_PROPERTY((syclexp::nd_range_kernel<1>)) void foo(int *p) { size_t id = syclext::this_work_item::get_nd_item<1>().get_global_linear_id(); p[id] = 0; } ``` as fast as possible by limiting number of necessary includes. `item`/`nd_item`/`nd_range`/etc. are all dependent on `range`, so the first tiny step would be to speed up its compilation as much as possible.
Parents
Loading