[all-commits] [llvm/llvm-project] c3da07: [PowerPC] Provide fastmath sqrt and div functions ...

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Fri Apr 30 17:18:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c3da07d216dd20fbdb7302fd085c0a59e189ae3d
      https://github.com/llvm/llvm-project/commit/c3da07d216dd20fbdb7302fd085c0a59e189ae3d
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2021-04-30 (Fri, 30 Apr 2021)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsPPC.def
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Headers/altivec.h
    M clang/test/CodeGen/builtins-ppc-altivec.c
    M clang/test/CodeGen/builtins-ppc-vsx.c

  Log Message:
  -----------
  [PowerPC] Provide fastmath sqrt and div functions in altivec.h

This adds the long overdue implementations of these functions
that have been part of the ABI document and are now part of
the "Power Vector Intrinsic Programming Reference" (PVIPR).

The approach is to add new builtins and to emit code with
the fast flag regardless of whether fastmath was specified
on the command line.

Differential revision: https://reviews.llvm.org/D101209




More information about the All-commits mailing list