| OLD | NEW |
| 1 //===- subzero/src/IceGlobalContext.h - Global context defs -----*- C++ -*-===// | 1 //===- subzero/src/IceGlobalContext.h - Global context defs -----*- C++ -*-===// |
| 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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 void emitItems(); | 421 void emitItems(); |
| 422 | 422 |
| 423 /// Uses DataLowering to lower Globals. Side effects: | 423 /// Uses DataLowering to lower Globals. Side effects: |
| 424 /// - discards the initializer list for the global variable in Globals. | 424 /// - discards the initializer list for the global variable in Globals. |
| 425 /// - clears the Globals array. | 425 /// - clears the Globals array. |
| 426 void lowerGlobals(const IceString &SectionSuffix); | 426 void lowerGlobals(const IceString &SectionSuffix); |
| 427 | 427 |
| 428 /// Lowers the profile information. | 428 /// Lowers the profile information. |
| 429 void lowerProfileData(); | 429 void lowerProfileData(); |
| 430 | 430 |
| 431 void dumpConstantLookupCounts(); |
| 432 |
| 431 /// Utility function to match a symbol name against a match string. This is | 433 /// Utility function to match a symbol name against a match string. This is |
| 432 /// used in a few cases where we want to take some action on a particular | 434 /// used in a few cases where we want to take some action on a particular |
| 433 /// function or symbol based on a command-line argument, such as changing the | 435 /// function or symbol based on a command-line argument, such as changing the |
| 434 /// verbose level for a particular function. An empty Match argument means | 436 /// verbose level for a particular function. An empty Match argument means |
| 435 /// match everything. Returns true if there is a match. | 437 /// match everything. Returns true if there is a match. |
| 436 static bool matchSymbolName(const IceString &SymbolName, | 438 static bool matchSymbolName(const IceString &SymbolName, |
| 437 const IceString &Match) { | 439 const IceString &Match) { |
| 438 return Match.empty() || Match == SymbolName; | 440 return Match.empty() || Match == SymbolName; |
| 439 } | 441 } |
| 440 | 442 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 explicit OstreamLocker(GlobalContext *Ctx) : Ctx(Ctx) { Ctx->lockStr(); } | 606 explicit OstreamLocker(GlobalContext *Ctx) : Ctx(Ctx) { Ctx->lockStr(); } |
| 605 ~OstreamLocker() { Ctx->unlockStr(); } | 607 ~OstreamLocker() { Ctx->unlockStr(); } |
| 606 | 608 |
| 607 private: | 609 private: |
| 608 GlobalContext *const Ctx; | 610 GlobalContext *const Ctx; |
| 609 }; | 611 }; |
| 610 | 612 |
| 611 } // end of namespace Ice | 613 } // end of namespace Ice |
| 612 | 614 |
| 613 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H | 615 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H |
| OLD | NEW |