My Project
Passes.h
Go to the documentation of this file.
1 //===- Passes.h - Quantization Passes ------ --------------------*- C++ -*-===//
2 //
3 // Part of the MLIR 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 // This file defines all of the passes owned by the quantization dialect. As
10 // things mature, it is expected that passes specific to certain frontend or
11 // backend dialects will move to those dialects directly. For now, they are
12 // incubated here.
13 //
14 //===----------------------------------------------------------------------===//
15 
16 #ifndef MLIR_DIALECT_QUANTOPS_PASSES_H
17 #define MLIR_DIALECT_QUANTOPS_PASSES_H
18 
19 #include <memory>
20 
21 namespace mlir {
22 class FuncOp;
23 template <typename T> class OpPassBase;
24 
25 namespace quant {
26 
29 std::unique_ptr<OpPassBase<FuncOp>> createConvertSimulatedQuantPass();
30 
36 std::unique_ptr<OpPassBase<FuncOp>> createConvertConstPass();
37 
38 } // namespace quant
39 } // namespace mlir
40 
41 #endif // MLIR_DIALECT_QUANTOPS_PASSES_H
Definition: InferTypeOpInterface.cpp:20
std::unique_ptr< OpPassBase< FuncOp > > createConvertConstPass()
Definition: ConvertConst.cpp:106
std::unique_ptr< OpPassBase< FuncOp > > createConvertSimulatedQuantPass()
Definition: ConvertSimQuant.cpp:142