[SelectionDAG] Add printing support for the Align value of AssertAlign nodes.
authorCraig Topper <craig.topper@sifive.com>
Tue, 22 Mar 2022 20:51:22 +0000 (13:51 -0700)
committerCraig Topper <craig.topper@sifive.com>
Tue, 22 Mar 2022 21:16:32 +0000 (14:16 -0700)
Differential Revision: https://reviews.llvm.org/D122262

llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp

index e48555f..874073b 100644 (file)
@@ -817,6 +817,8 @@ void SDNode::print_details(raw_ostream &OS, const SelectionDAG *G) const {
   } else if (const LifetimeSDNode *LN = dyn_cast<LifetimeSDNode>(this)) {
     if (LN->hasOffset())
       OS << "<" << LN->getOffset() << " to " << LN->getOffset() + LN->getSize() << ">";
+  } else if (const auto *AA = dyn_cast<AssertAlignSDNode>(this)) {
+    OS << '<' << AA->getAlign().value() << '>';
   }
 
   if (VerboseDAGDumping) {