Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: src/IceCfg.h

Issue 1641653004: Subzero: Make the register allocator more robust with -reg-use and -reg-exclude. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Test code accidentally left in Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698