[Mlir-commits] [mlir] [mlir][pass] Add composite pass utility (PR #87166)
Ivan Butygin
llvmlistbot at llvm.org
Sun Mar 31 17:34:41 PDT 2024
================
@@ -552,4 +552,21 @@ def TopologicalSort : Pass<"topological-sort"> {
let constructor = "mlir::createTopologicalSortPass()";
}
+def CompositeFixedPointPass : Pass<"composite-fixed-point-pass"> {
+ let summary = "Composite fixed point pass";
+ let description = [{
+ Composite pass runs provided set of passes until fixed point or maximum
+ number of iterations reached.
+ }];
+
+ let options = [
+ Option<"name", "name", "std::string", /*default=*/"\"CompositeFixedPointPass\"",
+ "Composite pass display name">,
+ Option<"pipelineStr", "pipeline", "std::string", /*default=*/"",
+ "Composite pass inner pipeline">,
+ Option<"maxIter", "max-iterations", "unsigned", /*default=*/"10",
----------------
Hardcode84 wrote:
Changed to int and added check for positive values.
https://github.com/llvm/llvm-project/pull/87166
More information about the Mlir-commits
mailing list