[llvm-commits] [llvm] r46347 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
Chris Lattner
sabre at nondot.org
Thu Jan 24 22:40:45 PST 2008
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
More information about the llvm-commits
mailing list