diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-25 06:40:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-25 06:40:45 +0000 |
commit | 94ffc7eb4679df854266602eabcac906b22df8aa (patch) | |
tree | d11fd092269fb80d4bad9143c2f8cdc73199ba51 /lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | |
parent | 4ae9e0c5301126d7f2d4b2975eb86ed21f7b574d (diff) |
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 588fc6aaf4..5cf3b049fa 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -164,13 +164,20 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node, break; } if (doExt) - Op = Op + MVT::getValueTypeString(LD->getLoadedVT()) + ">"; - + Op += MVT::getValueTypeString(LD->getLoadedVT()) + ">"; + if (LD->isVolatile()) + Op += "<V>"; Op += LD->getIndexedModeName(LD->getAddressingMode()); + if (LD->getAlignment() > 1) + Op += " A=" + utostr(LD->getAlignment()); } else if (const StoreSDNode *ST = dyn_cast<StoreSDNode>(Node)) { if (ST->isTruncatingStore()) - Op = Op + "<trunc " + MVT::getValueTypeString(ST->getStoredVT()) + ">"; + Op += "<trunc " + MVT::getValueTypeString(ST->getStoredVT()) + ">"; + if (ST->isVolatile()) + Op += "<V>"; Op += ST->getIndexedModeName(ST->getAddressingMode()); + if (ST->getAlignment() > 1) + Op += " A=" + utostr(ST->getAlignment()); } #if 0 |