[all-commits] [llvm/llvm-project] f4accb: [flang][OpenMP] Support privatization for single c...

PeixinQiao via All-commits all-commits at lists.llvm.org
Wed Oct 5 05:23:48 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f4accbf55f4d0fcd6d7cc6f7632a0e4b69c9f3dd
      https://github.com/llvm/llvm-project/commit/f4accbf55f4d0fcd6d7cc6f7632a0e4b69c9f3dd
  Author: Peixin Qiao <qiaopeixin at huawei.com>
  Date:   2022-10-05 (Wed, 05 Oct 2022)

  Changed paths:
    M flang/include/flang/Lower/AbstractConverter.h
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Lower/OpenMP.cpp
    M flang/test/Lower/OpenMP/single.f90

  Log Message:
  -----------
  [flang][OpenMP] Support privatization for single construct

This supports the lowering of private and firstprivate clauses in single
construct. The alloca ops are emitted in the entry block according to
https://llvm.org/docs/Frontend/PerformanceTips.html#use-of-allocas, and
the load/store ops are emitted in the single region. The data race
problem is handled in OMPIRBuilder. That is, the barrier is emitted in
OMPIRBuilder.

Co-authored-by: Nimish Mishra <neelam.nimish at gmail.com>

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D128596




More information about the All-commits mailing list