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

Paschalis Mpeis via All-commits all-commits at lists.llvm.org
Mon Jan 22 04:35:01 PST 2024


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