Home
last modified time | relevance | path

Searched refs:RunSafely (Results 1 – 18 of 18) sorted by relevance

/external/llvm-project/llvm/unittests/Support/
DCrashRecoveryTest.cpp45 EXPECT_TRUE(CrashRecoveryContext().RunSafely(incrementGlobal)); in TEST()
47 EXPECT_FALSE(CrashRecoveryContext().RunSafely(nullDeref)); in TEST()
48 EXPECT_FALSE(CrashRecoveryContext().RunSafely(llvmTrap)); in TEST()
65 EXPECT_TRUE(CRC.RunSafely(noop)); in TEST()
73 EXPECT_FALSE(CRC.RunSafely(nullDeref)); in TEST()
90 EXPECT_TRUE(CRC.RunSafely(noop)); in TEST()
97 EXPECT_FALSE(CRC.RunSafely(nullDeref)); in TEST()
123 EXPECT_FALSE(CrashRecoveryContext().RunSafely(raiseIt)); in TEST()
132 EXPECT_TRUE(CrashRecoveryContext().RunSafely(outputString)); in TEST()
138 EXPECT_FALSE(CrashRecoveryContext().RunSafely(A)); in TEST()
[all …]
/external/llvm/include/llvm/Support/
DCrashRecoveryContext.h73 bool RunSafely(function_ref<void()> Fn);
74 bool RunSafely(void (*Fn)(void*), void *UserData) { in RunSafely() function
75 return RunSafely([&]() { Fn(UserData); }); in RunSafely()
/external/llvm-project/llvm/include/llvm/Support/
DCrashRecoveryContext.h81 bool RunSafely(function_ref<void()> Fn);
82 bool RunSafely(void (*Fn)(void*), void *UserData) { in RunSafely() function
83 return RunSafely([&]() { Fn(UserData); }); in RunSafely()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DCrashRecoveryContext.h81 bool RunSafely(function_ref<void()> Fn);
82 bool RunSafely(void (*Fn)(void*), void *UserData) { in RunSafely() function
83 return RunSafely([&]() { Fn(UserData); }); in RunSafely()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DCrashRecoveryContext.cpp220 bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) { in RunSafely() function in CrashRecoveryContext
405 bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) { in RunSafely() function in CrashRecoveryContext
470 Info->Result = Info->CRC->RunSafely(Info->Fn); in RunSafelyOnThread_Dispatch()
/external/llvm-project/llvm/lib/Support/
DCrashRecoveryContext.cpp225 bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) { in RunSafely() function in CrashRecoveryContext
411 bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) { in RunSafely() function in CrashRecoveryContext
497 Info->Result = Info->CRC->RunSafely(Info->Fn); in RunSafelyOnThread_Dispatch()
/external/llvm-project/lld/tools/lld/
Dlld.cpp179 if (!crc.RunSafely([&]() { in safeLldMain()
188 if (!crc.RunSafely([&]() { errorHandler().reset(); })) { in safeLldMain()
/external/llvm/lib/Support/
DCrashRecoveryContext.cpp315 bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) { in RunSafely() function in CrashRecoveryContext
368 Info->Result = Info->CRC->RunSafely(Info->Fn); in RunSafelyOnThread_Dispatch()
/external/clang/tools/libclang/
DCIndexer.h90 bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn,
DIndexing.cpp887 if (!RunSafely(CRC, IndexSourceFileImpl)) { in clang_indexSourceFileFullArgv()
941 if (!RunSafely(CRC, IndexTranslationUnitImpl)) { in clang_indexTranslationUnit()
DCIndexCodeCompletion.cpp827 if (!RunSafely(CRC, CodeCompleteAtImpl)) { in clang_codeCompleteAt()
DCIndex.cpp3360 if (!RunSafely(CRC, ParseTranslationUnitImpl)) { in clang_parseTranslationUnit2FullArgv()
3748 if (!RunSafely(CRC, SaveTranslationUnitImpl)) { in clang_saveTranslationUnit()
3850 if (!RunSafely(CRC, ReparseTranslationUnitImpl)) { in clang_reparseTranslationUnit()
6853 if (!RunSafely(CRC, AnnotateTokensImpl, GetSafetyThreadStackSize() * 2)) { in clang_annotateTokens()
7784 bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn, in RunSafely() function
7790 return CRC.RunSafely(Fn); in RunSafely()
/external/llvm-project/clang/tools/libclang/
DCIndexer.h115 bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn,
DIndexing.cpp910 if (!RunSafely(CRC, IndexSourceFileImpl)) { in clang_indexSourceFileFullArgv()
959 if (!RunSafely(CRC, IndexTranslationUnitImpl)) { in clang_indexTranslationUnit()
DCIndexCodeCompletion.cpp875 if (!RunSafely(CRC, CodeCompleteAtImpl)) { in clang_codeCompleteAt()
DCIndex.cpp3718 if (!RunSafely(CRC, ParseTranslationUnitImpl)) { in clang_parseTranslationUnit2FullArgv()
4140 if (!RunSafely(CRC, SaveTranslationUnitImpl)) { in clang_saveTranslationUnit()
4249 if (!RunSafely(CRC, ReparseTranslationUnitImpl)) { in clang_reparseTranslationUnit()
7781 if (!RunSafely(CRC, AnnotateTokensImpl, GetSafetyThreadStackSize() * 2)) { in clang_annotateTokens()
8903 bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn, in RunSafely() function
8909 return CRC.RunSafely(Fn); in RunSafely()
/external/llvm-project/llvm/tools/llvm-exegesis/lib/
DBenchmarkRunner.cpp99 const bool Crashed = !CRC.RunSafely([this, Counter, ScratchPtr]() { in runAndSample()
/external/llvm-project/clang/lib/Driver/
DJob.cpp404 if (!CRC.RunSafely([&]() { R = D.CC1Main(Argv); })) { in Execute()