| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. |
| 65 /// @{ | 65 /// @{ |
| 66 void setFunctionName(const IceString &Name) { FunctionName = Name; } | 66 void setFunctionName(const IceString &Name) { FunctionName = Name; } |
| 67 IceString getFunctionName() const { return FunctionName; } | 67 const IceString &getFunctionName() const { return FunctionName; } |
| 68 IceString getFunctionNameAndSize() const; |
| 68 void setReturnType(Type Ty) { ReturnType = Ty; } | 69 void setReturnType(Type Ty) { ReturnType = Ty; } |
| 69 Type getReturnType() const { return ReturnType; } | 70 Type getReturnType() const { return ReturnType; } |
| 70 /// @} | 71 /// @} |
| 71 | 72 |
| 72 /// \name Manage the "internal" attribute of the function. | 73 /// \name Manage the "internal" attribute of the function. |
| 73 /// @{ | 74 /// @{ |
| 74 void setInternal(bool Internal) { IsInternalLinkage = Internal; } | 75 void setInternal(bool Internal) { IsInternalLinkage = Internal; } |
| 75 bool getInternal() const { return IsInternalLinkage; } | 76 bool getInternal() const { return IsInternalLinkage; } |
| 76 /// @} | 77 /// @} |
| 77 | 78 |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 310 |
| 310 public: | 311 public: |
| 311 static void TlsInit() { ICE_TLS_INIT_FIELD(CurrentCfg); } | 312 static void TlsInit() { ICE_TLS_INIT_FIELD(CurrentCfg); } |
| 312 }; | 313 }; |
| 313 | 314 |
| 314 template <> Variable *Cfg::makeVariable<Variable>(Type Ty); | 315 template <> Variable *Cfg::makeVariable<Variable>(Type Ty); |
| 315 | 316 |
| 316 } // end of namespace Ice | 317 } // end of namespace Ice |
| 317 | 318 |
| 318 #endif // SUBZERO_SRC_ICECFG_H | 319 #endif // SUBZERO_SRC_ICECFG_H |
| OLD | NEW |