[all-commits] [llvm/llvm-project] 40d0d4: Lower generic MASSV entries to PowerPC subtarget-s...

jsji via All-commits all-commits at lists.llvm.org
Mon Nov 4 09:17:46 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 40d0d4e2335d14a3a70a565304fd7e92c25f178b
      https://github.com/llvm/llvm-project/commit/40d0d4e2335d14a3a70a565304fd7e92c25f178b
  Author: Jinsong Ji <jji at us.ibm.com>
  Date:   2019-11-04 (Mon, 04 Nov 2019)

  Changed paths:
    M llvm/include/llvm/Analysis/VecFuncs.def
    M llvm/lib/Target/PowerPC/CMakeLists.txt
    M llvm/lib/Target/PowerPC/PPC.h
    A llvm/lib/Target/PowerPC/PPCLowerMASSVEntries.cpp
    M llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
    A llvm/test/CodeGen/PowerPC/lower-massv-attr.ll
    A llvm/test/CodeGen/PowerPC/lower-massv.ll

  Log Message:
  -----------
  Lower generic MASSV entries to PowerPC subtarget-specific entries

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 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.

Patch by pjeeva01 (Jeeva P.)
Differential Revision: https://reviews.llvm.org/D59883




More information about the All-commits mailing list