|
LLVM 24.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 632 of file SampleProf.h.
|
inline |
Definition at line 634 of file SampleProf.h.
References llvm::sampleprof::ContextNone, and llvm::sampleprof::UnknownContext.
Referenced by isPrefixOf(), operator!=(), llvm::sampleprof::SampleContext::Hash::operator()(), operator<(), and operator==().
|
inline |
Definition at line 636 of file SampleProf.h.
References assert(), llvm::sampleprof::ContextNone, and llvm::sampleprof::UnknownContext.
|
inline |
Definition at line 641 of file SampleProf.h.
References llvm::sampleprof::ContextNone, and llvm::sampleprof::UnknownContext.
|
inline |
Definition at line 644 of file SampleProf.h.
References assert(), llvm::sampleprof::ContextNone, llvm::sampleprof::RawContext, and setContext().
|
inline |
Definition at line 654 of file SampleProf.h.
References assert(), llvm::sampleprof::ContextNone, createCtxVectorFromStr(), llvm::StringRef::empty(), llvm::sampleprof::RawContext, setContext(), llvm::StringRef::starts_with(), and llvm::sampleprof::UnknownContext.
|
inline |
Definition at line 722 of file SampleProf.h.
|
inlinestatic |
Create a context vector from a given context string and save it in Context.
Definition at line 675 of file SampleProf.h.
References decodeContextString(), llvm::StringRef::empty(), llvm::StringRef::size(), llvm::StringRef::split(), and llvm::StringRef::substr().
Referenced by SampleContext().
|
inlinestatic |
Definition at line 694 of file SampleProf.h.
References llvm::sampleprof::LineLocation::Discriminator, llvm::sampleprof::LineLocation::LineOffset, and llvm::StringRef::split().
Referenced by createCtxVectorFromStr().
|
inline |
Definition at line 718 of file SampleProf.h.
Referenced by llvm::sampleprof::SampleProfileWriterExtBinaryBase::writeFuncMetadata(), and llvm::sampleprof::SampleProfileWriterText::writeSample().
|
inline |
Definition at line 726 of file SampleProf.h.
Referenced by getHashCode().
|
inlinestatic |
Definition at line 728 of file SampleProf.h.
References I.
Referenced by llvm::SampleContextTracker::getContextString(), and toString().
|
inline |
Definition at line 725 of file SampleProf.h.
Referenced by getHashCode(), and llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncProfiles().
|
inline |
Definition at line 747 of file SampleProf.h.
References getContextFrames(), getFunction(), llvm::sampleprof::FunctionId::getHashCode(), hasContext(), llvm::sampleprof::hash_value(), and uint64_t.
Referenced by llvm::DenseMapInfo< SampleContext >::getHashValue().
|
inline |
Definition at line 716 of file SampleProf.h.
References A().
|
inline |
Definition at line 723 of file SampleProf.h.
References llvm::sampleprof::UnknownContext.
Referenced by getHashCode(), operator<(), llvm::sampleprof::SampleProfileReaderText::readImpl(), and toString().
|
inline |
Definition at line 720 of file SampleProf.h.
Referenced by llvm::SampleContextTracker::promoteMergeContextSamplesTree().
|
inline |
Definition at line 724 of file SampleProf.h.
|
inline |
Definition at line 804 of file SampleProf.h.
References llvm::ArrayRef< T >::drop_back(), SampleContext(), and llvm::ArrayRef< T >::take_front().
Referenced by llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncProfiles().
|
inline |
Definition at line 715 of file SampleProf.h.
|
inline |
Definition at line 773 of file SampleProf.h.
References SampleContext().
|
inline |
Definition at line 775 of file SampleProf.h.
References hasContext(), I, SampleContext(), llvm::ArrayRef< T >::size(), and uint64_t.
|
inline |
Definition at line 768 of file SampleProf.h.
References SampleContext().
|
inline |
Definition at line 719 of file SampleProf.h.
References A().
Referenced by llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncMetadata(), and llvm::sampleprof::SampleProfileReaderText::readImpl().
|
inline |
Definition at line 717 of file SampleProf.h.
References A().
|
inline |
Definition at line 760 of file SampleProf.h.
References assert(), llvm::sampleprof::RawContext, and llvm::sampleprof::UnknownContext.
Referenced by SampleContext(), and SampleContext().
|
inline |
Set the name of the function and clear the current context.
Definition at line 754 of file SampleProf.h.
References llvm::sampleprof::UnknownContext.
|
inline |
Definition at line 721 of file SampleProf.h.
Referenced by llvm::SampleContextTracker::getContextSamplesFor(), llvm::SampleContextTracker::markContextSamplesInlined(), and llvm::SampleContextTracker::populateFuncToCtxtMap().
|
inline |
Definition at line 741 of file SampleProf.h.
References getContextString(), and hasContext().
Referenced by llvm::sampleprof::SampleProfileReaderBinary::readCompositeProfile(), and llvm::sampleprof::SampleProfileWriterText::writeSample().