Author: lattner Date: Fri Jan 25 00:40:45 2008 New Revision: 46347 URL: http://llvm.org/viewvc/llvm-project?rev=46347&view=rev Log: include alignment and volatility information in -view-*-dags output
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp?rev=46347&r1=46346&r2=46347&view=diff ============================================================================== --- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp (original) +++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp Fri Jan 25 00:40:45 2008 @@ -164,13 +164,20 @@ 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 _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits