File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
llvm/lib/SYCLLowerIR/ESIMD
sycl/include/sycl/ext/oneapi/experimental Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ static const char *LegalSYCLFunctions[] = {
54
54
" ^sycl::_V1::ext::oneapi::sub_group::.+" ,
55
55
" ^sycl::_V1::ext::oneapi::experimental::spec_constant<.+>::.+" ,
56
56
" ^sycl::_V1::ext::oneapi::experimental::this_sub_group" ,
57
- " ^sycl::_V1::ext::oneapi::experimental::bfloat16::.+" };
57
+ " ^sycl::_V1::ext::oneapi::experimental::bfloat16::.+" ,
58
+ " ^sycl::_V1::ext::oneapi::experimental::if_architecture_is" };
58
59
59
60
static const char *LegalSYCLFunctionsInStatelessMode[] = {
60
61
" ^sycl::_V1::multi_ptr<.+>::get" ,
Original file line number Diff line number Diff line change @@ -505,16 +505,16 @@ namespace ext::oneapi::experimental {
505
505
506
506
template <architecture... Archs, typename T, typename ... Args>
507
507
constexpr static auto if_architecture_is (T fnTrue, Args... args) {
508
- static_assert (detail::allowable_aot_mode<Archs...>(),
508
+ static_assert (sycl:: detail::allowable_aot_mode<Archs...>(),
509
509
" The if_architecture_is function may only be used when AOT "
510
510
" compiling with '-fsycl-targets=spir64_x86_64' or "
511
511
" '-fsycl-targets=*_gpu_*'" );
512
- if constexpr (detail::device_architecture_is<Archs...>()) {
512
+ if constexpr (sycl:: detail::device_architecture_is<Archs...>()) {
513
513
fnTrue (args...);
514
- return detail::if_architecture_helper<false >{};
514
+ return sycl:: detail::if_architecture_helper<false >{};
515
515
} else {
516
516
(void )fnTrue;
517
- return detail::if_architecture_helper<true >{};
517
+ return sycl:: detail::if_architecture_helper<true >{};
518
518
}
519
519
}
520
520
You can’t perform that action at this time.
0 commit comments