[all-commits] [llvm/llvm-project] 830ef4: [openmp][NFCI] Move .mod code out of runtimes subd...

Michael Kruse via All-commits all-commits at lists.llvm.org
Sat Dec 6 03:15:16 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 830ef4e4e2d0f181ed1cfacbc3daacb2555ff9e4
      https://github.com/llvm/llvm-project/commit/830ef4e4e2d0f181ed1cfacbc3daacb2555ff9e4
  Author: Michael Kruse <llvm-project at meinersbur.de>
  Date:   2025-12-06 (Sat, 06 Dec 2025)

  Changed paths:
    M openmp/CMakeLists.txt
    A openmp/cmake/modules/LibompCheckFortranFlag.cmake
    A openmp/cmake/modules/LibompHandleFlags.cmake
    A openmp/cmake/modules/LibompUtils.cmake
    A openmp/module/CMakeLists.txt
    A openmp/module/omp_lib.F90.var
    A openmp/module/omp_lib.h.var
    M openmp/runtime/CMakeLists.txt
    R openmp/runtime/cmake/LibompCheckFortranFlag.cmake
    M openmp/runtime/cmake/LibompExports.cmake
    R openmp/runtime/cmake/LibompHandleFlags.cmake
    R openmp/runtime/cmake/LibompUtils.cmake
    M openmp/runtime/cmake/config-ix.cmake
    M openmp/runtime/src/CMakeLists.txt
    R openmp/runtime/src/include/omp_lib.F90.var
    R openmp/runtime/src/include/omp_lib.h.var

  Log Message:
  -----------
  [openmp][NFCI] Move .mod code out of runtimes subdir (#169909)

Extracted out of #169638. The motivation is that we want to build
Fortran module files for device triples (amdgpu-amd-amdhsa and
nvptx64-nvidia-cuda) as well, but the runtimes/ directory is only
included for host devices.

This PR itself should not change anything, including that omp_lib.mod is
only built on host devices triple. Some dependencies used for building
omp_lib.mod are hoisted out of runtimes/ as well. IMHO they all make
sense to hoist, e.g. LIBOMP_VERSION_MAJOR/LIBOMP_VERSION_MINOR should be
usable in the entire OpenMP subproject.



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