[all-commits] [llvm/llvm-project] 3018c3: [Flang][OpenMP] Remove close map type member remov...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Tue Sep 15 14:28:45 PDT 2026


  Branch: refs/heads/users/vitalybuka/spr/thinltobitcodewriter-encode-hotness-into-cfifunctions-metadata-2
  Home:   https://github.com/llvm/llvm-project
  Commit: 3018c32171d439dec1b76ef961cc60c0d8db2c6c
      https://github.com/llvm/llvm-project/commit/3018c32171d439dec1b76ef961cc60c0d8db2c6c
  Author: agozillon <Andrew.Gozillon at amd.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M flang/lib/Lower/OpenMP/Utils.cpp
    M flang/lib/Optimizer/OpenMP/MapInfoFinalization.cpp
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/lib/Semantics/check-omp-structure.h
    A flang/test/Lower/OpenMP/close-map-derived-members.f90
    M flang/test/Semantics/OpenMP/map-modifiers.f90
    A offload/test/offloading/fortran/usm_map_close_derived_type_members.f90

  Log Message:
  -----------
  [Flang][OpenMP] Remove close map type member removal code from MapInfoFinalization (#219438)

This should no longer be required as we removed the application of close
automatically in USM mode in a prior PR. So they bug this was originally
put in place for is now addressed without the need for this PR. And
whilst it was fine to put in place for a bug the user had no control of
(automatic application of close to descriptor members), it's not our
place to intervene in scenarios where a user is making explicit errors
in their mapping, e.g.

map(to: dtype) map(close, to: dtype%x, dtype%y)

A user should be left to shoot themselves in the foot if that's there
goal (or perhaps there's some really wild or single memory system
architectures that would allow this), we'd ideally prevent this as a
compiler warning or error as opposed to fixing the problem
under-the-hood for them. Otherwise we help create unportable code for
the user, alongside forcing ourselves to maintain the underlying fix.


  Commit: ae01cf51a05a8d56de7c1f984d8696f693b2c2bd
      https://github.com/llvm/llvm-project/commit/ae01cf51a05a8d56de7c1f984d8696f693b2c2bd
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M flang/lib/Lower/OpenMP/Utils.cpp
    M flang/lib/Optimizer/OpenMP/MapInfoFinalization.cpp
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/lib/Semantics/check-omp-structure.h
    A flang/test/Lower/OpenMP/close-map-derived-members.f90
    M flang/test/Semantics/OpenMP/map-modifiers.f90
    A offload/test/offloading/fortran/usm_map_close_derived_type_members.f90

  Log Message:
  -----------
  [𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]


  Commit: 31d017899269c589873bc1f14b0d78f07db6cb93
      https://github.com/llvm/llvm-project/commit/31d017899269c589873bc1f14b0d78f07db6cb93
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M flang/lib/Lower/OpenMP/Utils.cpp
    M flang/lib/Optimizer/OpenMP/MapInfoFinalization.cpp
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/lib/Semantics/check-omp-structure.h
    A flang/test/Lower/OpenMP/close-map-derived-members.f90
    M flang/test/Semantics/OpenMP/map-modifiers.f90
    A offload/test/offloading/fortran/usm_map_close_derived_type_members.f90

  Log Message:
  -----------
  rebase

Created using spr 1.3.7


Compare: https://github.com/llvm/llvm-project/compare/52358ad59347...31d017899269

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list