summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-12-11 02:08:35 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-12-11 02:08:35 +0000
commitf54030231e7c6588970252a51702adfb603eebd6 (patch)
treea7283ead5461275ee69e48e249d7cd9bb147f21f /llvm/lib/CodeGen
parent4fbf4595493c64edda4c0b8ba2dae2f243e00dac (diff)
downloadbcm5719-llvm-f54030231e7c6588970252a51702adfb603eebd6.tar.gz
bcm5719-llvm-f54030231e7c6588970252a51702adfb603eebd6.zip
Pretty print shuffle mask operand.
llvm-svn: 44837
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 38987d9faad..a93a41dfc98 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -3855,6 +3855,19 @@ void SDNode::dump(const SelectionDAG *G) const {
cerr << ":" << RN;
}
+ if (!isTargetOpcode() && getOpcode() == ISD::VECTOR_SHUFFLE) {
+ SDNode *Mask = getOperand(2).Val;
+ cerr << "<";
+ for (unsigned i = 0, e = Mask->getNumOperands(); i != e; ++i) {
+ if (i) cerr << ",";
+ if (Mask->getOperand(i).getOpcode() == ISD::UNDEF)
+ cerr << "u";
+ else
+ cerr << cast<ConstantSDNode>(Mask->getOperand(i))->getValue();
+ }
+ cerr << ">";
+ }
+
if (const ConstantSDNode *CSDN = dyn_cast<ConstantSDNode>(this)) {
cerr << "<" << CSDN->getValue() << ">";
} else if (const ConstantFPSDNode *CSDN = dyn_cast<ConstantFPSDNode>(this)) {
OpenPOWER on IntegriCloud