LLVM
15.0.0git
|
A template wrapper used to implement the polymorphic API. More...
#include "llvm/IR/PassManagerInternal.h"
Public Types | |
template<typename T > | |
using | has_required_t = decltype(std::declval< T & >().isRequired()) |
Public Member Functions | |
PassModel (PassT Pass) | |
PassModel (const PassModel &Arg) | |
PassModel (PassModel &&Arg) | |
PassModel & | operator= (PassModel RHS) |
PreservedAnalysesT | run (IRUnitT &IR, AnalysisManagerT &AM, ExtraArgTs... ExtraArgs) override |
The polymorphic API which runs the pass over a given IR entity. More... | |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) override |
StringRef | name () const override |
bool | isRequired () const override |
![]() | |
virtual | ~PassConcept ()=default |
virtual StringRef | name () const=0 |
Polymorphic method to access the name of a pass. More... | |
virtual bool | isRequired () const=0 |
Polymorphic method to to let a pass optionally exempted from skipping by PassInstrumentation. More... | |
Static Public Member Functions | |
template<typename T > | |
static std::enable_if_t< is_detected< has_required_t, T >::value, bool > | passIsRequiredImpl () |
template<typename T > | |
static std::enable_if_t<!is_detected< has_required_t, T >::value, bool > | passIsRequiredImpl () |
Public Attributes | |
PassT | Pass |
Friends | |
void | swap (PassModel &LHS, PassModel &RHS) |
A template wrapper used to implement the polymorphic API.
Can be instantiated for any object which provides a run
method accepting an IRUnitT&
and an AnalysisManager<IRUnit>&
. It requires the pass to be a copyable object.
Definition at line 69 of file PassManagerInternal.h.
using llvm::detail::PassModel< IRUnitT, PassT, PreservedAnalysesT, AnalysisManagerT, ExtraArgTs >::has_required_t = decltype(std::declval<T &>().isRequired()) |
Definition at line 100 of file PassManagerInternal.h.
|
inlineexplicit |
Definition at line 70 of file PassManagerInternal.h.
|
inline |
Definition at line 73 of file PassManagerInternal.h.
|
inline |
Definition at line 74 of file PassManagerInternal.h.
|
inlineoverride |
Definition at line 113 of file PassManagerInternal.h.
|
inlineoverride |
Definition at line 97 of file PassManagerInternal.h.
References name.
|
inline |
Definition at line 81 of file PassManagerInternal.h.
References RHS, and llvm::detail::PassModel< IRUnitT, PassT, PreservedAnalysesT, AnalysisManagerT, ExtraArgTs >::swap.
|
inlinestatic |
Definition at line 104 of file PassManagerInternal.h.
|
inlinestatic |
Definition at line 109 of file PassManagerInternal.h.
|
inlineoverridevirtual |
Implements llvm::detail::PassConcept< IRUnitT, AnalysisManagerT, ExtraArgTs... >.
Definition at line 91 of file PassManagerInternal.h.
|
inlineoverridevirtual |
The polymorphic API which runs the pass over a given IR entity.
Note that actual pass object can omit the analysis manager argument if desired. Also that the analysis manager may be null if there is no analysis manager in the pass pipeline.
Implements llvm::detail::PassConcept< IRUnitT, AnalysisManagerT, ExtraArgTs... >.
Definition at line 86 of file PassManagerInternal.h.
References IR.
|
friend |
Definition at line 76 of file PassManagerInternal.h.
Referenced by llvm::detail::PassModel< IRUnitT, PassT, PreservedAnalysesT, AnalysisManagerT, ExtraArgTs >::operator=().
PassT llvm::detail::PassModel< IRUnitT, PassT, PreservedAnalysesT, AnalysisManagerT, ExtraArgTs >::Pass |
Definition at line 115 of file PassManagerInternal.h.