My Project
include
mlir
Dialect
QuantOps
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
:
26
QuantizationDialect
(
MLIRContext
*context);
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_
mlir::quant::QuantizationDialect::printType
void printType(Type type, DialectAsmPrinter &os) const override
Print a type registered to this dialect.
Definition:
TypeParser.cpp:367
mlir
Definition:
InferTypeOpInterface.cpp:20
mlir::quant::QuantizationDialect
Defines the 'Quantization' dialect.
Definition:
QuantOps.h:24
StandardTypes.h
Types.h
mlir::quant::QuantizationDialect::QuantizationDialect
QuantizationDialect(MLIRContext *context)
Definition:
QuantOps.cpp:26
Attributes.h
Builders.h
mlir::Dialect
Definition:
Dialect.h:39
mlir::quant::QuantizationDialect::parseType
Type parseType(DialectAsmParser &parser) const override
Parse a type registered to this dialect.
Definition:
TypeParser.cpp:273
mlir::Type
Definition:
Types.h:84
OpDefinition.h
Dialect.h
mlir::DialectAsmPrinter
Definition:
DialectImplementation.h:33
mlir::MLIRContext
Definition:
MLIRContext.h:34
mlir::DialectAsmParser
Definition:
DialectImplementation.h:100
Generated by
1.8.13