MLIR
20.0.0git
|
Base class for OneShotAnalysisState extensions that allow OneShotAnalysisState to contain user-specified information in the state object. More...
#include "mlir/Dialect/Bufferization/Transforms/OneShotAnalysis.h"
Public Member Functions | |
virtual | ~Extension () |
Base virtual destructor. More... | |
Protected Member Functions | |
Extension (OneShotAnalysisState &state) | |
Constructs an extension of the given state object. More... | |
const OneShotAnalysisState & | getAnalysisState () const |
Provides read-only access to the parent OneShotAnalysisState object. More... | |
Friends | |
class | OneShotAnalysisState |
Base class for OneShotAnalysisState extensions that allow OneShotAnalysisState to contain user-specified information in the state object.
Clients are expected to derive this class, add the desired fields, and make the derived class compatible with the MLIR TypeID mechanism.
Instances of this and derived classes are not expected to be created by the user, instead they are directly constructed within a OneShotAnalysisState. A OneShotAnalysisState can only contain one extension with the given TypeID. Extensions can be obtained from a OneShotAnalysisState instance.
Definition at line 169 of file OneShotAnalysis.h.
|
virtualdefault |
Base virtual destructor.
|
inlineprotected |
Constructs an extension of the given state object.
Definition at line 181 of file OneShotAnalysis.h.
|
inlineprotected |
Provides read-only access to the parent OneShotAnalysisState object.
Definition at line 184 of file OneShotAnalysis.h.
|
friend |
Definition at line 171 of file OneShotAnalysis.h.