[OpenMP] Add NoSync attributes to alloc / free shared RTL calls
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 17 Sep 2021 19:27:33 +0000 (15:27 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 17 Sep 2021 23:50:13 +0000 (19:50 -0400)
commitfec2927e0739144d101d5ad1e912bde9e8cd1fb6
tree86c7bff171afd4f368d74d4d8b22480bc7c47b45
parent91ace9f06202c567f5600c59f62188db3f3c7147
[OpenMP] Add NoSync attributes to alloc / free shared RTL calls

This patch adds the `nosync` attribute to the `__kmpc_alloc_shared` and
`__kmpc_free_shared` runtime library calls. This allows code analysis to
know that these functins dont contain any barriers. This will help
optimizations reason about the CFG of blocks containing these calls.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D109995
llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
llvm/test/Transforms/OpenMP/remove_globalization.ll
llvm/test/Transforms/OpenMP/replace_globalization.ll