mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-16 08:08:01 +00:00
Print basic block boundaries in machine instruction debug output.
llvm-svn: 11704
This commit is contained in:
parent
f3e342dc45
commit
ba33a0ab9b
@ -171,10 +171,13 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) {
|
||||
std::ostream_iterator<Interval>(std::cerr, "\n")));
|
||||
DEBUG(std::cerr << "********** MACHINEINSTRS **********\n");
|
||||
DEBUG(
|
||||
for (unsigned i = 0; i != i2miMap_.size(); ++i) {
|
||||
if (const MachineInstr* mi = i2miMap_[i]) {
|
||||
std:: cerr << i * InstrSlots::NUM << '\t';
|
||||
mi->print(std::cerr, *tm_);
|
||||
for (MachineFunction::iterator mbbi = mf_->begin(), mbbe = mf_->end();
|
||||
mbbi != mbbe; ++mbbi) {
|
||||
std::cerr << mbbi->getBasicBlock()->getName() << ":\n";
|
||||
for (MachineBasicBlock::iterator mii = mbbi->begin(),
|
||||
mie = mbbi->end(); mii != mie; ++mii) {
|
||||
std::cerr << getInstructionIndex(mii) << '\t';
|
||||
mii->print(std::cerr, *tm_);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -360,6 +360,7 @@ bool RA::runOnMachineFunction(MachineFunction &fn) {
|
||||
DEBUG(
|
||||
for (MachineFunction::iterator mbbi = mf_->begin(), mbbe = mf_->end();
|
||||
mbbi != mbbe; ++mbbi) {
|
||||
std::cerr << mbbi->getBasicBlock()->getName() << ":\n";
|
||||
for (MachineBasicBlock::iterator mii = mbbi->begin(),
|
||||
mie = mbbi->end(); mii != mie; ++mii) {
|
||||
unsigned index = li_->getInstructionIndex(mii);
|
||||
|
Loading…
Reference in New Issue
Block a user