Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing multi_ptr aliases for access::address_space::generic #598

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions adoc/config/rouge/lib/rouge/lexers/sycl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ class Sycl < Cpp
context_bound
cpu_selector
decorated_constant_ptr
decorated_generic_ptr
decorated_global_ptr
decorated_local_ptr
decorated_private_ptr
Expand Down
15 changes: 15 additions & 0 deletions adoc/headers/pointer.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ template <typename ElementType,
using private_ptr =
multi_ptr<ElementType, access::address_space::private_space, IsDecorated>;

template <typename ElementType,
access::decorated IsDecorated = access::decorated::legacy>
using generic_ptr =
multi_ptr<ElementType, access::address_space::generic_space, IsDecorated>;

// Template specialization aliases for different pointer address spaces.
// The interface exposes non-decorated pointer while keeping the
// address space information internally.
Expand All @@ -48,6 +53,11 @@ using raw_private_ptr =
multi_ptr<ElementType, access::address_space::private_space,
access::decorated::no>;

template <typename ElementType>
using raw_generic_ptr =
multi_ptr<ElementType, access::address_space::generic_space,
access::decorated::no>;

// Template specialization aliases for different pointer address spaces.
// The interface exposes decorated pointer.

Expand All @@ -66,4 +76,9 @@ using decorated_private_ptr =
multi_ptr<ElementType, access::address_space::private_space,
access::decorated::yes>;

template <typename ElementType>
using decorated_generic_ptr =
multi_ptr<ElementType, access::address_space::generic_space,
access::decorated::yes>;

} // namespace sycl