|
LLVM
10.0.0
|
#include "llvm/Transforms/Utils/MisExpect.h"#include "llvm/ADT/Twine.h"#include "llvm/Analysis/OptimizationRemarkEmitter.h"#include "llvm/IR/Constants.h"#include "llvm/IR/DiagnosticInfo.h"#include "llvm/IR/Instruction.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/LLVMContext.h"#include "llvm/Support/BranchProbability.h"#include "llvm/Support/CommandLine.h"#include "llvm/Support/Debug.h"#include "llvm/Support/FormatVariadic.h"#include <cstdint>#include <functional>#include <numeric>Go to the source code of this file.
Namespaces | |
| llvm | |
| This class represents lattice values for constants. | |
| llvm::misexpect | |
Macros | |
| #define | DEBUG_TYPE "misexpect" |
Functions | |
| void | llvm::misexpect::verifyMisExpect (llvm::Instruction *I, const llvm::SmallVector< uint32_t, 4 > &Weights, llvm::LLVMContext &Ctx) |
| verifyMisExpect - compares PGO counters to the thresholds used for llvm.expect and warns if the PGO counters are outside of the expected range. More... | |
| void | llvm::misexpect::checkFrontendInstrumentation (Instruction &I) |
| checkClangInstrumentation - verify if llvm.expect matches PGO profile This function checks the frontend instrumentation in the backend when lowering llvm.expect intrinsics. More... | |
Variables | |
| static cl::opt< bool > | llvm::PGOWarnMisExpect ("pgo-warn-misexpect", cl::init(false), cl::Hidden, cl::desc("Use this option to turn on/off " "warnings about incorrect usage of llvm.expect intrinsics.")) |
| #define DEBUG_TYPE "misexpect" |
Definition at line 35 of file MisExpect.cpp.
1.8.13