[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:12:28 PDT 2022
craig.topper created this revision.
craig.topper added reviewers: arsenm, efriedma, RKSimon, spatel.
Herald added subscribers: StephenFan, ecnelises, hiraditya.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
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.417399.patch
Type: text/x-patch
Size: 604 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220322/c5b4b0b1/attachment.bin>
More information about the llvm-commits
mailing list