1//===- ReconcileUnrealizedCasts.h - Pass entrypoint -------------*- 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_CONVERSION_RECONCILEUNREALIZEDCASTS_RECONCILEUNREALIZEDCASTS_H_
10#define MLIR_CONVERSION_RECONCILEUNREALIZEDCASTS_RECONCILEUNREALIZEDCASTS_H_
11
12#include <memory>
13
14namespace mlir {
15class Pass;
16class RewritePatternSet;
17
18#define GEN_PASS_DECL_RECONCILEUNREALIZEDCASTS
19#include "mlir/Conversion/Passes.h.inc"
20
21/// Creates a pass that eliminates noop `unrealized_conversion_cast` operation
22/// sequences.
23std::unique_ptr<Pass> createReconcileUnrealizedCastsPass();
24
25/// Populates `patterns` with rewrite patterns that eliminate noop
26/// `unrealized_conversion_cast` operation sequences.
27void populateReconcileUnrealizedCastsPatterns(RewritePatternSet &patterns);
28} // namespace mlir
29
30#endif // MLIR_CONVERSION_RECONCILEUNREALIZEDCASTS_RECONCILEUNREALIZEDCASTS_H_
31

source code of mlir/include/mlir/Conversion/ReconcileUnrealizedCasts/ReconcileUnrealizedCasts.h