|
picceler
A compiled DSL for image processing, built on MLIR
|
Wrapper around MLIR PassManager to manage and run passes. More...
#include <pass_manager.h>
Public Member Functions | |
| IRPassManager (mlir::MLIRContext *context) | |
| Constructs an IRPassManager with the given MLIR context. Also sets up the output stream and configures IR printing. | |
| void | addPasses (bool profile) |
| Adds the full set of compilation passes. Call once, after CLI options are parsed (this manager is constructed before CLI11 parses argv) and before run(). | |
| bool | run (mlir::ModuleOp module) |
| Runs the pass manager on the given MLIR module. | |
Wrapper around MLIR PassManager to manage and run passes.
| picceler::IRPassManager::IRPassManager | ( | mlir::MLIRContext * | context | ) |
Constructs an IRPassManager with the given MLIR context. Also sets up the output stream and configures IR printing.
| context | The MLIR context to use. |
| void picceler::IRPassManager::addPasses | ( | bool | profile | ) |
Adds the full set of compilation passes. Call once, after CLI options are parsed (this manager is constructed before CLI11 parses argv) and before run().
| profile | Also inserts PiccelerAddProfilingPass; see docs/profiling.md. |
| bool picceler::IRPassManager::run | ( | mlir::ModuleOp | module | ) |
Runs the pass manager on the given MLIR module.
| module | The MLIR module to run the passes on. |