My Project
QuantOps.h
Go to the documentation of this file.
1 //===- QuantOps.h - Quantization Ops and Types ------------------*- 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 #ifndef MLIR_DIALECT_QUANTOPS_QUANTOPS_H_
10 #define MLIR_DIALECT_QUANTOPS_QUANTOPS_H_
11 
12 #include "mlir/IR/Attributes.h"
13 #include "mlir/IR/Builders.h"
14 #include "mlir/IR/Dialect.h"
15 #include "mlir/IR/OpDefinition.h"
16 #include "mlir/IR/StandardTypes.h"
17 #include "mlir/IR/Types.h"
18 #include "llvm/Support/MathExtras.h"
19 
20 namespace mlir {
21 namespace quant {
22 
24 class QuantizationDialect : public Dialect {
25 public:
27 
29  Type parseType(DialectAsmParser &parser) const override;
30 
32  void printType(Type type, DialectAsmPrinter &os) const override;
33 };
34 
35 #define GET_OP_CLASSES
36 #include "mlir/Dialect/QuantOps/QuantOps.h.inc"
37 
38 } // namespace quant
39 } // namespace mlir
40 
41 #endif // MLIR_DIALECT_QUANTOPS_QUANTOPS_H_
void printType(Type type, DialectAsmPrinter &os) const override
Print a type registered to this dialect.
Definition: TypeParser.cpp:367
Definition: InferTypeOpInterface.cpp:20
Defines the 'Quantization' dialect.
Definition: QuantOps.h:24
QuantizationDialect(MLIRContext *context)
Definition: QuantOps.cpp:26
Definition: Dialect.h:39
Type parseType(DialectAsmParser &parser) const override
Parse a type registered to this dialect.
Definition: TypeParser.cpp:273
Definition: Types.h:84
Definition: DialectImplementation.h:33
Definition: MLIRContext.h:34
Definition: DialectImplementation.h:100