/external/llvm-project/llvm/unittests/Support/ |
D | CrashRecoveryTest.cpp | 43 llvm::CrashRecoveryContext::Enable(); in TEST() 45 EXPECT_TRUE(CrashRecoveryContext().RunSafely(incrementGlobal)); in TEST() 47 EXPECT_FALSE(CrashRecoveryContext().RunSafely(nullDeref)); in TEST() 48 EXPECT_FALSE(CrashRecoveryContext().RunSafely(llvmTrap)); in TEST() 52 IncrementGlobalCleanup(CrashRecoveryContext *CRC) in IncrementGlobalCleanup() 60 llvm::CrashRecoveryContext::Enable(); in TEST() 63 CrashRecoveryContext CRC; in TEST() 71 CrashRecoveryContext CRC; in TEST() 76 llvm::CrashRecoveryContext::Disable(); in TEST() 86 llvm::CrashRecoveryContext::Enable(); in TEST() [all …]
|
/external/llvm/lib/Support/ |
D | CrashRecoveryContext.cpp | 33 CrashRecoveryContext *CRC; 39 CrashRecoveryContextImpl(CrashRecoveryContext *CRC) : CRC(CRC), in CrashRecoveryContextImpl() 78 static ManagedStatic<sys::ThreadLocal<const CrashRecoveryContext>> 83 CrashRecoveryContext::~CrashRecoveryContext() { in ~CrashRecoveryContext() 86 const CrashRecoveryContext *PC = tlIsRecoveringFromCrash->get(); in ~CrashRecoveryContext() 101 bool CrashRecoveryContext::isRecoveringFromCrash() { in isRecoveringFromCrash() 105 CrashRecoveryContext *CrashRecoveryContext::GetCurrent() { in GetCurrent() 116 void CrashRecoveryContext::registerCleanup(CrashRecoveryContextCleanup *cleanup) in registerCleanup() 127 CrashRecoveryContext::unregisterCleanup(CrashRecoveryContextCleanup *cleanup) { in unregisterCleanup() 173 CrashRecoveryContext::Disable(); in ExceptionHandler() [all …]
|
D | CMakeLists.txt | 45 CrashRecoveryContext.cpp
|
/external/llvm-project/llvm/lib/Support/ |
D | CrashRecoveryContext.cpp | 35 CrashRecoveryContext *CRC; 42 CrashRecoveryContextImpl(CrashRecoveryContext *CRC) noexcept in CrashRecoveryContextImpl() 90 static ManagedStatic<sys::ThreadLocal<const CrashRecoveryContext>> 98 CrashRecoveryContext::CrashRecoveryContext() { in CrashRecoveryContext() function in CrashRecoveryContext 105 CrashRecoveryContext::~CrashRecoveryContext() { in ~CrashRecoveryContext() 108 const CrashRecoveryContext *PC = tlIsRecoveringFromCrash->get(); in ~CrashRecoveryContext() 123 bool CrashRecoveryContext::isRecoveringFromCrash() { in isRecoveringFromCrash() 127 CrashRecoveryContext *CrashRecoveryContext::GetCurrent() { in GetCurrent() 138 void CrashRecoveryContext::Enable() { in Enable() 147 void CrashRecoveryContext::Disable() { in Disable() [all …]
|
D | Process.cpp | 97 if (CrashRecoveryContext *CRC = CrashRecoveryContext::GetCurrent()) in Exit()
|
/external/llvm/include/llvm/Support/ |
D | CrashRecoveryContext.h | 41 class CrashRecoveryContext { 46 CrashRecoveryContext() : Impl(nullptr), head(nullptr) {} in CrashRecoveryContext() function 47 ~CrashRecoveryContext(); 60 static CrashRecoveryContext *GetCurrent(); 99 CrashRecoveryContext *context; 100 CrashRecoveryContextCleanup(CrashRecoveryContext *context) in CrashRecoveryContextCleanup() 109 CrashRecoveryContext *getContext() const { in getContext() 114 friend class CrashRecoveryContext; 122 CrashRecoveryContextCleanupBase(CrashRecoveryContext *context, T *resource) in CrashRecoveryContextCleanupBase() 128 if (CrashRecoveryContext *context = CrashRecoveryContext::GetCurrent()) in create() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | CrashRecoveryContext.cpp | 37 CrashRecoveryContext *CRC; 44 CrashRecoveryContextImpl(CrashRecoveryContext *CRC) noexcept in CrashRecoveryContextImpl() 92 static ManagedStatic<sys::ThreadLocal<const CrashRecoveryContext>> 100 CrashRecoveryContext::~CrashRecoveryContext() { in ~CrashRecoveryContext() 103 const CrashRecoveryContext *PC = tlIsRecoveringFromCrash->get(); in ~CrashRecoveryContext() 118 bool CrashRecoveryContext::isRecoveringFromCrash() { in isRecoveringFromCrash() 122 CrashRecoveryContext *CrashRecoveryContext::GetCurrent() { in GetCurrent() 133 void CrashRecoveryContext::Enable() { in Enable() 142 void CrashRecoveryContext::Disable() { in Disable() 150 void CrashRecoveryContext::registerCleanup(CrashRecoveryContextCleanup *cleanup) in registerCleanup() [all …]
|
D | Process.cpp | 94 if (CrashRecoveryContext *CRC = CrashRecoveryContext::GetCurrent()) in Exit()
|
D | CMakeLists.txt | 83 CrashRecoveryContext.cpp
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | CrashRecoveryContext.h | 46 class CrashRecoveryContext { 51 CrashRecoveryContext(); 52 ~CrashRecoveryContext(); 69 static CrashRecoveryContext *GetCurrent(); 127 CrashRecoveryContext *context = nullptr; 128 CrashRecoveryContextCleanup(CrashRecoveryContext *context) in CrashRecoveryContextCleanup() 137 CrashRecoveryContext *getContext() const { in getContext() 142 friend class CrashRecoveryContext; 161 CrashRecoveryContextCleanupBase(CrashRecoveryContext *context, T *resource) in CrashRecoveryContextCleanupBase() 171 if (CrashRecoveryContext *context = CrashRecoveryContext::GetCurrent()) in create() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | CrashRecoveryContext.h | 46 class CrashRecoveryContext { 51 CrashRecoveryContext() : Impl(nullptr), head(nullptr) {} in CrashRecoveryContext() function 52 ~CrashRecoveryContext(); 69 static CrashRecoveryContext *GetCurrent(); 123 CrashRecoveryContext *context = nullptr; 124 CrashRecoveryContextCleanup(CrashRecoveryContext *context) in CrashRecoveryContextCleanup() 133 CrashRecoveryContext *getContext() const { in getContext() 138 friend class CrashRecoveryContext; 157 CrashRecoveryContextCleanupBase(CrashRecoveryContext *context, T *resource) in CrashRecoveryContextCleanupBase() 167 if (CrashRecoveryContext *context = CrashRecoveryContext::GetCurrent()) in create() [all …]
|
/external/clang/tools/libclang/ |
D | CIndexer.h | 27 class CrashRecoveryContext; variable 90 bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn,
|
/external/llvm-project/lld/tools/lld/ |
D | lld.cpp | 178 llvm::CrashRecoveryContext crc; in safeLldMain() 187 llvm::CrashRecoveryContext crc; in safeLldMain() 214 CrashRecoveryContext::Enable(); in main()
|
/external/llvm-project/clang/tools/libclang/ |
D | CIndexer.h | 23 class CrashRecoveryContext; variable 115 bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn,
|
D | Indexing.cpp | 908 llvm::CrashRecoveryContext CRC; in clang_indexSourceFileFullArgv() 957 llvm::CrashRecoveryContext CRC; in clang_indexTranslationUnit()
|
/external/llvm-project/llvm/tools/llvm-exegesis/lib/ |
D | BenchmarkRunner.cpp | 97 CrashRecoveryContext CRC; in runAndSample() 98 CrashRecoveryContext::Enable(); in runAndSample() 104 CrashRecoveryContext::Disable(); in runAndSample()
|
/external/llvm-project/clang/lib/Basic/ |
D | Stack.cpp | 69 llvm::CrashRecoveryContext CRC; in runWithSufficientStackSpaceSlow()
|
/external/llvm-project/lld/Common/ |
D | ErrorHandler.cpp | 69 CrashRecoveryContext::throwIfCrash(val); in exitLld() 75 if (!CrashRecoveryContext::GetCurrent()) in exitLld()
|
/external/clang/lib/StaticAnalyzer/Frontend/ |
D | ModelInjector.cpp | 101 llvm::CrashRecoveryContext CRC; in onBodySynthesis()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Frontend/ |
D | ModelInjector.cpp | 98 llvm::CrashRecoveryContext CRC; in onBodySynthesis()
|
/external/clang/lib/Parse/ |
D | ParseAST.cpp | 39 ResetStackCleanup(llvm::CrashRecoveryContext *Context, const void *Top) in ResetStackCleanup()
|
/external/llvm-project/clang/lib/Parse/ |
D | ParseAST.cpp | 40 ResetStackCleanup(llvm::CrashRecoveryContext *Context, const void *Top) in ResetStackCleanup()
|
/external/llvm-project/mlir/lib/Pass/ |
D | Pass.cpp | 673 llvm::CrashRecoveryContext::Enable(); in RecoveryReproducerContext() 685 llvm::CrashRecoveryContext::Disable(); in ~RecoveryReproducerContext() 755 llvm::CrashRecoveryContext recoveryContext; in runWithCrashRecovery()
|
/external/llvm-project/llvm/utils/gn/secondary/llvm/lib/Support/ |
D | BUILD.gn | 62 "CrashRecoveryContext.cpp",
|
/external/llvm-project/clang/lib/Frontend/Rewrite/ |
D | FrontendActions.cpp | 260 llvm::CrashRecoveryContext().RunSafelyOnThread([&]() { in visitModuleFile()
|