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

Paschalis Mpeis via All-commits all-commits at lists.llvm.org
Fri Jan 19 09:33:02 PST 2024


  Branch: refs/heads/users/paschalis-mpeis/fix-pass-veclib-lto-flags
  Home:   https://github.com/llvm/llvm-project
  Commit: e1f97413fc7cf42a4b47b27b6ec6d377ea8113b1
      https://github.com/llvm/llvm-project/commit/e1f97413fc7cf42a4b47b27b6ec6d377ea8113b1
  Author: Paschalis Mpeis <Paschalis.Mpeis at arm.com>
  Date:   2024-01-19 (Fri, 19 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

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.




More information about the All-commits mailing list