[PATCH] D156014: [Clang][NVPTX] Permit use of the alias attribute for NVPTX targets
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 21 20:03:05 PDT 2023
tra added inline comments.
================
Comment at: clang/lib/Sema/SemaDeclAttr.cpp:1995
}
- if (S.Context.getTargetInfo().getTriple().isNVPTX()) {
- S.Diag(AL.getLoc(), diag::err_alias_not_supported_on_nvptx);
----------------
tra wrote:
> Allowing or not `noreturn` depends on the CUDA version we're building with (or rather on the PTX version we need for .noreturn instruction).
>
> We would still need to issue the diagnostics if we're using CUDA older than 10.1.
>
Make it `.alias` and `CUDA older than 10.0`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156014/new/
https://reviews.llvm.org/D156014
More information about the cfe-commits
mailing list