| OLD | NEW |
| 1 //===- subzero/src/IceGlobalContext.h - Global context defs -----*- C++ -*-===// | 1 //===- subzero/src/IceGlobalContext.h - Global context defs -----*- 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 // This file declares aspects of the compilation that persist across | 10 // This file declares aspects of the compilation that persist across |
| 11 // multiple functions. | 11 // multiple functions. |
| 12 // | 12 // |
| 13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
| 14 | 14 |
| 15 #ifndef SUBZERO_SRC_ICEGLOBALCONTEXT_H | 15 #ifndef SUBZERO_SRC_ICEGLOBALCONTEXT_H |
| 16 #define SUBZERO_SRC_ICEGLOBALCONTEXT_H | 16 #define SUBZERO_SRC_ICEGLOBALCONTEXT_H |
| 17 | 17 |
| 18 #include <array> | |
| 19 #include <functional> | |
| 20 #include <mutex> | |
| 21 #include <thread> | |
| 22 #include <type_traits> | |
| 23 #include <vector> | |
| 24 | |
| 25 #include "IceDefs.h" | 18 #include "IceDefs.h" |
| 26 #include "IceClFlags.h" | 19 #include "IceClFlags.h" |
| 27 #include "IceIntrinsics.h" | 20 #include "IceIntrinsics.h" |
| 28 #include "IceRNG.h" | 21 #include "IceRNG.h" |
| 29 #include "IceThreading.h" | 22 #include "IceThreading.h" |
| 30 #include "IceTimerTree.h" | 23 #include "IceTimerTree.h" |
| 31 #include "IceTypes.h" | 24 #include "IceTypes.h" |
| 32 #include "IceUtils.h" | 25 #include "IceUtils.h" |
| 33 | 26 |
| 27 #include <array> |
| 28 #include <functional> |
| 29 #include <mutex> |
| 30 #include <thread> |
| 31 #include <type_traits> |
| 32 #include <vector> |
| 33 |
| 34 namespace Ice { | 34 namespace Ice { |
| 35 | 35 |
| 36 class ClFlags; | 36 class ClFlags; |
| 37 class ConstantPool; | 37 class ConstantPool; |
| 38 class EmitterWorkItem; | 38 class EmitterWorkItem; |
| 39 class FuncSigType; | 39 class FuncSigType; |
| 40 | 40 |
| 41 // LockedPtr is a way to provide automatically locked access to some object. | 41 // LockedPtr is a way to provide automatically locked access to some object. |
| 42 template <typename T> class LockedPtr { | 42 template <typename T> class LockedPtr { |
| 43 LockedPtr() = delete; | 43 LockedPtr() = delete; |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 explicit OstreamLocker(GlobalContext *Ctx) : Ctx(Ctx) { Ctx->lockStr(); } | 597 explicit OstreamLocker(GlobalContext *Ctx) : Ctx(Ctx) { Ctx->lockStr(); } |
| 598 ~OstreamLocker() { Ctx->unlockStr(); } | 598 ~OstreamLocker() { Ctx->unlockStr(); } |
| 599 | 599 |
| 600 private: | 600 private: |
| 601 GlobalContext *const Ctx; | 601 GlobalContext *const Ctx; |
| 602 }; | 602 }; |
| 603 | 603 |
| 604 } // end of namespace Ice | 604 } // end of namespace Ice |
| 605 | 605 |
| 606 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H | 606 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H |
| OLD | NEW |