[all-commits] [llvm/llvm-project] 0f9bed: [flang][OpenMP] Move `createMapInfoOp` to `OpenMP-...

Kareem Ergawy via All-commits all-commits at lists.llvm.org
Mon Aug 25 02:22:11 PDT 2025


  Branch: refs/heads/users/ergawy/move_createmapinfoop
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f9bedb6b240eaac970889cc8adbaed6fab1919a
      https://github.com/llvm/llvm-project/commit/0f9bedb6b240eaac970889cc8adbaed6fab1919a
  Author: ergawy <kareem.ergawy at amd.com>
  Date:   2025-08-25 (Mon, 25 Aug 2025)

  Changed paths:
    M flang/include/flang/Support/OpenMP-utils.h
    M flang/lib/Lower/OpenMP/ClauseProcessor.cpp
    M flang/lib/Lower/OpenMP/Utils.cpp
    M flang/lib/Lower/OpenMP/Utils.h
    M flang/lib/Support/CMakeLists.txt
    M flang/lib/Support/OpenMP-utils.cpp

  Log Message:
  -----------
  [flang][OpenMP] Move `createMapInfoOp` to `OpenMP-utils.h`

This moves `createMapInfoOp` from `flang/lib/Lower/OpenMP/Utils.h` to `flang/include/flang/Support/OpenMP-utils.h`.

Context: I am working on upstreaming (from AMD's downstream fork) support for `do concurrent` mapping to the GPU. This means that `DoConcurrentConversion.cpp` needs access to `createMapInfoOp`. Hence, we moved it downstream to a shared location between that is linked by both `FlangOpenMPTransforms` (where the `do concurrent` pass lives) and `FortranLower` (where `createMapInfoOp` originally were).

The issue now is that we have to link in both the FIR and OpenMP MLIR dialects which is not ideal to link with a suport library like `FortranSupport`.

Note that, so far, upstream `DoConcurrentConversion.cpp` does not reference `createMapInfoOp` yet. Follow-up PRs will upstream this later.


  Commit: 518312a4bbe694e6b0ca84cdce4fd51591038fbe
      https://github.com/llvm/llvm-project/commit/518312a4bbe694e6b0ca84cdce4fd51591038fbe
  Author: ergawy <kareem.ergawy at amd.com>
  Date:   2025-08-25 (Mon, 25 Aug 2025)

  Changed paths:
    M flang/include/flang/Support/OpenMP-utils.h

  Log Message:
  -----------
  Add docs


Compare: https://github.com/llvm/llvm-project/compare/b9a795831108...518312a4bbe6

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