<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [C++] Support address space in type traits"
href="https://bugs.llvm.org/show_bug.cgi?id=45326">45326</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[C++] Support address space in type traits
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>OpenCL
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>anastasia.stulova@arm.com
</td>
</tr>
<tr>
<th>CC</th>
<td>anastasia.stulova@arm.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Removing address space from type is a useful feature. However extensions can't
be added into libcxx and OpenCL doesn't support libcxx currently anyway.
We need to find a place to add the type traits.
For removing address space we could just add this in some header:
template <class _Tp> struct __remove_address_space { typedef _Tp type; };
template <class _Tp> struct __remove_address_space<_Tp __generic> { typedef
_Tp type; };
template <class _Tp> struct __remove_address_space<_Tp __global> { typedef
_Tp type; };
template <class _Tp> struct __remove_address_space<_Tp __private> { typedef
_Tp type; };
template <class _Tp> struct __remove_address_space<_Tp __local> { typedef _Tp
type; };
template <class _Tp> struct __remove_address_space<_Tp __constant> { typedef
_Tp type; };
We can also use more generalized impl from <a href="https://reviews.llvm.org/D76636">https://reviews.llvm.org/D76636</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>