[PATCH] D33053: [PowerPC] Implement vec_xxpermdi builtin.

Tony Jiang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 10 10:27:04 PDT 2017


jtony created this revision.

The vec_xxpermdi builtin is missing from altivec.h. This has been requested by developers working on libvpx for VP9 support for Google.  Initially, I tried to define a new intrinsic to map it to the corresponding PowerPC hard instruction (XXPERMDI) directly. But there was feedback from the community that this can be done without introducing new intrinsic.  This patch re-implement the vec_xxpermdi builtin by using the existing shuffleVector instruction just in the FE.


https://reviews.llvm.org/D33053

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33053.98484.patch
Type: text/x-patch
Size: 14113 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170510/d63e8877/attachment-0001.bin>


More information about the cfe-commits mailing list