[all-commits] [llvm/llvm-project] 41447f: [libLTO][AIX] Respect `-f[no]-integrated-as` on AIX

Qiongsi Wu via All-commits all-commits at lists.llvm.org
Wed Jul 12 10:23:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41447f6fdfe4d67bbd130bc6035e66f3fa1ebeff
      https://github.com/llvm/llvm-project/commit/41447f6fdfe4d67bbd130bc6035e66f3fa1ebeff
  Author: Qiongsi Wu <qwu at ibm.com>
  Date:   2023-07-12 (Wed, 12 Jul 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/test/Driver/lto-aix.c
    M llvm/include/llvm/CodeGen/CommandFlags.h
    M llvm/lib/CodeGen/CommandFlags.cpp
    M llvm/lib/LTO/LTOCodeGenerator.cpp
    M llvm/test/tools/llvm-lto/aix.ll
    M llvm/tools/llc/llc.cpp

  Log Message:
  -----------
  [libLTO][AIX] Respect `-f[no]-integrated-as` on AIX

`libLTO` currently ignores the `-f[no-]integrated-as` flags. This patch teaches `libLTO` to respect them on AIX.

The implementation consists of two parts:

  # Migrate `llc`'s `-no-integrated-as` option to a codegen option so that the option is available to `libLTO`/`lld`/`gold`.
  # Teach `clang` to pass `-no-integrated-as` accordingly to `libLTO` depending on the `-f[no-]integrated-as` flags.

On platforms other than AIX, the `-f[no-]integrated-as` flags are ignored.

Reviewed By: MaskRay, steven_wu

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




More information about the All-commits mailing list