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 156 matching lines...) Loading... |
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...) Loading... |
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 |
OLD | NEW |