[llvm] 73f0af1 - [SelectionDAG] Add printing support for the Align value of AssertAlign nodes.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 22 14:16:40 PDT 2022


Author: Craig Topper
Date: 2022-03-22T14:16:32-07:00
New Revision: 73f0af106b9895e57b9cf4a784c00898fbf38b03

URL: https://github.com/llvm/llvm-project/commit/73f0af106b9895e57b9cf4a784c00898fbf38b03
DIFF: https://github.com/llvm/llvm-project/commit/73f0af106b9895e57b9cf4a784c00898fbf38b03.diff

LOG: [SelectionDAG] Add printing support for the Align value of AssertAlign nodes.

Differential Revision: https://reviews.llvm.org/D122262

Added: 
    

Modified: 
    llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
index e48555fbad7c0..874073bc456a1 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
@@ -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) {


        


More information about the llvm-commits mailing list