diff options
author | Johannes Doerfert <johannes@jdoerfert.de> | 2021-02-02 11:17:44 -0600 |
---|---|---|
committer | Johannes Doerfert <johannes@jdoerfert.de> | 2021-02-15 13:17:05 -0600 |
commit | 1dd66e6111a8247c6c7931143251c0cf1442b905 (patch) | |
tree | 511cee5e52bcb18136d9eb8685e12df8d9ec6fb6 /llvm/lib/Transforms/Utils/CloneModule.cpp | |
parent | f9286b434b764b366f1aad9249c04e7741ed5518 (diff) | |
download | llvm-1dd66e6111a8247c6c7931143251c0cf1442b905.zip llvm-1dd66e6111a8247c6c7931143251c0cf1442b905.tar.gz llvm-1dd66e6111a8247c6c7931143251c0cf1442b905.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneModule.cpp')
0 files changed, 0 insertions, 0 deletions