| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 /// Deallocate data that was allocated via allocate<T>(). | 247 /// Deallocate data that was allocated via allocate<T>(). |
| 248 template <typename T> void deallocate(T *Object) { | 248 template <typename T> void deallocate(T *Object) { |
| 249 Allocator->Deallocate(Object); | 249 Allocator->Deallocate(Object); |
| 250 } | 250 } |
| 251 | 251 |
| 252 /// Deallocate data that was allocated via allocateArrayOf<T>(). | 252 /// Deallocate data that was allocated via allocateArrayOf<T>(). |
| 253 template <typename T> void deallocateArrayOf(T *Array) { | 253 template <typename T> void deallocateArrayOf(T *Array) { |
| 254 Allocator->Deallocate(Array); | 254 Allocator->Deallocate(Array); |
| 255 } | 255 } |
| 256 | 256 |
| 257 /// Update Phi labels with InEdges. |
| 258 /// |
| 259 /// The WASM translator cannot always determine the right incoming edge for a |
| 260 /// value. The fixPhiNodes pass fills in the correct information once |
| 261 /// everything is known. |
| 262 void fixPhiNodes(); |
| 263 |
| 257 private: | 264 private: |
| 258 friend class CfgAllocatorTraits; // for Allocator access. | 265 friend class CfgAllocatorTraits; // for Allocator access. |
| 259 | 266 |
| 260 Cfg(GlobalContext *Ctx, uint32_t SequenceNumber); | 267 Cfg(GlobalContext *Ctx, uint32_t SequenceNumber); |
| 261 | 268 |
| 262 /// Adds a call to the ProfileSummary runtime function as the first | 269 /// Adds a call to the ProfileSummary runtime function as the first |
| 263 /// instruction in this CFG's entry block. | 270 /// instruction in this CFG's entry block. |
| 264 void addCallToProfileSummary(); | 271 void addCallToProfileSummary(); |
| 265 | 272 |
| 266 /// Iterates over the basic blocks in this CFG, adding profiling code to each | 273 /// Iterates over the basic blocks in this CFG, adding profiling code to each |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 using OwnerType = Cfg; | 349 using OwnerType = Cfg; |
| 343 static StringPool *getStrings(const OwnerType *PoolOwner) { | 350 static StringPool *getStrings(const OwnerType *PoolOwner) { |
| 344 return PoolOwner->getVarStrings(); | 351 return PoolOwner->getVarStrings(); |
| 345 } | 352 } |
| 346 }; | 353 }; |
| 347 using VariableString = StringID<VariableStringPoolTraits>; | 354 using VariableString = StringID<VariableStringPoolTraits>; |
| 348 | 355 |
| 349 } // end of namespace Ice | 356 } // end of namespace Ice |
| 350 | 357 |
| 351 #endif // SUBZERO_SRC_ICECFG_H | 358 #endif // SUBZERO_SRC_ICECFG_H |
| OLD | NEW |