[PATCH] [PATCH][CodeGen] Adding "llvm.sad" intrinsic and corresponding ISD::SAD node for "Sum Of Absolute Differences" operation

Shahid Asghar-ahmad.Shahid at amd.com
Wed Apr 15 08:01:53 PDT 2015


Hi hfinkel, spatel, aschwaighofer, jmolloy, ab,


http://permalink.gmane.org/gmane.comp.compilers.llvm.devel/81724

This is with reference to the X86 PSAD instruction generation discussion happened in the above link.

This patch contains the Codgen changes. This change is introducing an llvm intrinsic called @llvm.sad() which takes two integer vector input and return an integer result. An ISD::SAD corresponding to this intrinsic is also added. Loop vectorizer  or SLP vectorizer can use this intrinsic only after querying the target.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D9029

Files:
  include/llvm/Analysis/TargetTransformInfo.h
  include/llvm/Analysis/TargetTransformInfoImpl.h
  include/llvm/CodeGen/ISDOpcodes.h
  include/llvm/IR/Intrinsics.td
  lib/Analysis/TargetTransformInfo.cpp
  lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  lib/Target/X86/X86ISelDAGToDAG.cpp
  lib/Target/X86/X86ISelLowering.cpp
  lib/Target/X86/X86TargetTransformInfo.cpp
  lib/Target/X86/X86TargetTransformInfo.h
  test/CodeGen/X86/sad_intrinsic.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9029.23773.patch
Type: text/x-patch
Size: 13454 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150415/a8ebec6e/attachment.bin>


More information about the llvm-commits mailing list