LLVM 22.0.0git
ProfileSummary.cpp File Reference

Go to the source code of this file.

Functions

static MetadatagetKeyValMD (LLVMContext &Context, const char *Key, uint64_t Val)
static MetadatagetKeyFPValMD (LLVMContext &Context, const char *Key, double Val)
static MetadatagetKeyValMD (LLVMContext &Context, const char *Key, const char *Val)
static ConstantAsMetadatagetValMD (MDTuple *MD, const char *Key)
static bool getVal (MDTuple *MD, const char *Key, uint64_t &Val)
static bool getVal (MDTuple *MD, const char *Key, double &Val)
static bool isKeyValuePair (MDTuple *MD, const char *Key, const char *Val)
static bool getSummaryFromMD (MDTuple *MD, SummaryEntryVector &Summary)
template<typename ValueType>
static bool getOptionalVal (MDTuple *Tuple, unsigned &Idx, const char *Key, ValueType &Value)

Function Documentation

◆ getKeyFPValMD()

◆ getKeyValMD() [1/2]

◆ getKeyValMD() [2/2]

◆ getOptionalVal()

template<typename ValueType>
bool getOptionalVal ( MDTuple * Tuple,
unsigned & Idx,
const char * Key,
ValueType & Value )
static

◆ getSummaryFromMD()

◆ getVal() [1/2]

bool getVal ( MDTuple * MD,
const char * Key,
double & Val )
static

◆ getVal() [2/2]

◆ getValMD()

◆ isKeyValuePair()