Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: src/IceRegAlloc.cpp

Issue 2602713002: Subzero: Fix some build problems against LLVM trunk. (Closed)
Patch Set: Reformat Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceClFlags.def ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceRegAlloc.cpp - Linear-scan implementation -----------===// 1 //===- subzero/src/IceRegAlloc.cpp - Linear-scan implementation -----------===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 /// 9 ///
10 /// \file 10 /// \file
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 Str << "\n"; 68 Str << "\n";
69 } 69 }
70 70
71 void dumpLiveRange(const Variable *Var, const Cfg *Func) { 71 void dumpLiveRange(const Variable *Var, const Cfg *Func) {
72 if (!BuildDefs::dump()) 72 if (!BuildDefs::dump())
73 return; 73 return;
74 Ostream &Str = Func->getContext()->getStrDump(); 74 Ostream &Str = Func->getContext()->getStrDump();
75 Str << "R="; 75 Str << "R=";
76 if (Var->hasRegTmp()) { 76 if (Var->hasRegTmp()) {
77 Str << llvm::format("%2d", Var->getRegNumTmp()); 77 Str << llvm::format("%2d", int(Var->getRegNumTmp()));
78 } else { 78 } else {
79 Str << "NA"; 79 Str << "NA";
80 } 80 }
81 Str << " V="; 81 Str << " V=";
82 Var->dump(Func); 82 Var->dump(Func);
83 Str << " Range=" << Var->getLiveRange(); 83 Str << " Range=" << Var->getLiveRange();
84 } 84 }
85 85
86 int32_t findMinWeightIndex( 86 int32_t findMinWeightIndex(
87 const SmallBitVector &RegMask, 87 const SmallBitVector &RegMask,
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 Str << "\n"; 1021 Str << "\n";
1022 } 1022 }
1023 Str << "++++++ Inactive:\n"; 1023 Str << "++++++ Inactive:\n";
1024 for (const Variable *Item : Inactive) { 1024 for (const Variable *Item : Inactive) {
1025 dumpLiveRange(Item, Func); 1025 dumpLiveRange(Item, Func);
1026 Str << "\n"; 1026 Str << "\n";
1027 } 1027 }
1028 } 1028 }
1029 1029
1030 } // end of namespace Ice 1030 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceClFlags.def ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698