diff options
author | Chris Lattner <sabre@nondot.org> | 2003-01-15 19:47:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-01-15 19:47:53 +0000 |
commit | 0412077faf0cc7e7e159e67b6d69e653137ddfe2 (patch) | |
tree | 89e7125adb30e9ea967ef1bd8ba569fb81b41296 /lib/CodeGen/InstrSelection/InstrSelection.cpp | |
parent | b66fdc2934133872db1407bee749b69a4b59b2b7 (diff) |
Minor changes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/InstrSelection/InstrSelection.cpp')
-rw-r--r-- | lib/CodeGen/InstrSelection/InstrSelection.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/lib/CodeGen/InstrSelection/InstrSelection.cpp b/lib/CodeGen/InstrSelection/InstrSelection.cpp index 294ecc6813..0c30b3d17d 100644 --- a/lib/CodeGen/InstrSelection/InstrSelection.cpp +++ b/lib/CodeGen/InstrSelection/InstrSelection.cpp @@ -19,9 +19,12 @@ #include "llvm/Pass.h" #include "Support/CommandLine.h" #include "Support/LeakDetector.h" -using std::cerr; using std::vector; +std::vector<MachineInstr*> +FixConstantOperandsForInstr(Instruction* vmInstr, MachineInstr* minstr, + TargetMachine& target); + namespace { //===--------------------------------------------------------------------===// // SelectDebugLevel - Allow command line control over debugging. @@ -108,10 +111,10 @@ bool InstructionSelection::runOnFunction(Function &F) if (SelectDebugLevel >= Select_DebugInstTrees) { - cerr << "\n\n*** Input to instruction selection for function " - << F.getName() << "\n\n" << F - << "\n\n*** Instruction trees for function " - << F.getName() << "\n\n"; + std::cerr << "\n\n*** Input to instruction selection for function " + << F.getName() << "\n\n" << F + << "\n\n*** Instruction trees for function " + << F.getName() << "\n\n"; instrForest.dump(); } @@ -130,7 +133,7 @@ bool InstructionSelection::runOnFunction(Function &F) if (SelectDebugLevel >= Select_DebugBurgTrees) { printcover(basicNode, 1, 0); - cerr << "\nCover cost == " << treecost(basicNode, 1, 0) << "\n\n"; + std::cerr << "\nCover cost == " << treecost(basicNode, 1, 0) <<"\n\n"; printMatches(basicNode); } @@ -159,7 +162,7 @@ bool InstructionSelection::runOnFunction(Function &F) if (SelectDebugLevel >= Select_PrintMachineCode) { - cerr << "\n*** Machine instructions after INSTRUCTION SELECTION\n"; + std::cerr << "\n*** Machine instructions after INSTRUCTION SELECTION\n"; MachineFunction::get(&F).dump(); } @@ -276,7 +279,7 @@ InstructionSelection::SelectInstructionsForTree(InstrTreeNode* treeRoot, int ruleForNode = burm_rule(treeRoot->state, goalnt); if (ruleForNode == 0) { - cerr << "Could not match instruction tree for instr selection\n"; + std::cerr << "Could not match instruction tree for instr selection\n"; abort(); } @@ -375,4 +378,3 @@ InstructionSelection::PostprocessMachineCodeForTree(InstructionNode* instrNode, Pass *createInstructionSelectionPass(TargetMachine &T) { return new InstructionSelection(T); } - |