[PATCH] Add intrinsics and SDNodes for signed/unsigned absolute difference (absdiff) and horizontal add (hadd).

Shahid Asghar-ahmad.Shahid at amd.com
Fri Jun 5 00:45:33 PDT 2015


Hi hfinkel, jmolloy, rengolin,

This adds new intrinsics "*absdiff" and "*hadd" to facilitate the efficient code generation for "sum of absolute differences" operation.

The patch also contains the introduction of corresponding SDNodes and basic legalization support

An RFC discussion could be found at below link
https://groups.google.com/forum/#!topic/llvm-dev/S3P1Sh3H--Q

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10273

Files:
  docs/LangRef.rst
  include/llvm/CodeGen/ISDOpcodes.h
  include/llvm/IR/Intrinsics.td
  include/llvm/Target/TargetSelectionDAG.td
  lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
  lib/CodeGen/SelectionDAG/LegalizeTypes.h
  lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
  lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
  lib/CodeGen/TargetLoweringBase.cpp
  lib/Target/X86/X86ISelDAGToDAG.cpp
  lib/Target/X86/X86ISelLowering.cpp
  lib/Target/X86/X86ISelLowering.h
  test/CodeGen/X86/absdiff_intrinsic.ll
  test/CodeGen/X86/hadd_intrinsic.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10273.27183.patch
Type: text/x-patch
Size: 40487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150605/bcc65c3e/attachment.bin>


More information about the llvm-commits mailing list