|
MLIR 22.0.0git
|
Options for analysis-enabled bufferization. More...
#include "mlir/Dialect/Bufferization/Transforms/OneShotAnalysis.h"
Public Types | |
| enum class | AnalysisHeuristic { BottomUp , TopDown , BottomUpFromTerminators , Fuzzer } |
Public Member Functions | |
| OneShotBufferizationOptions ()=default | |
Public Attributes | |
| bool | allowReturnAllocsFromLoops = false |
| Specifies whether returning newly allocated memrefs from loops should be allowed. | |
| bool | dumpAliasSets = false |
| Specifies whether the tensor IR should be annotated with alias sets. | |
| AnalysisHeuristic | analysisHeuristic = AnalysisHeuristic::BottomUp |
| The heuristic controls the order in which ops are traversed during the analysis. | |
| llvm::ArrayRef< std::string > | noAnalysisFuncFilter |
| Specify the functions that should not be analyzed. | |
| unsigned | analysisFuzzerSeed = 0 |
| Seed for the analysis fuzzer. | |
Options for analysis-enabled bufferization.
Definition at line 26 of file OneShotAnalysis.h.
|
strong |
| Enumerator | |
|---|---|
| BottomUp | |
| TopDown | |
| BottomUpFromTerminators | |
| Fuzzer | |
Definition at line 27 of file OneShotAnalysis.h.
|
default |
Specifies whether returning newly allocated memrefs from loops should be allowed.
Otherwise, a pass failure is triggered.
Definition at line 38 of file OneShotAnalysis.h.
| unsigned mlir::bufferization::OneShotBufferizationOptions::analysisFuzzerSeed = 0 |
Seed for the analysis fuzzer.
Used only if the heuristic is set to AnalysisHeuristic::Fuzzer. The fuzzer should be used only with testAnalysisOnly = true.
Definition at line 54 of file OneShotAnalysis.h.
| AnalysisHeuristic mlir::bufferization::OneShotBufferizationOptions::analysisHeuristic = AnalysisHeuristic::BottomUp |
The heuristic controls the order in which ops are traversed during the analysis.
Definition at line 45 of file OneShotAnalysis.h.
Referenced by mlir::bufferization::OneShotAnalysisState::analyzeOp().
Specifies whether the tensor IR should be annotated with alias sets.
Definition at line 41 of file OneShotAnalysis.h.
| llvm::ArrayRef<std::string> mlir::bufferization::OneShotBufferizationOptions::noAnalysisFuncFilter |
Specify the functions that should not be analyzed.
copyBeforeWrite will be set to true when bufferizing them.
Definition at line 49 of file OneShotAnalysis.h.