1//===- CompositePass.h - Composite pass utilities ---------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef MLIR_TRANSFORMS_COMPOSITEPASS_H
10#define MLIR_TRANSFORMS_COMPOSITEPASS_H
11
12namespace mlir {
13
14/// Action to take when `CompositeFixedPointPass` fails to converge within
15/// its configured maximum number of iterations.
16enum class ConvergenceFailureAction {
17 /// Emit a warning.
18 Warn,
19 /// Emit an error and fail the pass.
20 Error,
21 /// Do nothing.
22 Silent,
23};
24
25} // namespace mlir
26
27#endif // MLIR_TRANSFORMS_COMPOSITEPASS_H
28