diff options
author | James Molloy <james.molloy@arm.com> | 2015-07-16 15:22:46 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2015-07-16 15:22:46 +0000 |
commit | 7395a8182c7d377cb75e302144d3c21a85f4094f (patch) | |
tree | 11a902712960020aa80fc093c04d59f59b0f813c /llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp | |
parent | 0e20b8dc9338903faaed3f2326635a40cf9edc19 (diff) | |
download | bcm5719-llvm-7395a8182c7d377cb75e302144d3c21a85f4094f.tar.gz bcm5719-llvm-7395a8182c7d377cb75e302144d3c21a85f4094f.zip |
[Codegen] Add intrinsics 'absdiff' and corresponding SDNodes for absolute difference operation
This adds new intrinsics "*absdiff" for absolute difference ops to facilitate efficient code generation for "sum of absolute differences" operation.
The patch also contains the introduction of corresponding SDNodes and basic legalization support.Sanity of the generated code is tested on X86.
This is 1st of the three patches.
Patch by Shahid Asghar-ahmad!
llvm-svn: 242409
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp index 5b9b18286fa..8dabddc642b 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp @@ -225,6 +225,8 @@ std::string SDNode::getOperationName(const SelectionDAG *G) const { case ISD::SHL_PARTS: return "shl_parts"; case ISD::SRA_PARTS: return "sra_parts"; case ISD::SRL_PARTS: return "srl_parts"; + case ISD::UABSDIFF: return "uabsdiff"; + case ISD::SABSDIFF: return "sabsdiff"; // Conversion operators. case ISD::SIGN_EXTEND: return "sign_extend"; |