[all-commits] [llvm/llvm-project] fa0a72: [LTO] Fix Veclib flags correctly pass to LTO flags...

Paschalis Mpeis via All-commits all-commits at lists.llvm.org
Sat Jan 27 15:52:48 PST 2024


  Branch: refs/heads/release/18.x
  Home:   https://github.com/llvm/llvm-project
  Commit: fa0a72b584a06fcf210a9667a344c1f87a2a081b
      https://github.com/llvm/llvm-project/commit/fa0a72b584a06fcf210a9667a344c1f87a2a081b
  Author: Paschalis Mpeis <paschalis.mpeis at arm.com>
  Date:   2024-01-27 (Sat, 27 Jan 2024)

  Changed paths:
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/test/Driver/fveclib.c

  Log Message:
  -----------
  [LTO] Fix Veclib flags correctly pass to LTO flags (#78749)

Flags `-fveclib=name` were not passed to LTO flags.
This pass fixes that by converting the `-fveclib` flags to their
relevant names for opt's `-vector-lib=name` flags.

For example:
`-fveclib=SLEEF` would become `-vector-library=sleefgnuabi` and passed
through the `-plugin-opt` flag.

(cherry picked from commit 03cf0e9354e7e56ff794e9efb682ed2971bc91ec)




More information about the All-commits mailing list