[PATCH] D101209: [PowerPC] Provide fastmath sqrt and div functions in altivec.h

Nemanja Ivanovic via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 23 16:40:32 PDT 2021


nemanjai created this revision.
nemanjai added reviewers: cebowleratibm, bmahjour, PowerPC.
Herald added subscribers: shchenz, kbarton.
nemanjai requested review of this revision.
Herald added a project: clang.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101209

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101209.340201.patch
Type: text/x-patch
Size: 4679 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210423/3a2af461/attachment.bin>


More information about the cfe-commits mailing list