LLVM
8.0.1
|
Instrumentation to print IR before/after passes. More...
#include "llvm/Passes/StandardInstrumentations.h"
Public Member Functions | |
PrintIRInstrumentation ()=default | |
~PrintIRInstrumentation () | |
void | registerCallbacks (PassInstrumentationCallbacks &PIC) |
Instrumentation to print IR before/after passes.
Needs state to be able to print module after pass that invalidates IR unit (typically Loop or SCC).
Definition at line 34 of file StandardInstrumentations.h.
|
default |
PrintIRInstrumentation::~PrintIRInstrumentation | ( | ) |
Definition at line 147 of file StandardInstrumentations.cpp.
References assert(), llvm::StringRef::contains(), llvm::SmallVectorImpl< T >::emplace_back(), llvm::SmallVectorBase::empty(), llvm::forcePrintModuleIR(), llvm::formatv(), llvm::SmallVectorImpl< T >::pop_back_val(), llvm::shouldPrintAfterPass(), llvm::shouldPrintBeforePass(), and llvm::StringRef::startswith().
void PrintIRInstrumentation::registerCallbacks | ( | PassInstrumentationCallbacks & | PIC | ) |
Definition at line 222 of file StandardInstrumentations.cpp.
References llvm::forcePrintModuleIR(), P, llvm::PassInstrumentationCallbacks::registerAfterPassCallback(), llvm::PassInstrumentationCallbacks::registerAfterPassInvalidatedCallback(), llvm::PassInstrumentationCallbacks::registerBeforePassCallback(), llvm::shouldPrintAfterPass(), and llvm::shouldPrintBeforePass().