llvm
llvm copied to clipboard
[clang] Lift SYCL device code restrictions in guaranteed constexpr contexts
C++ defines term "manifestly constant-evaluated expressions" meaning expressions that are guaranteed to be evaluated in compile time. In these expressions all C++ features can be safely allowed even for device code. Enabled under a cc1 option since it is an experimental feature.
Ping @intel/dpcpp-cfe-reviewers
@intel/llvm-gatekeepers , could you merge this PR, please?