Chromium Code Reviews

Side by Side Diff: src/IceCfg.h

Issue 1804133002: Subzero. Uses unique_ptrs in the emit queue. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « no previous file | src/IceGlobalContext.h » ('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 156 matching lines...)
167 /// @} 167 /// @}
168 168
169 /// \name Miscellaneous accessors. 169 /// \name Miscellaneous accessors.
170 /// @{ 170 /// @{
171 TargetLowering *getTarget() const { return Target.get(); } 171 TargetLowering *getTarget() const { return Target.get(); }
172 VariablesMetadata *getVMetadata() const { return VMetadata.get(); } 172 VariablesMetadata *getVMetadata() const { return VMetadata.get(); }
173 Liveness *getLiveness() const { return Live.get(); } 173 Liveness *getLiveness() const { return Live.get(); }
174 template <typename T = Assembler> T *getAssembler() const { 174 template <typename T = Assembler> T *getAssembler() const {
175 return llvm::dyn_cast<T>(TargetAssembler.get()); 175 return llvm::dyn_cast<T>(TargetAssembler.get());
176 } 176 }
177 Assembler *releaseAssembler() { return TargetAssembler.release(); } 177 std::unique_ptr<Assembler> releaseAssembler() {
178 return std::move(TargetAssembler);
179 }
178 bool hasComputedFrame() const; 180 bool hasComputedFrame() const;
179 bool getFocusedTiming() const { return FocusedTiming; } 181 bool getFocusedTiming() const { return FocusedTiming; }
180 void setFocusedTiming() { FocusedTiming = true; } 182 void setFocusedTiming() { FocusedTiming = true; }
181 uint32_t getConstantBlindingCookie() const { return ConstantBlindingCookie; } 183 uint32_t getConstantBlindingCookie() const { return ConstantBlindingCookie; }
182 /// @} 184 /// @}
183 185
184 /// Returns true if Var is a global variable that is used by the profiling 186 /// Returns true if Var is a global variable that is used by the profiling
185 /// code. 187 /// code.
186 static bool isProfileGlobal(const VariableDeclaration &Var); 188 static bool isProfileGlobal(const VariableDeclaration &Var);
187 189
(...skipping 142 matching lines...)
330 332
331 public: 333 public:
332 static void TlsInit() { CfgAllocatorTraits::init(); } 334 static void TlsInit() { CfgAllocatorTraits::init(); }
333 }; 335 };
334 336
335 template <> Variable *Cfg::makeVariable<Variable>(Type Ty); 337 template <> Variable *Cfg::makeVariable<Variable>(Type Ty);
336 338
337 } // end of namespace Ice 339 } // end of namespace Ice
338 340
339 #endif // SUBZERO_SRC_ICECFG_H 341 #endif // SUBZERO_SRC_ICECFG_H
OLDNEW
« no previous file with comments | « no previous file | src/IceGlobalContext.h » ('j') | no next file with comments »

Powered by Google App Engine