[llvm] r315690 - DAG: Add flags to dumps
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 13 08:41:41 PDT 2017
Author: arsenm
Date: Fri Oct 13 08:41:40 2017
New Revision: 315690
URL: http://llvm.org/viewvc/llvm-project?rev=315690&view=rev
Log:
DAG: Add flags to dumps
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp?rev=315690&r1=315689&r2=315690&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp Fri Oct 13 08:41:40 2017
@@ -421,6 +421,36 @@ void SDNode::print_types(raw_ostream &OS
}
void SDNode::print_details(raw_ostream &OS, const SelectionDAG *G) const {
+ if (getFlags().hasNoUnsignedWrap())
+ OS << " nuw";
+
+ if (getFlags().hasNoSignedWrap())
+ OS << " nsw";
+
+ if (getFlags().hasExact())
+ OS << " exact";
+
+ if (getFlags().hasUnsafeAlgebra())
+ OS << " unsafe";
+
+ if (getFlags().hasNoNaNs())
+ OS << " nnan";
+
+ if (getFlags().hasNoInfs())
+ OS << " ninf";
+
+ if (getFlags().hasNoSignedZeros())
+ OS << " nsz";
+
+ if (getFlags().hasAllowReciprocal())
+ OS << " arcp";
+
+ if (getFlags().hasAllowContract())
+ OS << " contract";
+
+ if (getFlags().hasVectorReduction())
+ OS << " vector-reduction";
+
if (const MachineSDNode *MN = dyn_cast<MachineSDNode>(this)) {
if (!MN->memoperands_empty()) {
OS << "<";
More information about the llvm-commits
mailing list