summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-10-17 23:57:50 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-10-17 23:57:50 +0000
commit6d19dc90803589e8e6ad2eec177d8343ddb976bc (patch)
tree7e973c6fdcf44943ab7e5695c660c9bb112fffb8 /llvm/lib/CodeGen/MachineInstr.cpp
parentad97e4ed84e513cbb6fc07cdf79dd90ef5df68e7 (diff)
downloadbcm5719-llvm-6d19dc90803589e8e6ad2eec177d8343ddb976bc.tar.gz
bcm5719-llvm-6d19dc90803589e8e6ad2eec177d8343ddb976bc.zip
1. Add a bottom-up pass on BURG trees that is used to fix constant operands.
Needs to be bottom up because constant values may be forward-substituted to their uses (i.e., into the parent in the BURG tree). 2. Move most of the constant-fixup code into machine-indepedent file InstrSelectionSupport.cpp. llvm-svn: 859
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 8cbf55e840f..76fd4e7c835 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -98,9 +98,10 @@ operator<< (ostream& os, const MachineInstr& minstr)
const Value* val = *vo;
os << val << (vo.isDef()? "(def), " : ", ");
}
- os << endl;
#endif
+ os << endl;
+
return os;
}
@@ -170,7 +171,7 @@ PrintMachineInstructions(const Method *const method)
MachineCodeForBasicBlock& mvec = bb->getMachineInstrVec();
for (unsigned i=0; i < mvec.size(); i++)
- cout << "\t" << *mvec[i] << endl;
+ cout << "\t" << *mvec[i];
}
cout << endl << "End method \"" << method->getName() << "\""
<< endl << endl;
OpenPOWER on IntegriCloud