| OLD | NEW |
| 1 //===- subzero/src/IceCfg.h - Control flow graph ----------------*- C++ -*-===// | 1 //===- subzero/src/IceCfg.h - Control flow graph ----------------*- 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 /// Gets a pointer to the current thread's Cfg's allocator. | 44 /// Gets a pointer to the current thread's Cfg's allocator. |
| 45 static ArenaAllocator<> *getCurrentCfgAllocator() { | 45 static ArenaAllocator<> *getCurrentCfgAllocator() { |
| 46 assert(ICE_TLS_GET_FIELD(CurrentCfg)); | 46 assert(ICE_TLS_GET_FIELD(CurrentCfg)); |
| 47 return ICE_TLS_GET_FIELD(CurrentCfg)->Allocator.get(); | 47 return ICE_TLS_GET_FIELD(CurrentCfg)->Allocator.get(); |
| 48 } | 48 } |
| 49 | 49 |
| 50 GlobalContext *getContext() const { return Ctx; } | 50 GlobalContext *getContext() const { return Ctx; } |
| 51 uint32_t getSequenceNumber() const { return SequenceNumber; } | 51 uint32_t getSequenceNumber() const { return SequenceNumber; } |
| 52 | 52 |
| 53 static constexpr VerboseMask defaultVerboseMask() { | 53 static constexpr VerboseMask defaultVerboseMask() { |
| 54 return IceV_All & ~IceV_Status; | 54 return IceV_All & ~IceV_Status & ~IceV_AvailableRegs; |
| 55 } | 55 } |
| 56 /// Returns true if any of the specified options in the verbose mask are set. | 56 /// Returns true if any of the specified options in the verbose mask are set. |
| 57 /// If the argument is omitted, it checks if any verbose options at all are | 57 /// If the argument is omitted, it checks if any verbose options at all are |
| 58 /// set. | 58 /// set. |
| 59 bool isVerbose(VerboseMask Mask = defaultVerboseMask()) const { | 59 bool isVerbose(VerboseMask Mask = defaultVerboseMask()) const { |
| 60 return VMask & Mask; | 60 return VMask & Mask; |
| 61 } | 61 } |
| 62 void setVerbose(VerboseMask Mask) { VMask = Mask; } | 62 void setVerbose(VerboseMask Mask) { VMask = Mask; } |
| 63 | 63 |
| 64 /// \name Manage the name and return type of the function being translated. | 64 /// \name Manage the name and return type of the function being translated. |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 309 |
| 310 public: | 310 public: |
| 311 static void TlsInit() { ICE_TLS_INIT_FIELD(CurrentCfg); } | 311 static void TlsInit() { ICE_TLS_INIT_FIELD(CurrentCfg); } |
| 312 }; | 312 }; |
| 313 | 313 |
| 314 template <> Variable *Cfg::makeVariable<Variable>(Type Ty); | 314 template <> Variable *Cfg::makeVariable<Variable>(Type Ty); |
| 315 | 315 |
| 316 } // end of namespace Ice | 316 } // end of namespace Ice |
| 317 | 317 |
| 318 #endif // SUBZERO_SRC_ICECFG_H | 318 #endif // SUBZERO_SRC_ICECFG_H |
| OLD | NEW |