[PATCH] [X86] Replace (v)palignr intrinsics with generic shuffles (Clang)

Simon Pilgrim llvm-dev at redking.me.uk
Thu Mar 12 10:48:11 PDT 2015


Hi craig.topper, andreadb, spatel, chandlerc,

The (v)palignr instructions are currently described using builtin intrinsics although the x86 shuffle lowering code now correctly identifies them.

This patch replaces the builtins with generic __builtin_shufflevector calls. I'll be posting a LLVM equivalent patch shortly.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8301

Files:
  include/clang/Basic/BuiltinsX86.def
  lib/CodeGen/CGBuiltin.cpp
  lib/Headers/avx2intrin.h
  lib/Headers/tmmintrin.h
  test/CodeGen/avx2-builtins.c
  test/CodeGen/builtins-x86.c
  test/CodeGen/palignr.c
  test/CodeGen/sse-builtins.c

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8301.21851.patch
Type: text/x-patch
Size: 10420 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150312/19199e3c/attachment.bin>


More information about the cfe-commits mailing list