[all-commits] [llvm/llvm-project] fa11ec: [Flang][OpenMP] Add frontend support for -fopenmp-...

Sergio Afonso via All-commits all-commits at lists.llvm.org
Fri Aug 2 02:27:48 PDT 2024


  Branch: refs/heads/users/skatrak/target-host-03-flang
  Home:   https://github.com/llvm/llvm-project
  Commit: fa11ec91a360123fa14be4b511252993d8d9984d
      https://github.com/llvm/llvm-project/commit/fa11ec91a360123fa14be4b511252993d8d9984d
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2024-08-02 (Fri, 02 Aug 2024)

  Changed paths:
    M flang/include/flang/Frontend/LangOptions.h
    M flang/include/flang/Tools/CrossToolHelpers.h
    M flang/lib/Frontend/CompilerInvocation.cpp
    A flang/test/Lower/OpenMP/offload-targets.f90
    M flang/tools/bbc/bbc.cpp

  Log Message:
  -----------
  [Flang][OpenMP] Add frontend support for -fopenmp-targets

This patch adds support for the `-fopenmp-targets` option to the `bbc` and
`flang -fc1` tools. It adds an `OMPTargetTriples` property to the `LangOptions`
structure, which is filled with the triples represented by the compiler option.

This is used to initialize the `omp.target_triples` module attribute for later
use by lowering stages.



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