| OLD | NEW |
| 1 //===- subzero/src/IceOperand.cpp - High-level operand implementation -----===// | 1 //===- subzero/src/IceOperand.cpp - High-level operand 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 // This file implements the Operand class and its target-independent | 10 // This file implements the Operand class and its target-independent |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 case MDS_MultiDefMultiBlock: | 252 case MDS_MultiDefMultiBlock: |
| 253 case MDS_MultiDefSingleBlock: | 253 case MDS_MultiDefSingleBlock: |
| 254 return NULL; | 254 return NULL; |
| 255 case MDS_SingleDef: | 255 case MDS_SingleDef: |
| 256 assert(!Definitions.empty()); | 256 assert(!Definitions.empty()); |
| 257 return Definitions[0]; | 257 return Definitions[0]; |
| 258 } | 258 } |
| 259 } | 259 } |
| 260 | 260 |
| 261 void VariablesMetadata::init() { | 261 void VariablesMetadata::init() { |
| 262 TimerMarker T("vmetadata", Func->getContext()); |
| 262 Metadata.clear(); | 263 Metadata.clear(); |
| 263 Metadata.resize(Func->getNumVariables()); | 264 Metadata.resize(Func->getNumVariables()); |
| 264 | 265 |
| 265 // Mark implicit args as being used in the entry node. | 266 // Mark implicit args as being used in the entry node. |
| 266 const VarList &ImplicitArgList = Func->getImplicitArgs(); | 267 const VarList &ImplicitArgList = Func->getImplicitArgs(); |
| 267 for (VarList::const_iterator I = ImplicitArgList.begin(), | 268 for (VarList::const_iterator I = ImplicitArgList.begin(), |
| 268 E = ImplicitArgList.end(); | 269 E = ImplicitArgList.end(); |
| 269 I != E; ++I) { | 270 I != E; ++I) { |
| 270 const Variable *Var = *I; | 271 const Variable *Var = *I; |
| 271 const Inst *NoInst = NULL; | 272 const Inst *NoInst = NULL; |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 | 437 |
| 437 Ostream &operator<<(Ostream &Str, const RegWeight &W) { | 438 Ostream &operator<<(Ostream &Str, const RegWeight &W) { |
| 438 if (W.getWeight() == RegWeight::Inf) | 439 if (W.getWeight() == RegWeight::Inf) |
| 439 Str << "Inf"; | 440 Str << "Inf"; |
| 440 else | 441 else |
| 441 Str << W.getWeight(); | 442 Str << W.getWeight(); |
| 442 return Str; | 443 return Str; |
| 443 } | 444 } |
| 444 | 445 |
| 445 } // end of namespace Ice | 446 } // end of namespace Ice |
| OLD | NEW |