[OpenMP] Strip NoInline from known OpenMP runtime functions
authorJoseph Huber <jhuber6@vols.utk.edu>
Wed, 21 Jul 2021 19:52:04 +0000 (15:52 -0400)
committerHuber, Joseph <huberjn@ornl.gov>
Thu, 22 Jul 2021 01:18:26 +0000 (21:18 -0400)
commit16206d17cd9e6b473673204c458e5f20bcc59fb1
treee24d4efb60eba3cdc4c068360e20cc0c34afdca7
parent196fe994b8cccd986f4a63530d494cdd04cd04db
[OpenMP] Strip NoInline from known OpenMP runtime functions

This patch strips the NoInline attribute from known OpenMP runtime functions.
This is done so that we can denote certain runtime functions as NoInline to
ensure their call sites are intact so they can be checked by OpenMPOpt. We
don't wan't this noinline attribute to remain for any functions after OpenMPOpt
has been run however.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D106482
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
llvm/test/Transforms/OpenMP/add_attributes.ll