[PATCH] D156014: [Clang][NVPTX] Permit use of the alias attribute for NVPTX targets
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 21 20:04:07 PDT 2023
jhuber6 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:
> 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`.
Do we do any similar diagnostics checks on the CUDA version? I thought that was more of a clang driver thing and we'd just let the backend handle the failure, since we can emit LLVM-IR that can be compiled irrespective of the CUDA version used to make it.
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