|
LLVM 24.0.0git
|
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 "PassesOptions.h"#include "llvm/ADT/DenseMap.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/ADT/StringRef.h"#include "llvm/Analysis/LazyCallGraph.h"#include "llvm/Analysis/LoopInfo.h"#include "llvm/CodeGen/MIRPrinter.h"#include "llvm/CodeGen/MachineBasicBlock.h"#include "llvm/CodeGen/MachineFunction.h"#include "llvm/CodeGen/MachineInstr.h"#include "llvm/CodeGen/MachineModuleInfo.h"#include "llvm/CodeGen/MachineVerifier.h"#include "llvm/IR/BasicBlock.h"#include "llvm/IR/Constants.h"#include "llvm/IR/Function.h"#include "llvm/IR/Instruction.h"#include "llvm/IR/Module.h"#include "llvm/IR/PassInstrumentation.h"#include "llvm/IR/PassManager.h"#include "llvm/IR/PrintPasses.h"#include "llvm/IR/StructuralHash.h"#include "llvm/IR/Verifier.h"#include "llvm/Support/CommandLine.h"#include "llvm/Support/Debug.h"#include "llvm/Support/Error.h"#include "llvm/Support/FormatVariadic.h"#include "llvm/Support/GraphWriter.h"#include "llvm/Support/Path.h"#include "llvm/Support/Program.h"#include "llvm/Support/Regex.h"#include "llvm/Support/Signals.h"#include "llvm/Support/raw_ostream.h"#include "llvm/Transforms/Utils/InstructionNamer.h"#include <utility>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | llvm |
| This is an optimization pass for GlobalISel generic memory operations. | |
Functions | |
| static bool | shouldGenerateData (const Function &F) |
| static bool | shouldGenerateData (const MachineFunction &MF) |
| static void | writeIRFileDisplayName (raw_ostream &ResultStream, IRUnitRef IR) |
| static std::string | getIRFileDisplayName (IRUnitRef IR) |
| static int | prepareDumpIRFileDescriptor (const StringRef DumpIRFilename) |
| static void | printBBName (raw_ostream &out, const BasicBlock *BB) |
| static SmallVector< Function *, 1 > | GetFunctions (IRUnitRef IR) |
Variables | |
| static cl::list< unsigned > | PrintBeforePassNumber ("print-before-pass-number", cl::CommaSeparated, cl::Hidden, cl::desc("Print IR before the passes with specified numbers as " "reported by print-pass-numbers")) |
| static cl::list< unsigned > | PrintAfterPassNumber ("print-after-pass-number", cl::CommaSeparated, cl::Hidden, cl::desc("Print IR after the passes with specified numbers as " "reported by print-pass-numbers")) |
This file defines IR-printing pass instrumentation callbacks as well as StandardInstrumentations class that manages standard pass instrumentations.
Definition in file StandardInstrumentations.cpp.
|
static |
Definition at line 1304 of file StandardInstrumentations.cpp.
References llvm::dyn_cast(), F, and IR.
Referenced by llvm::PreservedCFGCheckerInstrumentation::registerCallbacks().
|
static |
Definition at line 735 of file StandardInstrumentations.cpp.
References IR, and writeIRFileDisplayName().
Definition at line 784 of file StandardInstrumentations.cpp.
References llvm::sys::fs::CD_OpenAlways, llvm::sys::fs::create_directories(), llvm::sys::fs::FA_Write, llvm::sys::fs::OF_Text, llvm::sys::fs::openFile(), llvm::sys::path::parent_path(), and llvm::report_fatal_error().
|
static |
Definition at line 1150 of file StandardInstrumentations.cpp.
References llvm::Value::getName(), llvm::BasicBlock::getParent(), llvm::Value::hasName(), and llvm::BasicBlock::isEntryBlock().
Referenced by llvm::PreservedCFGCheckerInstrumentation::CFG::printDiff().
Definition at line 658 of file StandardInstrumentations.cpp.
References F, and llvm::shouldPrintFunction().
Referenced by llvm::IRComparer< T >::generateFunctionData().
|
static |
Definition at line 662 of file StandardInstrumentations.cpp.
References llvm::MachineFunction::getName(), llvm::isFunctionInPrintList(), llvm::isSourceLocFilterEmpty(), llvm::isSourceLocInPrintList(), MBB, and MI.
|
static |
Definition at line 704 of file StandardInstrumentations.cpp.
References assert(), C(), llvm::dyn_cast(), F, llvm::MachineFunction::getName(), IR, llvm::isa(), llvm_unreachable, llvm::Lower, uint64_t, llvm::write_hex(), and llvm::xxh3_64bits().
Referenced by getIRFileDisplayName().
|
static |
|
static |