diff options
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugVariables.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/LiveInterval.cpp | 9 | ||||
-rw-r--r-- | llvm/lib/CodeGen/LivePhysRegs.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/LiveVariables.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 6 | ||||
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/MachineLoopInfo.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/MachineRegionInfo.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/RegAllocPBQP.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/ScoreboardHazardRecognizer.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SlotIndexes.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SplitKit.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/StackColoring.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/VirtRegMap.cpp | 2 |
17 files changed, 24 insertions, 25 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 5d95b965856..f8bd3f37203 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -2076,7 +2076,7 @@ void ExtAddrMode::print(raw_ostream &OS) const { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -void ExtAddrMode::dump() const { +LLVM_DUMP_METHOD void ExtAddrMode::dump() const { print(dbgs()); dbgs() << '\n'; } diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index 6dac7dbd15b..e49f8bf9124 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.cpp +++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp @@ -1033,7 +1033,7 @@ bool LiveDebugVariables::doInitialization(Module &M) { } #ifndef NDEBUG -void LiveDebugVariables::dump() { +LLVM_DUMP_METHOD void LiveDebugVariables::dump() { if (pImpl) static_cast<LDVImpl*>(pImpl)->print(dbgs()); } diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp index 5574a813c6a..90d01f69238 100644 --- a/llvm/lib/CodeGen/LiveInterval.cpp +++ b/llvm/lib/CodeGen/LiveInterval.cpp @@ -1025,7 +1025,7 @@ raw_ostream& llvm::operator<<(raw_ostream& os, const LiveRange::Segment &S) { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -void LiveRange::Segment::dump() const { +LLVM_DUMP_METHOD void LiveRange::Segment::dump() const { dbgs() << *this << "\n"; } #endif @@ -1070,11 +1070,11 @@ void LiveInterval::print(raw_ostream &OS) const { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -void LiveRange::dump() const { +LLVM_DUMP_METHOD void LiveRange::dump() const { dbgs() << *this << "\n"; } -void LiveInterval::dump() const { +LLVM_DUMP_METHOD void LiveInterval::dump() const { dbgs() << *this << "\n"; } #endif @@ -1172,8 +1172,7 @@ void LiveRangeUpdater::print(raw_ostream &OS) const { OS << '\n'; } -void LiveRangeUpdater::dump() const -{ +LLVM_DUMP_METHOD void LiveRangeUpdater::dump() const { print(errs()); } diff --git a/llvm/lib/CodeGen/LivePhysRegs.cpp b/llvm/lib/CodeGen/LivePhysRegs.cpp index 266f895a557..010c33aa377 100644 --- a/llvm/lib/CodeGen/LivePhysRegs.cpp +++ b/llvm/lib/CodeGen/LivePhysRegs.cpp @@ -120,7 +120,7 @@ void LivePhysRegs::print(raw_ostream &OS) const { } /// Dumps the currently live registers to the debug output. -void LivePhysRegs::dump() const { +LLVM_DUMP_METHOD void LivePhysRegs::dump() const { #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) dbgs() << " " << *this; #endif diff --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp index 06b86d82daf..78ede3e748d 100644 --- a/llvm/lib/CodeGen/LiveVariables.cpp +++ b/llvm/lib/CodeGen/LiveVariables.cpp @@ -64,7 +64,7 @@ LiveVariables::VarInfo::findKill(const MachineBasicBlock *MBB) const { return nullptr; } -void LiveVariables::VarInfo::dump() const { +LLVM_DUMP_METHOD void LiveVariables::VarInfo::dump() const { #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) dbgs() << " Alive in blocks: "; for (SparseBitVector<>::iterator I = AliveBlocks.begin(), diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 85d544d9498..5cc7ba69f9c 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -217,7 +217,7 @@ bool MachineBasicBlock::hasEHPadSuccessor() const { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -void MachineBasicBlock::dump() const { +LLVM_DUMP_METHOD void MachineBasicBlock::dump() const { print(dbgs()); } #endif diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 0170236553e..a2823500fa6 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -358,7 +358,7 @@ const char *MachineFunction::createExternalSymbolName(StringRef Name) { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -void MachineFunction::dump() const { +LLVM_DUMP_METHOD void MachineFunction::dump() const { print(dbgs()); } #endif @@ -819,7 +819,7 @@ void MachineJumpTableInfo::print(raw_ostream &OS) const { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -void MachineJumpTableInfo::dump() const { print(dbgs()); } +LLVM_DUMP_METHOD void MachineJumpTableInfo::dump() const { print(dbgs()); } #endif @@ -966,5 +966,5 @@ void MachineConstantPool::print(raw_ostream &OS) const { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -void MachineConstantPool::dump() const { print(dbgs()); } +LLVM_DUMP_METHOD void MachineConstantPool::dump() const { print(dbgs()); } #endif diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 6dca74d6002..e46a699e95b 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -1607,7 +1607,7 @@ void MachineInstr::copyImplicitOps(MachineFunction &MF, } } -void MachineInstr::dump() const { +LLVM_DUMP_METHOD void MachineInstr::dump() const { #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) dbgs() << " " << *this; #endif diff --git a/llvm/lib/CodeGen/MachineLoopInfo.cpp b/llvm/lib/CodeGen/MachineLoopInfo.cpp index 2f5c9e05cc7..117c390f032 100644 --- a/llvm/lib/CodeGen/MachineLoopInfo.cpp +++ b/llvm/lib/CodeGen/MachineLoopInfo.cpp @@ -77,7 +77,7 @@ MachineBasicBlock *MachineLoop::getBottomBlock() { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -void MachineLoop::dump() const { +LLVM_DUMP_METHOD void MachineLoop::dump() const { print(dbgs()); } #endif diff --git a/llvm/lib/CodeGen/MachineRegionInfo.cpp b/llvm/lib/CodeGen/MachineRegionInfo.cpp index 01d2c2eb56f..7d61792ff68 100644 --- a/llvm/lib/CodeGen/MachineRegionInfo.cpp +++ b/llvm/lib/CodeGen/MachineRegionInfo.cpp @@ -113,7 +113,7 @@ void MachineRegionInfoPass::print(raw_ostream &OS, const Module *) const { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -void MachineRegionInfoPass::dump() const { +LLVM_DUMP_METHOD void MachineRegionInfoPass::dump() const { RI.dump(); } #endif diff --git a/llvm/lib/CodeGen/RegAllocPBQP.cpp b/llvm/lib/CodeGen/RegAllocPBQP.cpp index fd28b05ed80..d5b0f96e24a 100644 --- a/llvm/lib/CodeGen/RegAllocPBQP.cpp +++ b/llvm/lib/CodeGen/RegAllocPBQP.cpp @@ -839,7 +839,7 @@ void PBQP::RegAlloc::PBQPRAGraph::dump(raw_ostream &OS) const { } } -void PBQP::RegAlloc::PBQPRAGraph::dump() const { dump(dbgs()); } +LLVM_DUMP_METHOD void PBQP::RegAlloc::PBQPRAGraph::dump() const { dump(dbgs()); } void PBQP::RegAlloc::PBQPRAGraph::printDot(raw_ostream &OS) const { OS << "graph {\n"; diff --git a/llvm/lib/CodeGen/ScoreboardHazardRecognizer.cpp b/llvm/lib/CodeGen/ScoreboardHazardRecognizer.cpp index 38833a4165a..e765486c74b 100644 --- a/llvm/lib/CodeGen/ScoreboardHazardRecognizer.cpp +++ b/llvm/lib/CodeGen/ScoreboardHazardRecognizer.cpp @@ -91,7 +91,7 @@ void ScoreboardHazardRecognizer::Reset() { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -void ScoreboardHazardRecognizer::Scoreboard::dump() const { +LLVM_DUMP_METHOD void ScoreboardHazardRecognizer::Scoreboard::dump() const { dbgs() << "Scoreboard:\n"; unsigned last = Depth - 1; diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp index a1c6c4c1dd6..6555cccdbea 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp @@ -378,7 +378,7 @@ static Printable PrintNodeId(const SDNode &Node) { }); } -void SDNode::dump() const { dump(nullptr); } +LLVM_DUMP_METHOD void SDNode::dump() const { dump(nullptr); } void SDNode::dump(const SelectionDAG *G) const { print(dbgs(), G); dbgs() << '\n'; @@ -590,7 +590,7 @@ static void DumpNodes(const SDNode *N, unsigned indent, const SelectionDAG *G) { N->dump(G); } -void SelectionDAG::dump() const { +LLVM_DUMP_METHOD void SelectionDAG::dump() const { dbgs() << "SelectionDAG has " << AllNodes.size() << " nodes:\n"; for (allnodes_const_iterator I = allnodes_begin(), E = allnodes_end(); diff --git a/llvm/lib/CodeGen/SlotIndexes.cpp b/llvm/lib/CodeGen/SlotIndexes.cpp index c9d23f67bde..f96b2a604e5 100644 --- a/llvm/lib/CodeGen/SlotIndexes.cpp +++ b/llvm/lib/CodeGen/SlotIndexes.cpp @@ -214,7 +214,7 @@ void SlotIndexes::repairIndexesInRange(MachineBasicBlock *MBB, } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -void SlotIndexes::dump() const { +LLVM_DUMP_METHOD void SlotIndexes::dump() const { for (IndexList::const_iterator itr = indexList.begin(); itr != indexList.end(); ++itr) { dbgs() << itr->getIndex() << " "; @@ -242,7 +242,7 @@ void SlotIndex::print(raw_ostream &os) const { #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) // Dump a SlotIndex to stderr. -void SlotIndex::dump() const { +LLVM_DUMP_METHOD void SlotIndex::dump() const { print(dbgs()); dbgs() << "\n"; } diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp index 51dddabed2d..854fd4b9eea 100644 --- a/llvm/lib/CodeGen/SplitKit.cpp +++ b/llvm/lib/CodeGen/SplitKit.cpp @@ -347,7 +347,7 @@ void SplitEditor::reset(LiveRangeEdit &LRE, ComplementSpillMode SM) { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -void SplitEditor::dump() const { +LLVM_DUMP_METHOD void SplitEditor::dump() const { if (RegAssign.empty()) { dbgs() << " empty\n"; return; diff --git a/llvm/lib/CodeGen/StackColoring.cpp b/llvm/lib/CodeGen/StackColoring.cpp index 29ba526bc67..30032b18e2f 100644 --- a/llvm/lib/CodeGen/StackColoring.cpp +++ b/llvm/lib/CodeGen/StackColoring.cpp @@ -194,7 +194,7 @@ void StackColoring::getAnalysisUsage(AnalysisUsage &AU) const { MachineFunctionPass::getAnalysisUsage(AU); } -void StackColoring::dump() const { +LLVM_DUMP_METHOD void StackColoring::dump() const { for (MachineBasicBlock *MBB : depth_first(MF)) { DEBUG(dbgs() << "Inspecting block #" << BasicBlocks.lookup(MBB) << " [" << MBB->getName() << "]\n"); diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp index bf1c0dce9e5..e95cc6caf96 100644 --- a/llvm/lib/CodeGen/VirtRegMap.cpp +++ b/llvm/lib/CodeGen/VirtRegMap.cpp @@ -139,7 +139,7 @@ void VirtRegMap::print(raw_ostream &OS, const Module*) const { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -void VirtRegMap::dump() const { +LLVM_DUMP_METHOD void VirtRegMap::dump() const { print(dbgs()); } #endif |