LLVM 20.0.0git
|
#include "llvm/SandboxIR/PassManager.h"
Public Member Functions | |
RegionPassManager (StringRef Name) | |
RegionPassManager (StringRef Name, StringRef Pipeline, CreatePassFunc CreatePass) | |
bool | runOnRegion (Region &R, const Analyses &A) final |
\Returns true if it modifies R . | |
![]() | |
void | addPass (std::unique_ptr< RegionPass > Pass) |
Adds Pass to the pass pipeline. | |
void | setPassPipeline (StringRef Pipeline, CreatePassFunc CreatePass) |
Parses Pipeline as a comma-separated sequence of pass names and sets the pass pipeline, using CreatePass to instantiate passes by name. | |
void | print (raw_ostream &OS) const override |
LLVM_DUMP_METHOD void | dump () const override |
void | printPipeline (raw_ostream &OS) const override |
Similar to print() but prints one pass per line. Used for testing. | |
![]() | |
RegionPass (StringRef Name) | |
Name can't contain any spaces or start with '-'. | |
virtual bool | runOnRegion (Region &R, const Analyses &A)=0 |
\Returns true if it modifies R . | |
![]() | |
Pass (StringRef Name) | |
Name can't contain any spaces or start with '-'. | |
virtual | ~Pass () |
StringRef | getName () const |
\Returns the name of the pass. | |
virtual void | print (raw_ostream &OS) const |
virtual LLVM_DUMP_METHOD void | dump () const |
virtual void | printPipeline (raw_ostream &OS) const |
Similar to print() but adds a newline. Used for testing. | |
Additional Inherited Members | |
![]() | |
using | CreatePassFunc = std::function< std::unique_ptr< RegionPass >(StringRef, StringRef)> |
![]() | |
PassManager (StringRef Name) | |
PassManager (StringRef Name, StringRef Pipeline, CreatePassFunc CreatePass) | |
PassManager (const PassManager &)=delete | |
PassManager (PassManager &&)=default | |
virtual | ~PassManager ()=default |
PassManager & | operator= (const PassManager &)=delete |
![]() | |
SmallVector< std::unique_ptr< RegionPass > > | Passes |
The list of passes that this pass manager will run. | |
![]() | |
const std::string | Name |
The pass name. | |
Definition at line 214 of file PassManager.h.
|
inline |
Definition at line 216 of file PassManager.h.
|
inline |
Definition at line 217 of file PassManager.h.
|
finalvirtual |
\Returns true if it modifies R
.
Implements llvm::sandboxir::RegionPass.
Definition at line 23 of file PassManager.cpp.
References A, and llvm::sandboxir::PassManager< RegionPass, RegionPass >::Passes.
Referenced by llvm::sandboxir::RegionsFromMetadata::runOnFunction().