DPC++ Runtime
Runtime libraries for oneAPI DPC++
spec_const_integration.hpp
Go to the documentation of this file.
1 //==---------------------- spec_const_integration.hpp ----------------------==//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #pragma once
10 
11 // This header file must not be included to any DPC++ headers.
12 // This header file should only be included to integration footer.
13 
14 namespace sycl {
16 namespace detail {
17 
18 #if __cplusplus >= 201703L
19 // Translates SYCL 2020 `specialization_id` to a unique symbolic identifier
20 // which is used internally by the toolchain
21 template <auto &SpecName> const char *get_spec_constant_symbolic_ID() {
22  return get_spec_constant_symbolic_ID_impl<SpecName>();
23 }
24 #endif
25 
26 } // namespace detail
27 } // __SYCL_INLINE_VER_NAMESPACE(_V1)
28 } // namespace sycl
#define __SYCL_INLINE_VER_NAMESPACE(X)
---— Error handling, matching OpenCL plugin semantics.
Definition: access.hpp:14