My Project
|
#include <Pass.h>
Static Public Member Functions | |
static bool | classof (const Pass *pass) |
Support isa/dyn_cast functionality for the derived pass class. More... | |
Protected Member Functions | |
PassModel (Optional< StringRef > opName=llvm::None) | |
void | signalPassFailure () |
template<typename AnalysisT > | |
AnalysisT & | getAnalysis () |
Query an analysis for the current ir unit. More... | |
template<typename AnalysisT > | |
Optional< std::reference_wrapper< AnalysisT > > | getCachedAnalysis () |
void | markAllAnalysesPreserved () |
Mark all analyses as preserved. More... | |
template<typename... AnalysesT> | |
void | markAnalysesPreserved () |
Mark the provided analyses as preserved. More... | |
void | markAnalysesPreserved (const AnalysisID *id) |
StringRef | getName () override |
Returns the derived pass name. More... | |
std::unique_ptr< Pass > | clone () const override |
A clone method to create a copy of this pass. More... | |
template<typename AnalysisT > | |
Optional< std::reference_wrapper< AnalysisT > > | getCachedParentAnalysis (Operation *parent) |
Returns the analysis for the parent operation if it exists. More... | |
template<typename AnalysisT > | |
Optional< std::reference_wrapper< AnalysisT > > | getCachedParentAnalysis () |
template<typename AnalysisT > | |
Optional< std::reference_wrapper< AnalysisT > > | getCachedChildAnalysis (Operation *child) |
Returns the analysis for the given child operation if it exists. More... | |
template<typename AnalysisT > | |
AnalysisT & | getChildAnalysis (Operation *child) |
The opaque CRTP model of a pass. This class provides utilities for derived pass execution and handles all of the necessary polymorphic API.
|
inlineexplicitprotected |
|
inlinestatic |
Support isa/dyn_cast functionality for the derived pass class.
|
inlineoverrideprotected |
A clone method to create a copy of this pass.
|
inlineprotected |
Query an analysis for the current ir unit.
|
inlineprotected |
Query a cached instance of an analysis for the current ir unit if one exists.
|
inlineprotected |
Returns the analysis for the given child operation if it exists.
|
inlineprotected |
Returns the analysis for the parent operation if it exists.
|
inlineprotected |
|
inlineprotected |
Returns the analysis for the given child operation, or creates it if it doesn't exist.
|
inlineoverrideprotected |
Returns the derived pass name.
|
inlineprotected |
Mark all analyses as preserved.
|
inlineprotected |
Mark the provided analyses as preserved.
|
inlineprotected |
|
inlineprotected |
Signal that some invariant was broken when running. The IR is allowed to be in an invalid state.