-
Notifications
You must be signed in to change notification settings - Fork 751
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL] Added constexpr specifier to standard functions declarations i…
…n sycl_wrapper to support c++14 sources Starting from c++14 several standard functions(e.g. min, max) should be marked with constexpr specifier. Also updated license in existing sycl_wrappers in accordance with LLVM. Signed-off-by: Podchishchaeva, Mariya <mariya.podchishchaeva@intel.com> Signed-off-by: Vladimir Lazarev <vladimir.lazarev@intel.com>
- Loading branch information
1 parent
4efe9fc
commit 3ce5091
Showing
4 changed files
with
85 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// -*- C++ -*- | ||
//===--------------------------- __config ---------------------------------===// | ||
// | ||
// 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 | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef _LIBCPP_STD_VER | ||
# if __cplusplus <= 201103L | ||
# define _LIBCPP_STD_VER 11 | ||
# elif __cplusplus <= 201402L | ||
# define _LIBCPP_STD_VER 14 | ||
# elif __cplusplus <= 201703L | ||
# define _LIBCPP_STD_VER 17 | ||
# endif | ||
#endif | ||
|
||
#if _LIBCPP_STD_VER > 11 | ||
# define _LIBCPP_CONSTEXPR_AFTER_CXX11 constexpr | ||
#else | ||
# define _LIBCPP_CONSTEXPR_AFTER_CXX11 | ||
#endif | ||
|
||
#if _LIBCPP_STD_VER > 14 | ||
# define _LIBCPP_CONSTEXPR_AFTER_CXX14 constexpr | ||
#else | ||
# define _LIBCPP_CONSTEXPR_AFTER_CXX14 | ||
#endif | ||
|
||
#if _LIBCPP_STD_VER > 17 | ||
# define _LIBCPP_CONSTEXPR_AFTER_CXX17 constexpr | ||
#else | ||
# define _LIBCPP_CONSTEXPR_AFTER_CXX17 | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters