LLVM 20.0.0git
|
#include "llvm/IR/ProfileSummary.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Type.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Format.h"
Go to the source code of this file.
Functions | |
static Metadata * | getKeyValMD (LLVMContext &Context, const char *Key, uint64_t Val) |
static Metadata * | getKeyFPValMD (LLVMContext &Context, const char *Key, double Val) |
static Metadata * | getKeyValMD (LLVMContext &Context, const char *Key, const char *Val) |
static ConstantAsMetadata * | getValMD (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) |
|
static |
Definition at line 34 of file ProfileSummary.cpp.
References llvm::ConstantAsMetadata::get(), llvm::MDTuple::get(), llvm::MDString::get(), and llvm::Type::getDoubleTy().
Referenced by llvm::ProfileSummary::getMD().
Definition at line 44 of file ProfileSummary.cpp.
References llvm::MDTuple::get(), and llvm::MDString::get().
|
static |
Definition at line 26 of file ProfileSummary.cpp.
References llvm::ConstantAsMetadata::get(), llvm::MDTuple::get(), llvm::MDString::get(), and llvm::Type::getInt64Ty().
Referenced by llvm::ProfileSummary::getMD().
|
static |
Definition at line 181 of file ProfileSummary.cpp.
References llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), getVal(), and Idx.
Referenced by llvm::ProfileSummary::getFromMD().
|
static |
Definition at line 149 of file ProfileSummary.cpp.
References llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), llvm::MDString::getString(), llvm::ConstantAsMetadata::getValue(), and llvm::MDNode::operands().
Referenced by llvm::ProfileSummary::getFromMD().
Definition at line 127 of file ProfileSummary.cpp.
References getValMD().
Definition at line 119 of file ProfileSummary.cpp.
References getValMD().
Referenced by llvm::ProfileSummary::getFromMD(), and getOptionalVal().
|
static |
Definition at line 104 of file ProfileSummary.cpp.
References llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), and llvm::MDString::getString().
Referenced by getVal().
Definition at line 136 of file ProfileSummary.cpp.
References llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), and llvm::MDString::getString().
Referenced by llvm::ProfileSummary::getFromMD().