| 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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 /// used in a few cases where we want to take some action on a particular | 485 /// used in a few cases where we want to take some action on a particular |
| 486 /// function or symbol based on a command-line argument, such as changing the | 486 /// function or symbol based on a command-line argument, such as changing the |
| 487 /// verbose level for a particular function. An empty Match argument means | 487 /// verbose level for a particular function. An empty Match argument means |
| 488 /// match everything. Returns true if there is a match. | 488 /// match everything. Returns true if there is a match. |
| 489 static bool matchSymbolName(const IceString &SymbolName, | 489 static bool matchSymbolName(const IceString &SymbolName, |
| 490 const IceString &Match) { | 490 const IceString &Match) { |
| 491 return Match.empty() || Match == SymbolName; | 491 return Match.empty() || Match == SymbolName; |
| 492 } | 492 } |
| 493 | 493 |
| 494 static ClFlags Flags; | 494 static ClFlags Flags; |
| 495 static ClFlagsExtra ExtraFlags; | |
| 496 | 495 |
| 497 /// DisposeGlobalVariablesAfterLowering controls whether the memory used by | 496 /// DisposeGlobalVariablesAfterLowering controls whether the memory used by |
| 498 /// GlobaleVariables can be reclaimed right after they have been lowered. | 497 /// GlobaleVariables can be reclaimed right after they have been lowered. |
| 499 /// @{ | 498 /// @{ |
| 500 bool getDisposeGlobalVariablesAfterLowering() const { | 499 bool getDisposeGlobalVariablesAfterLowering() const { |
| 501 return DisposeGlobalVariablesAfterLowering; | 500 return DisposeGlobalVariablesAfterLowering; |
| 502 } | 501 } |
| 503 | 502 |
| 504 void setDisposeGlobalVariablesAfterLowering(bool Value) { | 503 void setDisposeGlobalVariablesAfterLowering(bool Value) { |
| 505 DisposeGlobalVariablesAfterLowering = Value; | 504 DisposeGlobalVariablesAfterLowering = Value; |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 explicit OstreamLocker(GlobalContext *Ctx) : Ctx(Ctx) { Ctx->lockStr(); } | 697 explicit OstreamLocker(GlobalContext *Ctx) : Ctx(Ctx) { Ctx->lockStr(); } |
| 699 ~OstreamLocker() { Ctx->unlockStr(); } | 698 ~OstreamLocker() { Ctx->unlockStr(); } |
| 700 | 699 |
| 701 private: | 700 private: |
| 702 GlobalContext *const Ctx; | 701 GlobalContext *const Ctx; |
| 703 }; | 702 }; |
| 704 | 703 |
| 705 } // end of namespace Ice | 704 } // end of namespace Ice |
| 706 | 705 |
| 707 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H | 706 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H |
| OLD | NEW |