|
LLZK 0.1.0
Veridise's ZK Language IR
|
An analysis wrapper around the ConstraintDependencyGraph for a given struct. More...
#include <ConstraintDependencyGraph.h>
Public Member Functions | |
| virtual | ~ConstraintDependencyGraphStructAnalysis ()=default |
| mlir::LogicalResult | runAnalysis (mlir::DataFlowSolver &solver, mlir::AnalysisManager &moduleAnalysisManager, const CDGAnalysisContext &ctx) override |
| Construct a CDG, using the module's analysis manager to query ConstraintDependencyGraph objects for nested components. | |
| StructAnalysis (mlir::Operation *op) | |
| Assert that this analysis is being run on a StructDefOp and initializes the analysis with the current StructDefOp and its parent ModuleOp. | |
| Public Member Functions inherited from llzk::StructAnalysis< ConstraintDependencyGraph, CDGAnalysisContext > | |
| StructAnalysis (mlir::Operation *op) | |
| Assert that this analysis is being run on a StructDefOp and initializes the analysis with the current StructDefOp and its parent ModuleOp. | |
| virtual | ~StructAnalysis ()=default |
| bool | constructed (const CDGAnalysisContext &ctx) const |
| Query if the analysis has constructed a Result object for the given Context. | |
| const ConstraintDependencyGraph & | getResult (const CDGAnalysisContext &ctx) const |
| Access the result iff it has been created for the given Context object ctx. | |
Additional Inherited Members | |
| Protected Member Functions inherited from llzk::StructAnalysis< ConstraintDependencyGraph, CDGAnalysisContext > | |
| mlir::ModuleOp | getModule () const |
| Get the ModuleOp that is the parent of the StructDefOp that is under analysis. | |
| component::StructDefOp | getStruct () const |
| Get the current StructDefOp that is under analysis. | |
| void | setResult (const CDGAnalysisContext &ctx, ConstraintDependencyGraph &&r) |
| Initialize the final Result object. | |
An analysis wrapper around the ConstraintDependencyGraph for a given struct.
This analysis is a StructDefOp-level analysis that should not be directly interacted with—rather, it is a utility used by the ConstraintDependencyGraphModuleAnalysis that helps use MLIR's AnalysisManager to cache dependencies for sub-components.
Definition at line 232 of file ConstraintDependencyGraph.h.
|
virtualdefault |
|
overridevirtual |
Construct a CDG, using the module's analysis manager to query ConstraintDependencyGraph objects for nested components.
Implements llzk::StructAnalysis< ConstraintDependencyGraph, CDGAnalysisContext >.
Definition at line 608 of file ConstraintDependencyGraph.cpp.
|
inline |
Assert that this analysis is being run on a StructDefOp and initializes the analysis with the current StructDefOp and its parent ModuleOp.
| op | The presumed StructDefOp. |
Definition at line 47 of file AnalysisWrappers.h.