LLVM: lib/IR/ProfDataUtils.cpp File Reference (original) (raw)

Go to the source code of this file.

extractFromBranchWeightMD()

template<typename T, typename = typename std::enable_if<std::is_arithmetic_v>>

Definition at line 69 of file ProfDataUtils.cpp.

References assert(), llvm::mdconst::dyn_extract(), E(), llvm::APInt::getActiveBits(), llvm::getBranchWeightOffset(), llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), llvm::ConstantInt::getValue(), llvm::ConstantInt::getZExtValue(), llvm::isBranchWeightMD(), llvm::SmallVectorImpl< T >::resize(), and T.

Referenced by llvm::extractBranchWeights(), llvm::extractFromBranchWeightMD32(), and llvm::extractFromBranchWeightMD64().

hasCountTypeMD()

isTargetMD()

ElideAllZeroBranchWeights

cl::opt< bool > ElideAllZeroBranchWeights("elide-all-zero-branch-weights", cl::init(true)) ( "elide-all-zero-branch-weights" , cl::init(true) ) static

MinBWOps

MinVPOps