[all-commits] [llvm/llvm-project] 1dd66e: [OpenMP] Delay more diagnostics of potentially non...
Johannes Doerfert via All-commits
all-commits at lists.llvm.org
Mon Feb 15 11:17:27 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1dd66e6111a8247c6c7931143251c0cf1442b905
https://github.com/llvm/llvm-project/commit/1dd66e6111a8247c6c7931143251c0cf1442b905
Author: Johannes Doerfert <johannes at jdoerfert.de>
Date: 2021-02-15 (Mon, 15 Feb 2021)
Changed paths:
M clang/lib/Sema/SemaDecl.cpp
M clang/lib/Sema/SemaOpenMP.cpp
M clang/test/OpenMP/nvptx_allocate_messages.cpp
M clang/test/OpenMP/nvptx_target_exceptions_messages.cpp
M clang/test/OpenMP/nvptx_unsupported_type_messages.cpp
Log Message:
-----------
[OpenMP] Delay more diagnostics of potentially non-emitted code
Even code in target and declare target regions might not be emitted.
With this patch we delay more diagnostics and use laziness and linkage
to determine if a function is emitted (for the device). Note that we
still eagerly emit diagnostics for target regions, unfortunately, see
the TODO for the reason.
This hopefully fixes PR48933.
Reviewed By: JonChesterfield
Differential Revision: https://reviews.llvm.org/D95928
More information about the All-commits
mailing list