MLIR  19.0.0git
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mlir::quant::detail::UniformQuantizedTypeStorage Struct Reference

#include "Dialect/Quant/IR/TypeDetail.h"

+ Inheritance diagram for mlir::quant::detail::UniformQuantizedTypeStorage:


struct  KeyTy

Public Member Functions

 UniformQuantizedTypeStorage (const KeyTy &key)
bool operator== (const KeyTy &key) const
- Public Member Functions inherited from mlir::quant::detail::QuantizedTypeStorage
 QuantizedTypeStorage (unsigned flags, Type storageType, Type expressedType, int64_t storageTypeMin, int64_t storageTypeMax)
- Public Member Functions inherited from mlir::TypeStorage
const AbstractTypegetAbstractType ()
 Return the abstract type descriptor for this type. More...

Static Public Member Functions

static UniformQuantizedTypeStorageconstruct (TypeStorageAllocator &allocator, const KeyTy &key)
 Construction. More...
static unsigned hashKey (const KeyTy &key)

Public Attributes

double scale
int64_t zeroPoint
- Public Attributes inherited from mlir::quant::detail::QuantizedTypeStorage
unsigned flags
 Flags corresponding to the bitmapped enum QuantizationFlags::FlagValue. More...
Type storageType
Type expressedType
int64_t storageTypeMin
int64_t storageTypeMax

Additional Inherited Members

- Protected Member Functions inherited from mlir::TypeStorage
 TypeStorage ()
 This constructor is used by derived classes as part of the TypeUniquer. More...
- Protected Member Functions inherited from mlir::StorageUniquer::BaseStorage
 BaseStorage ()=default

Detailed Description

Definition at line 95 of file TypeDetail.h.

Constructor & Destructor Documentation

◆ UniformQuantizedTypeStorage()

mlir::quant::detail::UniformQuantizedTypeStorage::UniformQuantizedTypeStorage ( const KeyTy key)

Definition at line 138 of file TypeDetail.h.

Referenced by construct().

Member Function Documentation

◆ construct()

static UniformQuantizedTypeStorage* mlir::quant::detail::UniformQuantizedTypeStorage::construct ( TypeStorageAllocator allocator,
const KeyTy key 


Definition at line 148 of file TypeDetail.h.

References mlir::StorageUniquer::StorageAllocator::allocate(), and UniformQuantizedTypeStorage().

◆ hashKey()

static unsigned mlir::quant::detail::UniformQuantizedTypeStorage::hashKey ( const KeyTy key)

◆ operator==()

bool mlir::quant::detail::UniformQuantizedTypeStorage::operator== ( const KeyTy key) const

Member Data Documentation

◆ scale

double mlir::quant::detail::UniformQuantizedTypeStorage::scale

Definition at line 156 of file TypeDetail.h.

◆ zeroPoint

int64_t mlir::quant::detail::UniformQuantizedTypeStorage::zeroPoint

Definition at line 157 of file TypeDetail.h.

The documentation for this struct was generated from the following file: