[PATCH] D77632: [TLI] Per-function fveclib for math library used for vectorization

Wenlei He via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 7 00:30:12 PDT 2020


wenlei created this revision.
Herald added subscribers: cfe-commits, dexonsmith, hiraditya.
Herald added a project: clang.
wenlei edited the summary of this revision.
wenlei added reviewers: tejohnson, hoyFB, spatel, gchatelet.

Encode `-fveclib` setting as per-function attribute so it can be threaded through to LTO backends. Accordingly, per-function TLI now reads the attribute and populated available vector function list based on that. Note that we expect functions within the same module to share `fveclib` setting, so vector function list is still shared between functions, as part of the shared `TargetLibraryInfoImpl`. Inlining between functions with different vect lib attribute is now blocked.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77632

Files:
  clang/lib/CodeGen/CGCall.cpp
  clang/test/CodeGen/libcalls-veclib.c
  llvm/include/llvm/Analysis/TargetLibraryInfo.h
  llvm/lib/Analysis/TargetLibraryInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77632.255603.patch
Type: text/x-patch
Size: 7767 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200407/bf7b5fed/attachment.bin>


More information about the cfe-commits mailing list