[PATCH] D59883: Lower generic MASSV entries to PowerPC subtarget-specific entries

Jeeva P. via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 27 08:10:00 PDT 2019


pjeeva01 created this revision.
pjeeva01 added reviewers: nemanjai, jsji, hfinkel, mmasten, mzolotukhin.
Herald added subscribers: kbarton, hiraditya, mgorny.
Herald added a project: LLVM.

This patch (second of two patches) lowers the generic PowerPC vector entries to PowerPC subtarget-specific entries.
For instance, the PowerPC generic entry “cbrtd2_massv” is lowered to “cbrtd2_P9” or Power9 subtarget.

The first patch <https://reviews.llvm.org/D59881> enables the vectorizer to recognize the IBM MASS vector library routines. This patch specifically adds support for recognizing the “-vector-library=MASSV” option, and defines mappings from IEEE standard scalar math functions to generic PowerPC MASS vector counterparts.
For instance, the generic PowerPC MASS vector entry for double-precision “cbrt” function is “__cbrtd2_massv”

The overall support for MASS vector library is presented as such in two patches for ease of review.


Repository:
  rL LLVM

https://reviews.llvm.org/D59883

Files:
  llvm/lib/Target/PowerPC/CMakeLists.txt
  llvm/lib/Target/PowerPC/PPC.h
  llvm/lib/Target/PowerPC/PPCLowerMASSVEntries.cpp
  llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
  llvm/test/CodeGen/PowerPC/lower-massv.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59883.192444.patch
Type: text/x-patch
Size: 25118 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190327/7f8e5b34/attachment.bin>


More information about the llvm-commits mailing list