[all-commits] [llvm/llvm-project] 3625f9: [Flang][Driver][Offload] Support -Xoffload-linker ...

agozillon via All-commits all-commits at lists.llvm.org
Fri Sep 27 09:18:15 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3625f9f615c024b85f1daa967abae77998b939dc
      https://github.com/llvm/llvm-project/commit/3625f9f615c024b85f1daa967abae77998b939dc
  Author: agozillon <Andrew.Gozillon at amd.com>
  Date:   2024-09-27 (Fri, 27 Sep 2024)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    A flang/test/Driver/xoffload-linker.f90

  Log Message:
  -----------
  [Flang][Driver][Offload] Support -Xoffload-linker argument in Flang (#109907)

The -Xoffload-linker command allows forwarding of linker commands to the
clang-linker-wrapper used for linking offload libraries into the
resulting offload binaries amongst other tasks. This is a rather useful
command to have to support the offloading programming models flang-new
currently aims to support (OpenMP/OpenACC).

Currently this flag is utilised in the check-offload tests after a
recent addition and is used in conjunction with the Fortran OpenMP test
suite there, which fails at the moment due to flang-new not recognizing
the command, this fixes the issue. The alternative to this would of
course be to setup the test config to avoid using this flag with
Fortran, but I believe adding support of the flag to flang-new has more
merit as having the same compatability/communication capabilities as
Clang to the clang-linker-wrapper is important as it's a critical
component of the offload pipeline, and the command will likely see more
use in the near future.



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