[all-commits] [llvm/llvm-project] fec292: [OpenMP] Add NoSync attributes to alloc / free sha...

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri Sep 17 16:50:32 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fec2927e0739144d101d5ad1e912bde9e8cd1fb6
      https://github.com/llvm/llvm-project/commit/fec2927e0739144d101d5ad1e912bde9e8cd1fb6
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2021-09-17 (Fri, 17 Sep 2021)

  Changed paths:
    M llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
    M llvm/test/Transforms/OpenMP/remove_globalization.ll
    M llvm/test/Transforms/OpenMP/replace_globalization.ll

  Log Message:
  -----------
  [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




More information about the All-commits mailing list