[PATCH] D33236: [PowerPC] Implement vec_xxsldwi builtin.

Tony Jiang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 16 06:54:44 PDT 2017


jtony created this revision.

Note this patch is based on the infrastructure in patch https://reviews.llvm.org/D33053 . The vec_xxsldwi builtin is also missing from altivec.h. This has been requested by developers working on libvpx for VP9 support for Google.  This patch implements the vec_xxsldwi builtin by using the existing shuffleVector instruction just in the FE. The implementation here is similar to vec_xxpermdi in the patch https://reviews.llvm.org/D33053.


https://reviews.llvm.org/D33236

Files:
  include/clang/Basic/BuiltinsPPC.def
  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: D33236.99135.patch
Type: text/x-patch
Size: 8054 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170516/fd691a7b/attachment.bin>


More information about the llvm-commits mailing list