[PATCH] D101856: [VecLib] Add support for vector fns from Darwin's libsystem.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 4 13:42:53 PDT 2021


fhahn created this revision.
fhahn added reviewers: ab, scanon, jroelofs.
Herald added subscribers: pengfei, hiraditya, kristof.beyls.
fhahn requested review of this revision.
Herald added a project: LLVM.

This patch adds support for Darwin's libsystem math vector functions to
TLI. Darwin's libsystem provides a range of vector functions for libm
functions.

This initial patch only adds the 2 x double and 4 x float versions,
which are available on both X86 and ARM64. On X86, wider vector versions
are supported as well.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101856

Files:
  llvm/include/llvm/Analysis/TargetLibraryInfo.h
  llvm/include/llvm/Analysis/VecFuncs.def
  llvm/lib/Analysis/TargetLibraryInfo.cpp
  llvm/test/CodeGen/Generic/replace-intrinsics-with-veclib-darwin-libsystem-m.ll
  llvm/test/Transforms/LoopVectorize/AArch64/veclib-calls-libsystem-darwin.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101856.342853.patch
Type: text/x-patch
Size: 30322 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210504/cb36f899/attachment.bin>


More information about the llvm-commits mailing list