Home
last modified time | relevance | path

Searched refs:CtxKey (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/llvm/tools/llvm-profgen/
H A DProfileGenerator.cpp422 if (const auto *CtxKey = dyn_cast<AddrBasedCtxKey>(CI.first.getPtr())) { in collectFunctionsFromRawProfile() local
423 for (auto Addr : CtxKey->Context) { in collectFunctionsFromRawProfile()
813 const auto *CtxKey = cast<StringBasedCtxKey>(CI.first.getPtr()); in generateLineNumBasedProfile() local
818 if (!CtxKey->Context.empty()) { in generateLineNumBasedProfile()
821 getOrCreateContextNode(CtxKey->Context, CtxKey->WasLeafInlined); in generateLineNumBasedProfile()
1114 const AddrBasedCtxKey *CtxKey = in generateProbeBasedProfile() local
1117 extractPrefixContextStack(ContextStack, CtxKey->Context, Binary); in generateProbeBasedProfile()
H A DPerfReader.cpp462 if (const auto *CtxKey = dyn_cast<StringBasedCtxKey>(K)) { in getContextKeyStr() local
463 return SampleContext::getContextString(CtxKey->Context); in getContextKeyStr()
464 } else if (const auto *CtxKey = dyn_cast<AddrBasedCtxKey>(K)) { in getContextKeyStr() local
466 for (uint32_t I = 0; I < CtxKey->Context.size(); I++) { in getContextKeyStr()
471 Binary->virtualAddrToOffset(CtxKey->Context[I]), in getContextKeyStr()