Skip to content

Commit

Permalink
Undeprecate legacy multi_ptr
Browse files Browse the repository at this point in the history
Cherry pick #604 from main
(cherry picked from commit f652da8)
  • Loading branch information
gmlueck committed Oct 31, 2024
1 parent 8388503 commit e8aad21
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
5 changes: 0 additions & 5 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9931,7 +9931,6 @@ For interoperability with the <<backend>>, users should rely on types exposed by
the decorated version.
If the value of [code]#access::decorated# is [code]#access::decorated::legacy#,
the 1.2.1 interface is exposed.
This interface is deprecated.

The template traits [code]#remove_decoration# and type alias
[code]#remove_decoration_t# retrieve the non-decorated pointer or reference from
Expand Down Expand Up @@ -10640,10 +10639,6 @@ below.
include::{header_dir}/pointer.h[lines=4..-1]
----

Note that using [code]#global_ptr#, [code]#local_ptr#, [code]#constant_ptr# or
[code]#private_ptr# without specifying the decoration is deprecated.
The default argument is provided for compatibility with 1.2.1.


[[subsec:samplers]]
=== Image samplers
Expand Down
1 change: 0 additions & 1 deletion adoc/chapters/what_changed.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ Changes in [code]#multi_ptr# interface:
Returned pointer and reference are not annotated by an address space;
** interface exposing decorated types.
Returned pointer and reference are annotated by an address space;
** legacy 1.2.1 interface (deprecated).
* deprecation of the 1.2.1 interface;
* deprecation of [code]#constant_ptr#;
* [code]#global_ptr#, [code]#local_ptr# and [code]#private_ptr# alias take the
Expand Down
2 changes: 1 addition & 1 deletion adoc/headers/multipointer.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ enum class address_space : /* unspecified */ {
enum class decorated : /* unspecified */ {
no,
yes,
legacy // Deprecated in SYCL 2020
legacy
};

} // namespace access
Expand Down
2 changes: 0 additions & 2 deletions adoc/headers/multipointerlegacy.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
namespace sycl {

// Legacy interface, inherited from 1.2.1.
// Deprecated.
template <typename ElementType, access::address_space Space>
class [[deprecated]] multi_ptr<ElementType, Space, access::decorated::legacy> {
public:
Expand Down Expand Up @@ -162,7 +161,6 @@ class [[deprecated]] multi_ptr<ElementType, Space, access::decorated::legacy> {
};

// Legacy interface, inherited from 1.2.1.
// Deprecated.
// Specialization of multi_ptr for void and const void
// VoidType can be either void or const void
template <access::address_space Space>
Expand Down

0 comments on commit e8aad21

Please sign in to comment.