[all-commits] [llvm/llvm-project] 4e43a1: [flang][OpenMP] Fix resolve common block in data-s...

PeixinQiao via All-commits all-commits at lists.llvm.org
Sat Oct 1 19:41:37 PDT 2022


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

  Changed paths:
    M flang/include/flang/Semantics/symbol.h
    M flang/lib/Semantics/compute-offsets.cpp
    M flang/lib/Semantics/resolve-directives.cpp
    A flang/test/Semantics/OpenMP/omp-common-block.f90
    M flang/test/Semantics/OpenMP/omp-threadprivate04.f90

  Log Message:
  -----------
  [flang][OpenMP] Fix resolve common block in data-sharing clauses

The previous resolve only creates the host associated varaibles for
common block members, but does not replace the original objects with
the new created ones. Fix it and also compute the sizes and offsets
for the host common block members if they are host associated.

Reviewed By: kiranchandramohan

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




More information about the All-commits mailing list