Skip to content

Commit 8247d8e

Browse files
[SYCLomatic] add null_type implementation (#528)
Signed-off-by: Dan Hoeflinger <[email protected]>
1 parent 25b9dc7 commit 8247d8e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

clang/runtime/dpct-rt/include/dpl_extras/functional.h.inc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@
5656

5757
namespace dpct {
5858

59+
// DPCT_LABEL_BEGIN|null_type|dpct
60+
// DPCT_DEPENDENCY_EMPTY
61+
// DPCT_CODE
62+
struct null_type {};
63+
// DPCT_LABEL_END
64+
5965
namespace internal {
6066

6167
// DPCT_LABEL_BEGIN|enable_if_execution_policy|dpct::internal

clang/test/dpct/helper_files_ref/include/dpl_extras/functional.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
namespace dpct {
2424

25+
struct null_type {};
26+
2527
namespace internal {
2628

2729
template <class _ExecPolicy, class _T>

0 commit comments

Comments
 (0)