llvm.org GIT mirror llvm / 0beae0c
Remove using declaration git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9307 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
2 changed file(s) with 32 addition(s) and 36 deletion(s). Raw diff Collapse all Expand all
2020 /// BROKEN: Should not include sparc stuff directly into here
2121 #include "../../Target/Sparc/SparcInternals.h" // Only for PHI defn
2222
23 using std::cerr;
24
2523 static AnnotationID AID(AnnotationManager::getID("Analysis::BBLiveVar"));
2624
2725 BBLiveVar *BBLiveVar::CreateOnBB(const BasicBlock &BB, MachineBasicBlock &MBB,
6260 const MachineInstr *MI = *MII;
6361
6462 if (DEBUG_LV >= LV_DEBUG_Verbose) {
65 cerr << " *Iterating over machine instr ";
63 std::cerr << " *Iterating over machine instr ";
6664 MI->dump();
67 cerr << "\n";
65 std::cerr << "\n";
6866 }
6967
7068 // iterate over MI operands to find defs
104102 PredToEdgeInSetMap[PredBB].insert(ArgVal);
105103
106104 if (DEBUG_LV >= LV_DEBUG_Verbose)
107 cerr << " - phi operand " << RAV(ArgVal) << " came from BB "
108 << RAV(PredBB) << "\n";
105 std::cerr << " - phi operand " << RAV(ArgVal) << " came from BB "
106 << RAV(PredBB) << "\n";
109107 } // if( IsPhi )
110108 else {
111109 // It is not a Phi use: add to regular use set and remove later defs.
138136 InSet.erase(Op); // this definition kills any later uses
139137 InSetChanged = true;
140138
141 if (DEBUG_LV >= LV_DEBUG_Verbose) cerr << " +Def: " << RAV(Op) << "\n";
139 if (DEBUG_LV >= LV_DEBUG_Verbose) std::cerr << " +Def: " << RAV(Op) << "\n";
142140 }
143141
144142
150148 DefSet.erase(Op); // remove if there is a def below this use
151149 InSetChanged = true;
152150
153 if (DEBUG_LV >= LV_DEBUG_Verbose) cerr << " Use: " << RAV(Op) << "\n";
151 if (DEBUG_LV >= LV_DEBUG_Verbose) std::cerr << " Use: " << RAV(Op) << "\n";
154152 }
155153
156154
237235 // ----------------- Methods For Debugging (Printing) -----------------
238236
239237 void BBLiveVar::printAllSets() const {
240 cerr << " Defs: "; printSet(DefSet); cerr << "\n";
241 cerr << " In: "; printSet(InSet); cerr << "\n";
242 cerr << " Out: "; printSet(OutSet); cerr << "\n";
238 std::cerr << " Defs: "; printSet(DefSet); std::cerr << "\n";
239 std::cerr << " In: "; printSet(InSet); std::cerr << "\n";
240 std::cerr << " Out: "; printSet(OutSet); std::cerr << "\n";
243241 }
244242
245243 void BBLiveVar::printInOutSets() const {
246 cerr << " In: "; printSet(InSet); cerr << "\n";
247 cerr << " Out: "; printSet(OutSet); cerr << "\n";
248 }
249
250
251
252
244 std::cerr << " In: "; printSet(InSet); std::cerr << "\n";
245 std::cerr << " Out: "; printSet(OutSet); std::cerr << "\n";
246 }
247
248
249
250
2020 /// BROKEN: Should not include sparc stuff directly into here
2121 #include "../../Target/Sparc/SparcInternals.h" // Only for PHI defn
2222
23 using std::cerr;
24
2523 static AnnotationID AID(AnnotationManager::getID("Analysis::BBLiveVar"));
2624
2725 BBLiveVar *BBLiveVar::CreateOnBB(const BasicBlock &BB, MachineBasicBlock &MBB,
6260 const MachineInstr *MI = *MII;
6361
6462 if (DEBUG_LV >= LV_DEBUG_Verbose) {
65 cerr << " *Iterating over machine instr ";
63 std::cerr << " *Iterating over machine instr ";
6664 MI->dump();
67 cerr << "\n";
65 std::cerr << "\n";
6866 }
6967
7068 // iterate over MI operands to find defs
104102 PredToEdgeInSetMap[PredBB].insert(ArgVal);
105103
106104 if (DEBUG_LV >= LV_DEBUG_Verbose)
107 cerr << " - phi operand " << RAV(ArgVal) << " came from BB "
108 << RAV(PredBB) << "\n";
105 std::cerr << " - phi operand " << RAV(ArgVal) << " came from BB "
106 << RAV(PredBB) << "\n";
109107 } // if( IsPhi )
110108 else {
111109 // It is not a Phi use: add to regular use set and remove later defs.
138136 InSet.erase(Op); // this definition kills any later uses
139137 InSetChanged = true;
140138
141 if (DEBUG_LV >= LV_DEBUG_Verbose) cerr << " +Def: " << RAV(Op) << "\n";
139 if (DEBUG_LV >= LV_DEBUG_Verbose) std::cerr << " +Def: " << RAV(Op) << "\n";
142140 }
143141
144142
150148 DefSet.erase(Op); // remove if there is a def below this use
151149 InSetChanged = true;
152150
153 if (DEBUG_LV >= LV_DEBUG_Verbose) cerr << " Use: " << RAV(Op) << "\n";
151 if (DEBUG_LV >= LV_DEBUG_Verbose) std::cerr << " Use: " << RAV(Op) << "\n";
154152 }
155153
156154
237235 // ----------------- Methods For Debugging (Printing) -----------------
238236
239237 void BBLiveVar::printAllSets() const {
240 cerr << " Defs: "; printSet(DefSet); cerr << "\n";
241 cerr << " In: "; printSet(InSet); cerr << "\n";
242 cerr << " Out: "; printSet(OutSet); cerr << "\n";
238 std::cerr << " Defs: "; printSet(DefSet); std::cerr << "\n";
239 std::cerr << " In: "; printSet(InSet); std::cerr << "\n";
240 std::cerr << " Out: "; printSet(OutSet); std::cerr << "\n";
243241 }
244242
245243 void BBLiveVar::printInOutSets() const {
246 cerr << " In: "; printSet(InSet); cerr << "\n";
247 cerr << " Out: "; printSet(OutSet); cerr << "\n";
248 }
249
250
251
252
244 std::cerr << " In: "; printSet(InSet); std::cerr << "\n";
245 std::cerr << " Out: "; printSet(OutSet); std::cerr << "\n";
246 }
247
248
249
250