[OpenMP][Opt] Annotate known runtime functions and deduplicate more
authorJohannes Doerfert <johannes@jdoerfert.de>
Sun, 9 Feb 2020 00:03:40 +0000 (18:03 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Sun, 9 Feb 2020 00:35:39 +0000 (18:35 -0600)
commite28936f6137c5a9c4f7673e248c192a9811543b6
treea6935575d50a19fc8c6b4b64ce8992ad9a038698
parent8df173f399d89c6c0f600ece6c0aa08f7cad61a6
[OpenMP][Opt] Annotate known runtime functions and deduplicate more

This adds ~27 more runtime calls to the OpenMPKinds.def file, all with
attributes. We deduplicate 16 of those automatically in function =
thread scope. And we annotate all of them automatically during the
OpenMPOpt discovery step. A test with all omp_XXXX runtime calls to
track annotation coverage is included.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D69984
llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
llvm/lib/Transforms/IPO/OpenMPOpt.cpp