My Project
Public Member Functions | List of all members
mlir::quant::QuantizationDialect Class Reference

Defines the 'Quantization' dialect. More...

#include <QuantOps.h>

Inheritance diagram for mlir::quant::QuantizationDialect:
Inheritance graph
[legend]
Collaboration diagram for mlir::quant::QuantizationDialect:
Collaboration graph
[legend]

Public Member Functions

 QuantizationDialect (MLIRContext *context)
 
Type parseType (DialectAsmParser &parser) const override
 Parse a type registered to this dialect. More...
 
void printType (Type type, DialectAsmPrinter &os) const override
 Print a type registered to this dialect. More...
 
- Public Member Functions inherited from mlir::Dialect
virtual ~Dialect ()
 
MLIRContextgetContext () const
 
StringRef getNamespace () const
 
bool allowsUnknownOperations () const
 
bool allowsUnknownTypes () const
 
virtual OperationmaterializeConstant (OpBuilder &builder, Attribute value, Type type, Location loc)
 
virtual Attribute parseAttribute (DialectAsmParser &parser, Type type) const
 Parse an attribute registered to this dialect. More...
 
virtual void printAttribute (Attribute, DialectAsmPrinter &) const
 
virtual LogicalResult verifyRegionArgAttribute (Operation *, unsigned regionIndex, unsigned argIndex, NamedAttribute)
 
virtual LogicalResult verifyRegionResultAttribute (Operation *, unsigned regionIndex, unsigned resultIndex, NamedAttribute)
 
virtual LogicalResult verifyOperationAttribute (Operation *, NamedAttribute)
 
const DialectInterfacegetRegisteredInterface (ClassID *interfaceID)
 
template<typename InterfaceT >
const InterfaceT * getRegisteredInterface ()
 

Additional Inherited Members

- Static Public Member Functions inherited from mlir::Dialect
static bool isValidNamespace (StringRef str)
 
- Public Attributes inherited from mlir::Dialect
DialectConstantFoldHook constantFoldHook
 
DialectConstantDecodeHook decodeHook
 
DialectExtractElementHook extractElementHook
 
- Protected Member Functions inherited from mlir::Dialect
 Dialect (StringRef name, MLIRContext *context)
 
template<typename... Args>
void addOperations ()
 
void addOperation (AbstractOperation opInfo)
 
template<typename... Args>
void addTypes ()
 This method is used by derived classes to add their types to the set. More...
 
template<typename... Args>
void addAttributes ()
 This method is used by derived classes to add their attributes to the set. More...
 
void allowUnknownOperations (bool allow=true)
 Enable support for unregistered operations. More...
 
void allowUnknownTypes (bool allow=true)
 Enable support for unregistered types. More...
 
void addInterface (std::unique_ptr< DialectInterface > interface)
 Register a dialect interface with this dialect instance. More...
 
template<typename T , typename T2 , typename... Tys>
void addInterfaces ()
 Register a set of dialect interfaces with this dialect instance. More...
 
template<typename T >
void addInterfaces ()
 

Detailed Description

Defines the 'Quantization' dialect.

Constructor & Destructor Documentation

◆ QuantizationDialect()

QuantizationDialect::QuantizationDialect ( MLIRContext context)

Member Function Documentation

◆ parseType()

Type QuantizationDialect::parseType ( DialectAsmParser parser) const
overridevirtual

Parse a type registered to this dialect.

Reimplemented from mlir::Dialect.

◆ printType()

void QuantizationDialect::printType ( Type  type,
DialectAsmPrinter os 
) const
overridevirtual

Print a type registered to this dialect.

Reimplemented from mlir::Dialect.


The documentation for this class was generated from the following files: