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