LLVM
8.0.1
|
#include "llvm/IR/ProfileSummary.h"
#include "llvm/IR/Attributes.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Type.h"
#include "llvm/Support/Casting.h"
Go to the source code of this file.
Functions | |
static Metadata * | getKeyValMD (LLVMContext &Context, const char *Key, uint64_t Val) |
static Metadata * | getKeyValMD (LLVMContext &Context, const char *Key, const char *Val) |
static bool | getVal (MDTuple *MD, const char *Key, uint64_t &Val) |
static bool | isKeyValuePair (MDTuple *MD, const char *Key, const char *Val) |
static bool | getSummaryFromMD (MDTuple *MD, SummaryEntryVector &Summary) |
|
static |
Definition at line 29 of file ProfileSummary.cpp.
References llvm::ConstantInt::get(), llvm::ConstantAsMetadata::get(), llvm::MDString::get(), llvm::MDTuple::get(), and llvm::Type::getInt64Ty().
Referenced by llvm::ProfileSummary::getMD().
Definition at line 39 of file ProfileSummary.cpp.
References Context, llvm::ConstantInt::get(), llvm::ConstantAsMetadata::get(), llvm::MDString::get(), llvm::MDTuple::get(), llvm::Type::getInt32Ty(), llvm::Type::getInt64Ty(), and Int32Ty.
|
static |
Definition at line 115 of file ProfileSummary.cpp.
References llvm::dyn_cast(), llvm::StringRef::equals(), llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), llvm::MDString::getString(), llvm::ConstantAsMetadata::getValue(), and llvm::MDNode::operands().
Referenced by llvm::ProfileSummary::getFromMD().
Definition at line 86 of file ProfileSummary.cpp.
References llvm::dyn_cast(), llvm::StringRef::equals(), llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), and llvm::MDString::getString().
Referenced by llvm::ProfileSummary::getFromMD().
Definition at line 102 of file ProfileSummary.cpp.
References llvm::dyn_cast(), llvm::StringRef::equals(), llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), and llvm::MDString::getString().
Referenced by llvm::ProfileSummary::getFromMD().