Searched refs:CtxRoot (Results 1 – 5 of 5) sorted by relevance
| /freebsd/contrib/llvm-project/compiler-rt/lib/ctx_profile/tests/ |
| H A D | CtxInstrProfilingTest.cpp | 46 auto &CtxRoot = *Root.CtxRoot; in TEST_F() local 47 EXPECT_NE(CtxRoot.CurrentMem, nullptr); in TEST_F() 48 EXPECT_EQ(CtxRoot.FirstMemBlock, CtxRoot.CurrentMem); in TEST_F() 53 EXPECT_EQ(__llvm_ctx_profile_current_context_root, &CtxRoot); in TEST_F() 54 CtxRoot.Taken.CheckLocked(); in TEST_F() 55 EXPECT_FALSE(CtxRoot.Taken.TryLock()); in TEST_F() 58 EXPECT_TRUE(CtxRoot.Taken.TryLock()); in TEST_F() 59 CtxRoot.Taken.Unlock(); in TEST_F() 176 auto &CtxRoot = *Root.CtxRoot; in TEST_F() local 177 const auto *CurrentMem = CtxRoot.CurrentMem; in TEST_F() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/ctx_profile/ |
| H A D | CtxInstrProfiling.cpp | 274 auto *Root = CtxRoot; in getOrAllocateContextRoot() 280 Root = CtxRoot; in getOrAllocateContextRoot() 283 CtxRoot = Root; in getOrAllocateContextRoot() 311 ContextRoot *CtxRoot) { in getUnhandledContext() argument 330 if (!CtxRoot) { in getUnhandledContext() 333 else if (auto *CR = Data.CtxRoot) { in getUnhandledContext() 343 auto [Iter, Ins] = CtxRoot->Unhandled.insert({Guid, nullptr}); in getUnhandledContext() 345 Iter->second = getCallsiteSlow(Guid, &CtxRoot->FirstUnhandledCalleeNode, in getUnhandledContext() 353 auto *CtxRoot = __llvm_ctx_profile_current_context_root; in __llvm_ctx_profile_get_context() local 355 if (!CtxRoot) in __llvm_ctx_profile_get_context() [all …]
|
| H A D | CtxInstrProfiling.h | 148 #define _CONTEXT_PTR ContextRoot *CtxRoot = nullptr;
|
| H A D | RootAutoDetector.cpp | 69 if (canBeRoot(FD->CtxRoot)) { in start()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | CtxProfAnalysis.cpp | 703 for (const auto &[_, CtxRoot] : Profiles.Contexts) { in flatten() 704 const uint64_t SamplingFactor = CtxRoot.getTotalRootEntryCount(); in flatten() 706 CtxRoot, [&](const PGOCtxProfContext &Ctx) { in flatten() 710 for (const auto &[G, Unh] : CtxRoot.getUnhandled()) in flatten() 722 for (const auto &[_, CtxRoot] : Profiles.Contexts) { in flattenVirtCalls() 723 const uint64_t TotalRootEntryCount = CtxRoot.getTotalRootEntryCount(); in flattenVirtCalls() 725 CtxRoot, [&](const PGOCtxProfContext &Ctx) { in flattenVirtCalls()
|