[OpenMP][NFC] Provide a new remark and documentation
authorJohannes Doerfert <johannes@jdoerfert.de>
Thu, 17 Dec 2020 02:29:26 +0000 (20:29 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Thu, 17 Dec 2020 20:38:26 +0000 (14:38 -0600)
commit994bb6eb7d01db1d9461e54d17a63af2ba1af2c9
tree1e9b0c226f3ffbf0918a541c6a021d54f4326c5c
parente75fec2b238f0e26cfb7645f2208baebe3440d41
[OpenMP][NFC] Provide a new remark and documentation

If a GPU function is externally reachable we give up trying to find the
(unique) kernel it is called from. This can hinder optimizations. Emit a
remark and explain mitigation strategies.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D93439
clang/test/OpenMP/remarks_parallel_in_multiple_target_state_machines.c
clang/test/OpenMP/remarks_parallel_in_target_state_machine.c
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
openmp/docs/remarks/OptimizationRemarks.rst