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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 static std::unique_ptr<Cfg> create(GlobalContext *Ctx, | 35 static std::unique_ptr<Cfg> create(GlobalContext *Ctx, |
36 uint32_t SequenceNumber) { | 36 uint32_t SequenceNumber) { |
37 return std::unique_ptr<Cfg>(new Cfg(Ctx, SequenceNumber)); | 37 return std::unique_ptr<Cfg>(new Cfg(Ctx, SequenceNumber)); |
38 } | 38 } |
39 | 39 |
40 GlobalContext *getContext() const { return Ctx; } | 40 GlobalContext *getContext() const { return Ctx; } |
41 uint32_t getSequenceNumber() const { return SequenceNumber; } | 41 uint32_t getSequenceNumber() const { return SequenceNumber; } |
42 | 42 |
43 static constexpr VerboseMask defaultVerboseMask() { | 43 static constexpr VerboseMask defaultVerboseMask() { |
44 return IceV_All & ~IceV_Status & ~IceV_AvailableRegs; | 44 return (IceV_NO_PER_PASS_DUMP_BEYOND << 1) - 1; |
45 } | 45 } |
46 /// Returns true if any of the specified options in the verbose mask are set. | 46 /// Returns true if any of the specified options in the verbose mask are set. |
47 /// If the argument is omitted, it checks if any verbose options at all are | 47 /// If the argument is omitted, it checks if any verbose options at all are |
48 /// set. | 48 /// set. |
49 bool isVerbose(VerboseMask Mask = defaultVerboseMask()) const { | 49 bool isVerbose(VerboseMask Mask = defaultVerboseMask()) const { |
50 return VMask & Mask; | 50 return VMask & Mask; |
51 } | 51 } |
52 void setVerbose(VerboseMask Mask) { VMask = Mask; } | 52 void setVerbose(VerboseMask Mask) { VMask = Mask; } |
53 | 53 |
54 /// \name Manage the name and return type of the function being translated. | 54 /// \name Manage the name and return type of the function being translated. |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 | 311 |
312 public: | 312 public: |
313 static void TlsInit() { CfgAllocatorTraits::init(); } | 313 static void TlsInit() { CfgAllocatorTraits::init(); } |
314 }; | 314 }; |
315 | 315 |
316 template <> Variable *Cfg::makeVariable<Variable>(Type Ty); | 316 template <> Variable *Cfg::makeVariable<Variable>(Type Ty); |
317 | 317 |
318 } // end of namespace Ice | 318 } // end of namespace Ice |
319 | 319 |
320 #endif // SUBZERO_SRC_ICECFG_H | 320 #endif // SUBZERO_SRC_ICECFG_H |
OLD | NEW |