diff options
author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2018-10-26 00:02:33 +0000 |
---|---|---|
committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2018-10-26 00:02:33 +0000 |
commit | e2c5cbc1643f8324fa84c2a44918262cacbbe2c4 (patch) | |
tree | 09d63fc63fdce3ef3ab7cd786a6180ea08be6169 /llvm/lib | |
parent | b76e25a26d37e99ade8c686bf5d6a48d3d20e46d (diff) | |
download | bcm5719-llvm-e2c5cbc1643f8324fa84c2a44918262cacbbe2c4.tar.gz bcm5719-llvm-e2c5cbc1643f8324fa84c2a44918262cacbbe2c4.zip |
[SystemZ] Pass the DAG pointer from SystemZAddressingMode::dump().
In order to print the IR slot number for the memory operand, the DAG pointer
must be passed to SDNode::dump().
The isel-debug.ll test updated to also check for the IR Value reference being
printed correctly.
Review: Ulrich Weigand
https://reviews.llvm.org/D53333
llvm-svn: 345347
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp b/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp index 5edfdf645e5..c8474b15b18 100644 --- a/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp +++ b/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp @@ -71,19 +71,19 @@ struct SystemZAddressingMode { // True if the address can (and must) include ADJDYNALLOC. bool isDynAlloc() { return Form == FormBDXDynAlloc; } - void dump() { + void dump(const llvm::SelectionDAG *DAG) { errs() << "SystemZAddressingMode " << this << '\n'; errs() << " Base "; if (Base.getNode()) - Base.getNode()->dump(); + Base.getNode()->dump(DAG); else errs() << "null\n"; if (hasIndexField()) { errs() << " Index "; if (Index.getNode()) - Index.getNode()->dump(); + Index.getNode()->dump(DAG); else errs() << "null\n"; } @@ -589,7 +589,7 @@ bool SystemZDAGToDAGISel::selectAddress(SDValue Addr, if (AM.isDynAlloc() && !AM.IncludesDynAlloc) return false; - LLVM_DEBUG(AM.dump()); + LLVM_DEBUG(AM.dump(CurDAG)); return true; } |