[all-commits] [llvm/llvm-project] 8b834c: [Flang][OpenMP] Fix HLFIR lowering for commonblock...

kiranchandramohan via All-commits all-commits at lists.llvm.org
Wed Aug 23 05:00:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b834caa62a279a0b4136bf3c8950b4f7162308e
      https://github.com/llvm/llvm-project/commit/8b834caa62a279a0b4136bf3c8950b4f7162308e
  Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
  Date:   2023-08-23 (Wed, 23 Aug 2023)

  Changed paths:
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Lower/ConvertVariable.cpp
    A flang/test/Lower/OpenMP/threadprivate-common-block-hlfir.f90

  Log Message:
  -----------
  [Flang][OpenMP] Fix HLFIR lowering for commonblock threadprivate

Commonblock names are not variables, but they can be marked as
threadprivate in OpenMP. This requires the commonblock name to
be bound to the address of the Commonblock. hlfir.declares are
not required for these, but we should be able to retrieve the
mlir Value corresponding to the Commonblock. This patch enables
this by special casing the Commonblocks like procedures.

Reviewed By: tblah, vzakhari

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




More information about the All-commits mailing list