class SampleContext
Declaration
class SampleContext { /* full declaration omitted */ };
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:501
Member Variables
- private llvm::StringRef Name
- Mangled name of the function.
- private llvm::sampleprof::SampleContextFrames FullContext
- private uint32_t State
- private uint32_t Attributes
Method Overview
- public bool IsPrefixOf(const llvm::sampleprof::SampleContext & That) const
- public SampleContext(llvm::StringRef Name)
- public SampleContext(llvm::StringRef ContextStr, std::list<SampleContextFrameVector> & CSNameTable, llvm::sampleprof::ContextStateMask CState = RawContext)
- public SampleContext()
- public SampleContext(llvm::sampleprof::SampleContextFrames Context, llvm::sampleprof::ContextStateMask CState = RawContext)
- public void clearState(llvm::sampleprof::ContextStateMask S)
- public static void createCtxVectorFromStr(llvm::StringRef ContextStr, llvm::sampleprof::SampleContextFrameVector & Context)
- public static void decodeContextString(llvm::StringRef ContextStr, llvm::StringRef & FName, llvm::sampleprof::LineLocation & LineLoc)
- public uint32_t getAllAttributes()
- public llvm::sampleprof::SampleContextFrames getContextFrames() const
- public static std::string getContextString(llvm::sampleprof::SampleContextFrames Context, bool IncludeLeafLineLocation = false)
- public uint64_t getHashCode() const
- public llvm::StringRef getName() const
- public bool hasAttribute(llvm::sampleprof::ContextAttributeMask A)
- public bool hasContext() const
- public bool hasState(llvm::sampleprof::ContextStateMask S)
- public bool isBaseContext() const
- public llvm::sampleprof::SampleContextFrames operator ArrayRef() const
- public void setAllAttributes(uint32_t A)
- public void setAttribute(llvm::sampleprof::ContextAttributeMask A)
- public void setContext(llvm::sampleprof::SampleContextFrames Context, llvm::sampleprof::ContextStateMask CState = RawContext)
- public void setName(llvm::StringRef FunctionName)
- public void setState(llvm::sampleprof::ContextStateMask S)
- public std::string toString() const
Methods
¶bool IsPrefixOf(
const llvm::sampleprof::SampleContext& That)
const
bool IsPrefixOf(
const llvm::sampleprof::SampleContext& That)
const
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:667
Parameters
- const llvm::sampleprof::SampleContext& That
¶SampleContext(llvm::StringRef Name)
SampleContext(llvm::StringRef Name)
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:505
Parameters
- llvm::StringRef Name
¶SampleContext(llvm::StringRef ContextStr,
std::list<SampleContextFrameVector>&
CSNameTable,
llvm::sampleprof::ContextStateMask
CState = RawContext)
SampleContext(llvm::StringRef ContextStr,
std::list<SampleContextFrameVector>&
CSNameTable,
llvm::sampleprof::ContextStateMask
CState = RawContext)
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:518
Parameters
- llvm::StringRef ContextStr
- std::list<SampleContextFrameVector>& CSNameTable
- llvm::sampleprof::ContextStateMask CState = RawContext
¶SampleContext()
SampleContext()
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:503
¶SampleContext(
llvm::sampleprof::SampleContextFrames Context,
llvm::sampleprof::ContextStateMask CState =
RawContext)
SampleContext(
llvm::sampleprof::SampleContextFrames Context,
llvm::sampleprof::ContextStateMask CState =
RawContext)
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:508
Parameters
- llvm::sampleprof::SampleContextFrames Context
- llvm::sampleprof::ContextStateMask CState = RawContext
¶void clearState(
llvm::sampleprof::ContextStateMask S)
void clearState(
llvm::sampleprof::ContextStateMask S)
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:586
Parameters
- llvm::sampleprof::ContextStateMask S
¶static void createCtxVectorFromStr(
llvm::StringRef ContextStr,
llvm::sampleprof::SampleContextFrameVector&
Context)
static void createCtxVectorFromStr(
llvm::StringRef ContextStr,
llvm::sampleprof::SampleContextFrameVector&
Context)
Description
Create a context vector from a given context string and save it in `Context`.
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:539
Parameters
- llvm::StringRef ContextStr
- llvm::sampleprof::SampleContextFrameVector& Context
¶static void decodeContextString(
llvm::StringRef ContextStr,
llvm::StringRef& FName,
llvm::sampleprof::LineLocation& LineLoc)
static void decodeContextString(
llvm::StringRef ContextStr,
llvm::StringRef& FName,
llvm::sampleprof::LineLocation& LineLoc)
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:558
Parameters
- llvm::StringRef ContextStr
- llvm::StringRef& FName
- llvm::sampleprof::LineLocation& LineLoc
¶uint32_t getAllAttributes()
uint32_t getAllAttributes()
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:582
¶llvm::sampleprof::SampleContextFrames
getContextFrames() const
llvm::sampleprof::SampleContextFrames
getContextFrames() const
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:590
¶static std::string getContextString(
llvm::sampleprof::SampleContextFrames Context,
bool IncludeLeafLineLocation = false)
static std::string getContextString(
llvm::sampleprof::SampleContextFrames Context,
bool IncludeLeafLineLocation = false)
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:592
Parameters
- llvm::sampleprof::SampleContextFrames Context
- bool IncludeLeafLineLocation = false
¶uint64_t getHashCode() const
uint64_t getHashCode() const
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:611
¶llvm::StringRef getName() const
llvm::StringRef getName() const
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:589
¶bool hasAttribute(
llvm::sampleprof::ContextAttributeMask A)
bool hasAttribute(
llvm::sampleprof::ContextAttributeMask A)
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:580
Parameters
- llvm::sampleprof::ContextAttributeMask A
¶bool hasContext() const
bool hasContext() const
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:587
¶bool hasState(
llvm::sampleprof::ContextStateMask S)
bool hasState(
llvm::sampleprof::ContextStateMask S)
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:584
Parameters
- llvm::sampleprof::ContextStateMask S
¶bool isBaseContext() const
bool isBaseContext() const
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:588
¶llvm::sampleprof::SampleContextFrames
operator ArrayRef() const
llvm::sampleprof::SampleContextFrames
operator ArrayRef() const
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:579
¶void setAllAttributes(uint32_t A)
void setAllAttributes(uint32_t A)
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:583
Parameters
- uint32_t A
¶void setAttribute(
llvm::sampleprof::ContextAttributeMask A)
void setAttribute(
llvm::sampleprof::ContextAttributeMask A)
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:581
Parameters
- llvm::sampleprof::ContextAttributeMask A
¶void setContext(
llvm::sampleprof::SampleContextFrames Context,
llvm::sampleprof::ContextStateMask CState =
RawContext)
void setContext(
llvm::sampleprof::SampleContextFrames Context,
llvm::sampleprof::ContextStateMask CState =
RawContext)
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:623
Parameters
- llvm::sampleprof::SampleContextFrames Context
- llvm::sampleprof::ContextStateMask CState = RawContext
¶void setName(llvm::StringRef FunctionName)
void setName(llvm::StringRef FunctionName)
Description
Set the name of the function and clear the current context.
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:617
Parameters
- llvm::StringRef FunctionName
¶void setState(
llvm::sampleprof::ContextStateMask S)
void setState(
llvm::sampleprof::ContextStateMask S)
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:585
Parameters
- llvm::sampleprof::ContextStateMask S
¶std::string toString() const
std::string toString() const
Declared at: llvm/include/llvm/ProfileData/SampleProf.h:605