================
@@ -286,6 +286,42 @@ Example Usage
basePtr->virtualFunction(); // Allowed since obj is constructed in
device code
}
+Alias Attribute Support
+=======================
+
+Clang supports alias attributes in HIP code, allowing creation of alternative
names for functions and variables.
+ - Aliases work with ``__host__``, ``__device__``, and ``__host__ __device__``
functions and variables.
+ - The alias attribute uses the syntax
``__attribute__((alias("target_name")))``. Both weak and strong aliases are
supported.
----------------
yxsamliu wrote:
maybe mention alias is emitted only if aliasee is emitted on the same side,
otherwise it is ignored.
https://github.com/llvm/llvm-project/pull/164326
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits