LLVM  16.0.0git
Classes | Namespaces | Functions | Variables
StandardInstrumentations.cpp File Reference
#include "llvm/Passes/StandardInstrumentations.h"
#include "llvm/ADT/Any.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Analysis/CallGraphSCCPass.h"
#include "llvm/Analysis/LazyCallGraph.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PassInstrumentation.h"
#include "llvm/IR/PassManager.h"
#include "llvm/IR/PrintPasses.h"
#include "llvm/IR/Verifier.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/CrashRecoveryContext.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/GraphWriter.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Program.h"
#include "llvm/Support/Regex.h"
#include "llvm/Support/Signals.h"
#include "llvm/Support/raw_ostream.h"
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
Include dependency graph for StandardInstrumentations.cpp:

Go to the source code of this file.

Classes

struct  PreservedCFGCheckerAnalysis
 
struct  llvm::GraphTraits< DotCfgDiffDisplayGraph * >
 
struct  llvm::DOTGraphTraits< DotCfgDiffDisplayGraph * >
 

Namespaces

 llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Functions

static void printBBName (raw_ostream &out, const BasicBlock *BB)
 

Variables

static cl::opt< bool > PrintChangedBefore ("print-before-changed", cl::desc("Print before passes that change them"), cl::init(false), cl::Hidden)
 
static cl::opt< std::string > DotBinary ("print-changed-dot-path", cl::Hidden, cl::init("dot"), cl::desc("system dot used by change reporters"))
 
cl::opt< std::string > BeforeColour ("dot-cfg-before-color", cl::desc("Color for dot-cfg before elements."), cl::Hidden, cl::init("red"))
 
cl::opt< std::string > AfterColour ("dot-cfg-after-color", cl::desc("Color for dot-cfg after elements."), cl::Hidden, cl::init("forestgreen"))
 
cl::opt< std::string > CommonColour ("dot-cfg-common-color", cl::desc("Color for dot-cfg common elements."), cl::Hidden, cl::init("black"))
 
static cl::opt< std::string > DotCfgDir ("dot-cfg-dir", cl::desc("Generate dot files into specified directory for changed IRs"), cl::Hidden, cl::init("./"))
 
static cl::opt< bool > PrintCrashIR ("print-on-crash", cl::desc("Print the last form of the IR before crash"), cl::init(false), cl::Hidden)
 
static cl::opt< std::string > OptBisectPrintIRPath ("opt-bisect-print-ir-path", cl::desc("Print IR to path when opt-bisect-limit is reached"), cl::Hidden)
 

Detailed Description

This file defines IR-printing pass instrumentation callbacks as well as StandardInstrumentations class that manages standard pass instrumentations.

Definition in file StandardInstrumentations.cpp.

Function Documentation

◆ printBBName()

static void printBBName ( raw_ostream out,
const BasicBlock BB 
)
static

Variable Documentation

◆ AfterColour

cl::opt<std::string> AfterColour("dot-cfg-after-color", cl::desc("Color for dot-cfg after elements."), cl::Hidden, cl::init("forestgreen"))

◆ BeforeColour

cl::opt<std::string> BeforeColour("dot-cfg-before-color", cl::desc("Color for dot-cfg before elements."), cl::Hidden, cl::init("red"))

◆ CommonColour

cl::opt<std::string> CommonColour("dot-cfg-common-color", cl::desc("Color for dot-cfg common elements."), cl::Hidden, cl::init("black"))

◆ DotBinary

cl::opt<std::string> DotBinary("print-changed-dot-path", cl::Hidden, cl::init("dot"), cl::desc("system dot used by change reporters"))
static

◆ DotCfgDir

cl::opt<std::string> DotCfgDir("dot-cfg-dir", cl::desc("Generate dot files into specified directory for changed IRs"), cl::Hidden, cl::init("./"))
static

◆ OptBisectPrintIRPath

cl::opt<std::string> OptBisectPrintIRPath("opt-bisect-print-ir-path", cl::desc("Print IR to path when opt-bisect-limit is reached"), cl::Hidden)
static

◆ PrintChangedBefore

cl::opt<bool> PrintChangedBefore("print-before-changed", cl::desc("Print before passes that change them"), cl::init(false), cl::Hidden)
static

◆ PrintCrashIR

cl::opt<bool> PrintCrashIR("print-on-crash", cl::desc("Print the last form of the IR before crash"), cl::init(false), cl::Hidden)
static