[PATCH] D109995: [OpenMP] Add NoSync attributes to alloc / free shared RTL calls

Joseph Huber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 17 12:29:16 PDT 2021


jhuber6 created this revision.
jhuber6 added a reviewer: jdoerfert.
Herald added subscribers: guansong, yaxunl.
jhuber6 requested review of this revision.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D109995

Files:
  llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
  llvm/test/Transforms/OpenMP/remove_globalization.ll
  llvm/test/Transforms/OpenMP/replace_globalization.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109995.373308.patch
Type: text/x-patch
Size: 14968 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210917/40b945df/attachment.bin>


More information about the llvm-commits mailing list