LLVM 22.0.0git
Variables
ProfileVerify.cpp File Reference
#include "llvm/Transforms/Utils/ProfileVerify.h"
#include "llvm/ADT/DynamicAPInt.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Analysis/BranchProbabilityInfo.h"
#include "llvm/IR/Analysis.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/MDBuilder.h"
#include "llvm/IR/ProfDataUtils.h"
#include "llvm/Support/BranchProbability.h"
#include "llvm/Support/CommandLine.h"

Go to the source code of this file.

Variables

static cl::opt< int64_t > DefaultFunctionEntryCount ("profcheck-default-function-entry-count", cl::init(1000))
 
static cl::opt< boolAnnotateSelect ("profcheck-annotate-select", cl::init(true), cl::desc("Also inject (if missing) and verify MD_prof for " "`select` instructions"))
 
static cl::opt< uint32_tSelectTrueWeight ("profcheck-default-select-true-weight", cl::init(2U), cl::desc("When annotating `select` instructions, this value will be used " "for the first ('true') case."))
 
static cl::opt< uint32_tSelectFalseWeight ("profcheck-default-select-false-weight", cl::init(3U), cl::desc("When annotating `select` instructions, this value will be used " "for the second ('false') case."))
 

Variable Documentation

◆ AnnotateSelect

cl::opt< bool > AnnotateSelect("profcheck-annotate-select", cl::init(true), cl::desc("Also inject (if missing) and verify MD_prof for " "`select` instructions")) ( "profcheck-annotate-select"  ,
cl::init(true)  ,
cl::desc("Also inject (if missing) and verify MD_prof for " "`select` instructions")   
)
static

◆ DefaultFunctionEntryCount

cl::opt< int64_t > DefaultFunctionEntryCount("profcheck-default-function-entry-count", cl::init(1000)) ( "profcheck-default-function-entry-count"  ,
cl::init(1000)   
)
static

◆ SelectFalseWeight

cl::opt< uint32_t > SelectFalseWeight("profcheck-default-select-false-weight", cl::init(3U), cl::desc("When annotating `select` instructions, this value will be used " "for the second ('false') case.")) ( "profcheck-default-select-false-weight"  ,
cl::init(3U)  ,
cl::desc("When annotating `select` instructions, this value will be used " "for the second ('false') case.")   
)
static

◆ SelectTrueWeight

cl::opt< uint32_t > SelectTrueWeight("profcheck-default-select-true-weight", cl::init(2U), cl::desc("When annotating `select` instructions, this value will be used " "for the first ('true') case.")) ( "profcheck-default-select-true-weight"  ,
cl::init(2U)  ,
cl::desc("When annotating `select` instructions, this value will be used " "for the first ('true') case.")   
)
static