LLVM  12.0.0git
Namespaces | Enumerations | Functions | Variables
StandardInstrumentations.cpp File Reference

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

#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/Function.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PassInstrumentation.h"
#include "llvm/IR/PrintPasses.h"
#include "llvm/IR/Verifier.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/raw_ostream.h"
#include <unordered_set>
#include <vector>
Include dependency graph for StandardInstrumentations.cpp:

Go to the source code of this file.

Namespaces

 llvm
 This class represents lattice values for constants.
 

Enumerations

enum  ChangePrinter { NoChangePrinter, PrintChangedVerbose, PrintChangedQuiet }
 

Functions

static std::string getBisectDescription (Any IR)
 
static void printBBName (raw_ostream &out, const BasicBlock *BB)
 

Variables

static cl::opt< boolDebugPMVerbose ("debug-pass-manager-verbose", cl::Hidden, cl::init(false), cl::desc("Print all pass management debugging information. " "`-debug-pass-manager` must also be specified"))
 
static cl::opt< ChangePrinterPrintChanged ("print-changed", cl::desc("Print changed IRs"), cl::Hidden, cl::ValueOptional, cl::init(NoChangePrinter), cl::values(clEnumValN(PrintChangedQuiet, "quiet", "Run in quiet mode"), clEnumValN(PrintChangedVerbose, "", "")))
 
static cl::list< std::string > PrintPassesList ("filter-passes", cl::value_desc("pass names"), cl::desc("Only consider IR changes for passes whose names " "match for the print-changed option"), cl::CommaSeparated, cl::Hidden)
 
static cl::opt< boolPrintChangedBefore ("print-before-changed", cl::desc("Print before passes that change them"), cl::init(false), 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.

Enumeration Type Documentation

◆ ChangePrinter

Enumerator
NoChangePrinter 
PrintChangedVerbose 
PrintChangedQuiet 

Definition at line 70 of file StandardInstrumentations.cpp.

Function Documentation

◆ getBisectDescription()

static std::string getBisectDescription ( Any  IR)
static

◆ printBBName()

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

Variable Documentation

◆ DebugPMVerbose

cl::opt<bool> DebugPMVerbose("debug-pass-manager-verbose", cl::Hidden, cl::init(false), cl::desc("Print all pass management debugging information. " "`-debug-pass-manager` must also be specified"))
static

◆ PrintChanged

cl::opt<ChangePrinter> PrintChanged("print-changed", cl::desc("Print changed IRs"), cl::Hidden, cl::ValueOptional, cl::init(NoChangePrinter), cl::values(clEnumValN(PrintChangedQuiet, "quiet", "Run in quiet mode"), clEnumValN(PrintChangedVerbose, "", "")))
static

◆ PrintChangedBefore

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

◆ PrintPassesList

cl::list<std::string> PrintPassesList("filter-passes", cl::value_desc("pass names"), cl::desc("Only consider IR changes for passes whose names " "match for the print-changed option"), cl::CommaSeparated, cl::Hidden)
static