MLIR 24.0.0git
mlir::quant::detail::QuantileTypeStorage Struct Reference

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

Inheritance diagram for mlir::quant::detail::QuantileTypeStorage:

Classes

struct  KeyTy

Public Member Functions

bool operator== (const KeyTy &key) const
 QuantileTypeStorage (const KeyTy &key, ArrayRef< double > quantiles)
ArrayRef< double > getQuantiles () const
mlir::Type getStorageType () const
mlir::Type getQuantileType () const
std::optional< int64_t > getStorageMin () const
std::optional< int64_t > getStorageMax () const
Public Member Functions inherited from mlir::TypeStorage
const AbstractType & getAbstractType ()
 Return the abstract type descriptor for this type.

Static Public Member Functions

static QuantileTypeStorage * construct (mlir::TypeStorageAllocator &allocator, KeyTy key)
static unsigned hashKey (const KeyTy &key)

Public Attributes

mlir::Type storageType
mlir::Type quantileType
const double * quantilesElements
size_t quantilesParamsSize
std::optional< int64_t > storageMin
std::optional< int64_t > storageMax

Additional Inherited Members

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

Detailed Description

Definition at line 425 of file TypeDetail.h.

Constructor & Destructor Documentation

◆ QuantileTypeStorage()

mlir::quant::detail::QuantileTypeStorage::QuantileTypeStorage ( const KeyTy & key,
ArrayRef< double > quantiles )
inline

Definition at line 480 of file TypeDetail.h.

References quantilesElements, quantilesParamsSize, quantileType, storageMax, storageMin, and storageType.

Referenced by construct().

Member Function Documentation

◆ construct()

◆ getQuantiles()

ArrayRef< double > mlir::quant::detail::QuantileTypeStorage::getQuantiles ( ) const
inline

Definition at line 495 of file TypeDetail.h.

References quantilesElements, and quantilesParamsSize.

Referenced by operator==().

◆ getQuantileType()

mlir::Type mlir::quant::detail::QuantileTypeStorage::getQuantileType ( ) const
inline

Definition at line 500 of file TypeDetail.h.

References quantileType.

◆ getStorageMax()

std::optional< int64_t > mlir::quant::detail::QuantileTypeStorage::getStorageMax ( ) const
inline

Definition at line 502 of file TypeDetail.h.

References storageMax.

◆ getStorageMin()

std::optional< int64_t > mlir::quant::detail::QuantileTypeStorage::getStorageMin ( ) const
inline

Definition at line 501 of file TypeDetail.h.

References storageMin.

◆ getStorageType()

mlir::Type mlir::quant::detail::QuantileTypeStorage::getStorageType ( ) const
inline

Definition at line 499 of file TypeDetail.h.

References storageType.

◆ hashKey()

unsigned mlir::quant::detail::QuantileTypeStorage::hashKey ( const KeyTy & key)
inlinestatic

◆ operator==()

Member Data Documentation

◆ quantilesElements

const double* mlir::quant::detail::QuantileTypeStorage::quantilesElements

Definition at line 428 of file TypeDetail.h.

Referenced by getQuantiles(), and QuantileTypeStorage().

◆ quantilesParamsSize

size_t mlir::quant::detail::QuantileTypeStorage::quantilesParamsSize

Definition at line 429 of file TypeDetail.h.

Referenced by getQuantiles(), and QuantileTypeStorage().

◆ quantileType

mlir::Type mlir::quant::detail::QuantileTypeStorage::quantileType

Definition at line 427 of file TypeDetail.h.

Referenced by getQuantileType(), operator==(), and QuantileTypeStorage().

◆ storageMax

std::optional<int64_t> mlir::quant::detail::QuantileTypeStorage::storageMax

Definition at line 431 of file TypeDetail.h.

Referenced by getStorageMax(), operator==(), and QuantileTypeStorage().

◆ storageMin

std::optional<int64_t> mlir::quant::detail::QuantileTypeStorage::storageMin

Definition at line 430 of file TypeDetail.h.

Referenced by getStorageMin(), operator==(), and QuantileTypeStorage().

◆ storageType

mlir::Type mlir::quant::detail::QuantileTypeStorage::storageType

Definition at line 426 of file TypeDetail.h.

Referenced by getStorageType(), operator==(), and QuantileTypeStorage().


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