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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 /// Uses DataLowering to lower Globals. Side effects: | 446 /// Uses DataLowering to lower Globals. Side effects: |
447 /// - discards the initializer list for the global variable in Globals. | 447 /// - discards the initializer list for the global variable in Globals. |
448 /// - clears the Globals array. | 448 /// - clears the Globals array. |
449 void lowerGlobals(const std::string &SectionSuffix); | 449 void lowerGlobals(const std::string &SectionSuffix); |
450 | 450 |
451 /// Lowers the profile information. | 451 /// Lowers the profile information. |
452 void lowerProfileData(); | 452 void lowerProfileData(); |
453 | 453 |
454 void dumpConstantLookupCounts(); | 454 void dumpConstantLookupCounts(); |
455 | 455 |
456 /// Utility function to match a symbol name against a match string. This is | |
457 /// used in a few cases where we want to take some action on a particular | |
458 /// function or symbol based on a command-line argument, such as changing the | |
459 /// verbose level for a particular function. An empty Match argument means | |
460 /// match everything. Returns true if there is a match. | |
461 static bool matchSymbolName(const GlobalString &SymbolName, | |
462 const std::string &Match); | |
463 | |
464 /// DisposeGlobalVariablesAfterLowering controls whether the memory used by | 456 /// DisposeGlobalVariablesAfterLowering controls whether the memory used by |
465 /// GlobaleVariables can be reclaimed right after they have been lowered. | 457 /// GlobaleVariables can be reclaimed right after they have been lowered. |
466 /// @{ | 458 /// @{ |
467 bool getDisposeGlobalVariablesAfterLowering() const { | 459 bool getDisposeGlobalVariablesAfterLowering() const { |
468 return DisposeGlobalVariablesAfterLowering; | 460 return DisposeGlobalVariablesAfterLowering; |
469 } | 461 } |
470 | 462 |
471 void setDisposeGlobalVariablesAfterLowering(bool Value) { | 463 void setDisposeGlobalVariablesAfterLowering(bool Value) { |
472 DisposeGlobalVariablesAfterLowering = Value; | 464 DisposeGlobalVariablesAfterLowering = Value; |
473 } | 465 } |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 explicit OstreamLocker(GlobalContext *Ctx) : Ctx(Ctx) { Ctx->lockStr(); } | 676 explicit OstreamLocker(GlobalContext *Ctx) : Ctx(Ctx) { Ctx->lockStr(); } |
685 ~OstreamLocker() { Ctx->unlockStr(); } | 677 ~OstreamLocker() { Ctx->unlockStr(); } |
686 | 678 |
687 private: | 679 private: |
688 GlobalContext *const Ctx; | 680 GlobalContext *const Ctx; |
689 }; | 681 }; |
690 | 682 |
691 } // end of namespace Ice | 683 } // end of namespace Ice |
692 | 684 |
693 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H | 685 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H |
OLD | NEW |