diff options
author | James Molloy <james.molloy@arm.com> | 2015-05-15 09:03:15 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2015-05-15 09:03:15 +0000 |
commit | 7e9776b55949f8fdbfdee1a66ec8aa04289436bc (patch) | |
tree | c7a7770e280255a6504f9a7e17f7e1a502b5d823 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp | |
parent | f0ab553fea2e01effa387ead1ae71e774f0793ab (diff) | |
download | bcm5719-llvm-7e9776b55949f8fdbfdee1a66ec8aa04289436bc.tar.gz bcm5719-llvm-7e9776b55949f8fdbfdee1a66ec8aa04289436bc.zip |
Add SDNodes for umin, umax, smin and smax.
This adds new SDNodes for signed/unsigned min/max. These nodes are built from
select/icmp pairs matched at SDAGBuilder stage.
This patch adds the nodes, as well as legalization support and sets them to
be "expand" for all targets.
NFC for now; this will be tested when I switch AArch64 to using these new
nodes.
llvm-svn: 237423
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp index 9970540946a..96ee8991407 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp @@ -193,6 +193,10 @@ std::string SDNode::getOperationName(const SelectionDAG *G) const { case ISD::FCOPYSIGN: return "fcopysign"; case ISD::FGETSIGN: return "fgetsign"; case ISD::FPOW: return "fpow"; + case ISD::SMIN: return "smin"; + case ISD::SMAX: return "smax"; + case ISD::UMIN: return "umin"; + case ISD::UMAX: return "umax"; case ISD::FPOWI: return "fpowi"; case ISD::SETCC: return "setcc"; |