LLVM 20.0.0git
|
#include "llvm/ProfileData/SampleProf.h"
Classes | |
struct | Hash |
Static Public Member Functions | |
static void | createCtxVectorFromStr (StringRef ContextStr, SampleContextFrameVector &Context) |
Create a context vector from a given context string and save it in Context . | |
static void | decodeContextString (StringRef ContextStr, FunctionId &Func, LineLocation &LineLoc) |
static std::string | getContextString (SampleContextFrames Context, bool IncludeLeafLineLocation=false) |
Definition at line 523 of file SampleProf.h.
|
inline |
Definition at line 525 of file SampleProf.h.
|
inline |
Definition at line 527 of file SampleProf.h.
|
inline |
Definition at line 532 of file SampleProf.h.
|
inline |
Definition at line 535 of file SampleProf.h.
References assert(), llvm::ArrayRef< T >::empty(), and setContext().
|
inline |
Definition at line 545 of file SampleProf.h.
References assert(), llvm::SmallVectorTemplateCommon< T, typename >::back(), createCtxVectorFromStr(), llvm::StringRef::empty(), setContext(), llvm::StringRef::starts_with(), and llvm::sampleprof::UnknownContext.
|
inline |
Definition at line 614 of file SampleProf.h.
|
inlinestatic |
Create a context vector from a given context string and save it in Context
.
Definition at line 566 of file SampleProf.h.
References decodeContextString(), llvm::SmallVectorImpl< T >::emplace_back(), llvm::StringRef::empty(), llvm::StringRef::size(), llvm::StringRef::split(), and llvm::StringRef::substr().
Referenced by SampleContext().
|
inlinestatic |
Definition at line 585 of file SampleProf.h.
References llvm::sampleprof::LineLocation::Discriminator, llvm::sampleprof::LineLocation::LineOffset, and llvm::StringRef::split().
Referenced by createCtxVectorFromStr().
|
inline |
Definition at line 610 of file SampleProf.h.
Referenced by llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeFuncMetadata(), and llvm::sampleprof::SampleProfileWriterText::writeSample().
|
inline |
Definition at line 618 of file SampleProf.h.
Referenced by llvm::sampleprof::SampleProfileWriterExtBinaryBase::addContext(), getHashCode(), and llvm::SampleContextTracker::getOrCreateContextPath().
|
inlinestatic |
Definition at line 620 of file SampleProf.h.
References I, and llvm::ArrayRef< T >::size().
Referenced by llvm::SampleContextTracker::getContextString(), and toString().
|
inline |
Definition at line 617 of file SampleProf.h.
Referenced by llvm::sampleprof::SampleProfileWriterBinary::addContext(), llvm::sampleprof::SampleProfileWriterExtBinaryBase::addContext(), llvm::sampleprof::FunctionSamples::getFunction(), getHashCode(), llvm::sampleprof::FunctionSamples::merge(), llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncProfiles(), llvm::sampleprof::SampleProfileWriterBinary::writeContextIdx(), and llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeContextIdx().
|
inline |
Definition at line 639 of file SampleProf.h.
References getContextFrames(), getFunction(), llvm::sampleprof::FunctionId::getHashCode(), hasContext(), and llvm::sampleprof::hash_value().
Referenced by llvm::DenseMapInfo< SampleContext >::getHashValue(), llvm::sampleprof::hash_value(), llvm::sampleprof::SampleContext::Hash::operator()(), and llvm::sampleprof::SampleProfileReaderBinary::readSampleContextFromTable().
|
inline |
Definition at line 608 of file SampleProf.h.
References A.
|
inline |
Definition at line 615 of file SampleProf.h.
References llvm::sampleprof::UnknownContext.
Referenced by llvm::sampleprof::SampleProfileWriterExtBinaryBase::addContext(), getHashCode(), operator<(), llvm::sampleprof::SampleProfileReaderText::readImpl(), toString(), llvm::sampleprof::SampleProfileWriterBinary::writeContextIdx(), and llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeContextIdx().
|
inline |
Definition at line 612 of file SampleProf.h.
Referenced by llvm::SampleContextTracker::getBaseSamplesFor(), and llvm::SampleContextTracker::promoteMergeContextSamplesTree().
|
inline |
Definition at line 616 of file SampleProf.h.
References llvm::ArrayRef< T >::size().
Referenced by llvm::sampleprof::SampleContextTrimmer::trimAndMergeColdContextProfiles().
|
inline |
Definition at line 696 of file SampleProf.h.
References llvm::ArrayRef< T >::drop_back(), and llvm::ArrayRef< T >::take_front().
Referenced by llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncProfiles().
|
inline |
Definition at line 607 of file SampleProf.h.
|
inline |
Definition at line 665 of file SampleProf.h.
|
inline |
Definition at line 667 of file SampleProf.h.
References hasContext(), I, and llvm::ArrayRef< T >::size().
|
inline |
Definition at line 660 of file SampleProf.h.
|
inline |
Definition at line 611 of file SampleProf.h.
References A.
Referenced by llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncMetadata(), and llvm::sampleprof::SampleProfileReaderText::readImpl().
|
inline |
Definition at line 609 of file SampleProf.h.
References A.
|
inline |
Definition at line 652 of file SampleProf.h.
References assert(), llvm::ArrayRef< T >::back(), llvm::sampleprof::SampleContextFrame::Func, and llvm::sampleprof::UnknownContext.
Referenced by SampleContext().
|
inline |
Set the name of the function and clear the current context.
Definition at line 646 of file SampleProf.h.
References llvm::sampleprof::UnknownContext.
Referenced by llvm::sampleprof::FunctionSamples::setFunction().
|
inline |
|
inline |
Definition at line 633 of file SampleProf.h.
References getContextString(), hasContext(), and llvm::sampleprof::FunctionId::str().
Referenced by llvm::sampleprof::operator<<(), llvm::SampleContextTracker::SampleContextTracker(), and llvm::sampleprof::SampleProfileWriterText::writeSample().