Skip to content

Commit 2fddbb6

Browse files
update HIP doc
1 parent 2949485 commit 2fddbb6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/docs/HIPSupport.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ Clang supports alias attributes in HIP code, allowing creation of alternative na
293293
- Aliases work with ``__host__``, ``__device__``, and ``__host__ __device__`` functions and variables.
294294
- The alias attribute uses the syntax ``__attribute__((alias("target_name")))``. Both weak and strong aliases are supported.
295295
- Outside of ``extern "C"``, the alias target must use the mangled name of the aliasee
296+
- The alias is only emitted if the aliasee is emitted on the same side (ie __host__ or __device__), otherwise it is ignored.
296297

297298
Example Usage
298299
-------------

0 commit comments

Comments
 (0)