|
LLVM 24.0.0git
|
#include "llvm/Transforms/Instrumentation/LowerAllowCheckPass.h"#include "InstrumentationOptions.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/Statistic.h"#include "llvm/ADT/StringExtras.h"#include "llvm/ADT/StringRef.h"#include "llvm/Analysis/OptimizationRemarkEmitter.h"#include "llvm/Analysis/ProfileSummaryInfo.h"#include "llvm/IR/Constants.h"#include "llvm/IR/DiagnosticInfo.h"#include "llvm/IR/InstIterator.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/IntrinsicInst.h"#include "llvm/IR/Intrinsics.h"#include "llvm/IR/Metadata.h"#include "llvm/IR/Module.h"#include "llvm/Support/Debug.h"#include "llvm/Support/RandomNumberGenerator.h"#include <memory>#include <optional>#include <random>Go to the source code of this file.
Classes | |
| struct | RemarkInfo |
Macros | |
| #define | DEBUG_TYPE "lower-allow-check" |
Functions | |
| STATISTIC (NumChecksTotal, "Number of checks") | |
| STATISTIC (NumChecksRemoved, "Number of removed checks") | |
| static void | emitRemark (IntrinsicInst *II, OptimizationRemarkEmitter &ORE, bool Removed) |
| static bool | lowerAllowChecks (Function &F, FunctionAnalysisManager &AM, const LowerAllowCheckPass::Options &Opts) |
| #define DEBUG_TYPE "lower-allow-check" |
Definition at line 34 of file LowerAllowCheckPass.cpp.
|
static |
Definition at line 49 of file LowerAllowCheckPass.cpp.
References DEBUG_TYPE, llvm::OptimizationRemarkEmitter::emit(), and II.
Referenced by lowerAllowChecks().
|
static |
Definition at line 68 of file LowerAllowCheckPass.cpp.
References llvm::cast(), llvm::LowerAllowCheckPass::Options::cutoffs, llvm::dyn_cast(), emitRemark(), llvm::SmallVectorTemplateCommon< T, typename >::empty(), F, llvm::ConstantInt::getBool(), llvm::AnalysisManager< IRUnitT, ExtraArgTs >::getResult(), I, II, instructions, llvm::ProfileSummaryInfo::isHotCountNthPercentile(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::LowerAllowCheckPass::Options::runtime_check, and ToRemove.
Referenced by llvm::LowerAllowCheckPass::run().
| STATISTIC | ( | NumChecksRemoved | , |
| "Number of removed checks" | ) |
| STATISTIC | ( | NumChecksTotal | , |
| "Number of checks" | ) |