[all-commits] [llvm/llvm-project] 8f119d: [flang][OpenMP] Support lowering of threadprivate ...

PeixinQiao via All-commits all-commits at lists.llvm.org
Mon Aug 29 07:34:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f119da586d3946cc54c1f90940307f07bfcda7e
      https://github.com/llvm/llvm-project/commit/8f119da586d3946cc54c1f90940307f07bfcda7e
  Author: Peixin Qiao <qiaopeixin at huawei.com>
  Date:   2022-08-29 (Mon, 29 Aug 2022)

  Changed paths:
    M flang/include/flang/Lower/ConvertVariable.h
    M flang/lib/Lower/ConvertVariable.cpp
    M flang/lib/Lower/OpenMP.cpp
    A flang/test/Lower/OpenMP/threadprivate-non-global.f90

  Log Message:
  -----------
  [flang][OpenMP] Support lowering of threadprivate directive for non global variables

Non-global variable which can be in threadprivate directive must be one
variable in main program, and it has implicit SAVE attribute. Take it as
with SAVE attribute, so to create GlobalOp for it to simplify the
translation to LLVM IR.

Reviewed By: NimishMishra

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




More information about the All-commits mailing list