-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sycl' into fabio/immediate_append_exp
- Loading branch information
Showing
243 changed files
with
492 additions
and
2,647 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
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
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
32 changes: 32 additions & 0 deletions
32
clang/test/CodeGenSYCL/int_footer_with_explicit_specialization.cpp
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,32 @@ | ||
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -triple spir64-unknown-unknown -fsycl-int-footer=%t.footer.h -emit-llvm %s -o - | ||
// RUN: FileCheck -input-file=%t.footer.h %s --check-prefix=CHECK-FOOTER | ||
|
||
// This test checks that integration footer is emitted correctly when a | ||
// device_global has an explicit template specialization in template arguments. | ||
|
||
#include "sycl.hpp" | ||
|
||
namespace sycl { | ||
template <typename T> struct X {}; | ||
template <> struct X<int> {}; | ||
namespace detail { | ||
struct Y {}; | ||
} // namespace detail | ||
template <> struct X<detail::Y> {}; | ||
} // namespace sycl | ||
|
||
using namespace sycl; | ||
template <typename T, typename = X<detail::Y>> struct Arg1 { T val; }; | ||
|
||
using namespace sycl::ext::oneapi; | ||
template <typename properties_t> | ||
device_global<properties_t> dev_global; | ||
|
||
SYCL_EXTERNAL auto foo() { | ||
(void)dev_global<Arg1<int>>; | ||
} | ||
|
||
// CHECK-FOOTER: __sycl_device_global_registration::__sycl_device_global_registration() noexcept { | ||
// CHECK-FOOTER-NEXT: device_global_map::add((void *)&::dev_global<Arg1<int, sycl::X<sycl::detail::Y>>>, "_Z10dev_globalI4Arg1IiN4sycl1XINS1_6detail1YEEEEE"); | ||
// CHECK-FOOTER-NEXT: } | ||
// CHECK-FOOTER-NEXT: } // namespace (unnamed) |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.