[all-commits] [llvm/llvm-project] b95492: [Flang][OpenMP] Add -fopenmp-force-usm option to f...

Sergio Afonso via All-commits all-commits at lists.llvm.org
Wed Jun 5 06:44:20 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b9549261e218cee2ad1305fb7272b831799b7bfe
      https://github.com/llvm/llvm-project/commit/b9549261e218cee2ad1305fb7272b831799b7bfe
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2024-06-05 (Wed, 05 Jun 2024)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Flang.cpp
    M flang/include/flang/Frontend/LangOptions.def
    M flang/include/flang/Tools/CrossToolHelpers.h
    M flang/lib/Frontend/CompilerInvocation.cpp
    M flang/lib/Lower/OpenMP/OpenMP.cpp
    M flang/test/Driver/omp-driver-offload.f90
    A flang/test/Lower/OpenMP/force-usm.f90
    A flang/test/Lower/OpenMP/requires-force-usm.f90
    M flang/tools/bbc/bbc.cpp

  Log Message:
  -----------
  [Flang][OpenMP] Add -fopenmp-force-usm option to flang (#94359)

This patch enables the `-fopenmp-force-usm` option to be passed to the
flang driver, which forwards it to the compiler frontend. This flag,
when set, results in the introduction of the `unified_shared_memory` bit
to the `omp.requires` attribute of the top-level module operation.

This is later combined with any other target device-related REQUIRES
clauses that may have been explicitly set in the compilation unit.



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