LLVM 17.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, StringRef &FName, 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 530 of file SampleProf.h.
References assert(), Context, and setContext().
|
inline |
Definition at line 540 of file SampleProf.h.
References assert(), Context, createCtxVectorFromStr(), llvm::StringRef::empty(), setContext(), llvm::StringRef::startswith(), and llvm::sampleprof::UnknownContext.
|
inline |
Definition at line 608 of file SampleProf.h.
|
inlinestatic |
Create a context vector from a given context string and save it in Context
.
Definition at line 561 of file SampleProf.h.
References Context, decodeContextString(), llvm::StringRef::empty(), llvm::StringRef::size(), llvm::StringRef::split(), and llvm::StringRef::substr().
Referenced by SampleContext().
|
inlinestatic |
Definition at line 580 of file SampleProf.h.
References llvm::sampleprof::LineLocation::Discriminator, llvm::sampleprof::LineLocation::LineOffset, and llvm::StringRef::split().
Referenced by createCtxVectorFromStr().
|
inline |
Definition at line 604 of file SampleProf.h.
Referenced by llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeFuncMetadata(), and llvm::sampleprof::SampleProfileWriterText::writeSample().
|
inline |
Definition at line 612 of file SampleProf.h.
Referenced by getHashCode(), and llvm::sampleprof::hash_value().
|
inlinestatic |
Definition at line 614 of file SampleProf.h.
Referenced by llvm::SampleContextTracker::getContextString(), and toString().
|
inline |
Definition at line 633 of file SampleProf.h.
References getContextFrames(), getName(), hasContext(), and llvm::sampleprof::hash_value().
Referenced by llvm::DenseMapInfo< SampleContext >::getHashValue().
|
inline |
Definition at line 611 of file SampleProf.h.
Referenced by getHashCode(), llvm::sampleprof::FunctionSamples::getName(), llvm::sampleprof::hash_value(), llvm::sampleprof::FunctionSamples::merge(), and llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncProfiles().
|
inline |
Definition at line 602 of file SampleProf.h.
References A.
|
inline |
Definition at line 609 of file SampleProf.h.
References llvm::sampleprof::UnknownContext.
Referenced by getHashCode(), llvm::sampleprof::hash_value(), operator<(), llvm::sampleprof::SampleProfileReaderText::readImpl(), and toString().
|
inline |
Definition at line 606 of file SampleProf.h.
Referenced by llvm::SampleContextTracker::promoteMergeContextSamplesTree().
|
inline |
Definition at line 610 of file SampleProf.h.
References llvm::ArrayRef< T >::size().
|
inline |
Definition at line 689 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 601 of file SampleProf.h.
|
inline |
Definition at line 658 of file SampleProf.h.
|
inline |
Definition at line 660 of file SampleProf.h.
References hasContext(), I, and llvm::ArrayRef< T >::size().
|
inline |
Definition at line 653 of file SampleProf.h.
|
inline |
Definition at line 605 of file SampleProf.h.
References A.
Referenced by llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncMetadata(), and llvm::sampleprof::SampleProfileReaderText::readImpl().
|
inline |
Definition at line 603 of file SampleProf.h.
References A.
|
inline |
Definition at line 645 of file SampleProf.h.
References assert(), Context, and llvm::sampleprof::UnknownContext.
Referenced by SampleContext().
|
inline |
Set the name of the function and clear the current context.
Definition at line 639 of file SampleProf.h.
References llvm::sampleprof::UnknownContext.
Referenced by llvm::sampleprof::FunctionSamples::setName().
|
inline |
|
inline |
Definition at line 627 of file SampleProf.h.
References getContextString(), hasContext(), and llvm::StringRef::str().
Referenced by llvm::sampleprof::SampleProfileReader::dumpFunctionProfile(), and llvm::sampleprof::SampleProfileWriterText::writeSample().