From 94ffc7eb4679df854266602eabcac906b22df8aa Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 25 Jan 2008 06:40:45 +0000 Subject: [PATCH] include alignment and volatility information in -view-*-dags output git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46347 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 588fc6aaf41..5cf3b049fa7 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -164,13 +164,20 @@ std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, break; } if (doExt) - Op = Op + MVT::getValueTypeString(LD->getLoadedVT()) + ">"; - + Op += MVT::getValueTypeString(LD->getLoadedVT()) + ">"; + if (LD->isVolatile()) + Op += ""; Op += LD->getIndexedModeName(LD->getAddressingMode()); + if (LD->getAlignment() > 1) + Op += " A=" + utostr(LD->getAlignment()); } else if (const StoreSDNode *ST = dyn_cast(Node)) { if (ST->isTruncatingStore()) - Op = Op + "getStoredVT()) + ">"; + Op += "getStoredVT()) + ">"; + if (ST->isVolatile()) + Op += ""; Op += ST->getIndexedModeName(ST->getAddressingMode()); + if (ST->getAlignment() > 1) + Op += " A=" + utostr(ST->getAlignment()); } #if 0 -- 2.34.1