[all-commits] [llvm/llvm-project] bec49b: [LinkerWrapper] Use `clang` to perform the device ...

Joseph Huber via All-commits all-commits at lists.llvm.org
Thu Jan 19 10:48:06 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bec49b1d803ced901e14aca154ffc106939100e5
      https://github.com/llvm/llvm-project/commit/bec49b1d803ced901e14aca154ffc106939100e5
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-01-19 (Thu, 19 Jan 2023)

  Changed paths:
    M clang/test/Driver/linker-wrapper.c
    M clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

  Log Message:
  -----------
  [LinkerWrapper] Use `clang` to perform the device linking

Right now in the linker wrapper we manually invoke a lot of the
toolchain programs. This reproduces a lot of logic that is already
handled in clang. Since D140158 we can now target all supported
toolchains directly via cross-compilation.

This patch changes the linker wrapper to consolidate all the alternate
linking and assembler steps into a generic call to `clang` and let clang
handle the argument handling. This heavily simplifies the interface.

Reviewed By: tra, JonChesterfield

Differential Revision: https://reviews.llvm.org/D142133




More information about the All-commits mailing list