diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-10-17 23:57:50 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-10-17 23:57:50 +0000 |
commit | 6d35326cd549163a9af189dddca45c92f6014242 (patch) | |
tree | fc411f113b666c8b1c2dd08f3e674548fc97bf00 /lib/CodeGen/MachineInstr.cpp | |
parent | f43e3366efa9a3a9f54f886bd6022c2f003adf53 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@859 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | lib/CodeGen/MachineInstr.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 8cbf55e840..76fd4e7c83 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/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; |