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

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


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG73f0af106b98: [SelectionDAG] Add printing support for the Align value of AssertAlign nodes. (authored by craig.topper).

Changed prior to commit:
  https://reviews.llvm.org/D122262?vs=417399&id=417403#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122262/new/

https://reviews.llvm.org/D122262

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


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
===================================================================
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
@@ -817,6 +817,8 @@
   } 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) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122262.417403.patch
Type: text/x-patch
Size: 604 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220322/799a2449/attachment.bin>


More information about the llvm-commits mailing list