mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[Hexagon-ish] Add function to print cell map contents in bit tracker
llvm-svn: 277622
This commit is contained in:
parent
4c6a38add6
commit
66cc222612
@ -169,6 +169,12 @@ namespace llvm {
|
||||
}
|
||||
}
|
||||
|
||||
void BitTracker::print_cells(raw_ostream &OS) const {
|
||||
for (CellMapType::iterator I = Map.begin(), E = Map.end(); I != E; ++I)
|
||||
dbgs() << PrintReg(I->first, &ME.TRI) << " -> " << I->second << "\n";
|
||||
}
|
||||
|
||||
|
||||
BitTracker::BitTracker(const MachineEvaluator &E, MachineFunction &F)
|
||||
: Trace(false), ME(E), MF(F), MRI(F.getRegInfo()), Map(*new CellMapType) {}
|
||||
|
||||
@ -1127,10 +1133,7 @@ void BT::run() {
|
||||
}
|
||||
} // while (!FlowQ->empty())
|
||||
|
||||
if (Trace) {
|
||||
dbgs() << "Cells after propagation:\n";
|
||||
for (CellMapType::iterator I = Map.begin(), E = Map.end(); I != E; ++I)
|
||||
dbgs() << PrintReg(I->first, &ME.TRI) << " -> " << I->second << "\n";
|
||||
}
|
||||
if (Trace)
|
||||
print_cells(dbgs() << "Cells after propagation:\n");
|
||||
}
|
||||
|
||||
|
@ -51,6 +51,8 @@ struct BitTracker {
|
||||
bool reached(const MachineBasicBlock *B) const;
|
||||
void visit(const MachineInstr &MI);
|
||||
|
||||
void print_cells(raw_ostream &OS) const;
|
||||
|
||||
private:
|
||||
void visitPHI(const MachineInstr &PI);
|
||||
void visitNonBranch(const MachineInstr &MI);
|
||||
|
Loading…
Reference in New Issue
Block a user