1//===- Passes.h - Reducer Pass Construction and Registration ----*- 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#ifndef MLIR_REDUCER_PASSES_H
9#define MLIR_REDUCER_PASSES_H
10
11#include "mlir/Pass/Pass.h"
12
13namespace mlir {
14
15#define GEN_PASS_DECL
16#include "mlir/Reducer/Passes.h.inc"
17
18std::unique_ptr<Pass> createReductionTreePass();
19
20std::unique_ptr<Pass> createOptReductionPass();
21
22/// Generate the code for registering reducer passes.
23#define GEN_PASS_REGISTRATION
24#include "mlir/Reducer/Passes.h.inc"
25
26} // namespace mlir
27
28#endif // MLIR_REDUCER_PASSES_H
29

source code of mlir/include/mlir/Reducer/Passes.h