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

#include <QuantTypes.h>

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

Static Public Member Functions

static bool kindof (unsigned kind)
 Support method to enable LLVM-style type casting. More...
 
static AnyQuantizedType get (unsigned flags, Type storageType, Type expressedType, int64_t storageTypeMin, int64_t storageTypeMax)
 
static AnyQuantizedType getChecked (unsigned flags, Type storageType, Type expressedType, int64_t storageTypeMin, int64_t storageTypeMax, Location location)
 
static LogicalResult verifyConstructionInvariants (Optional< Location > loc, MLIRContext *context, unsigned flags, Type storageType, Type expressedType, int64_t storageTypeMin, int64_t storageTypeMax)
 Verifies construction invariants and issues errors/warnings. More...
 
- Static Public Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
static ClassIDgetClassID ()
 Return a unique identifier for the concrete type. More...
 
template<typename T >
static bool classof (T val)
 

Additional Inherited Members

- Public Types inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
using Base = StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
 Utility declarations for the concrete attribute class. More...
 
using ImplType = StorageT
 
- Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
ImplTypegetImpl () const
 Utility for easy access to the storage instance. More...
 
- Static Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
template<typename... Args>
static ConcreteT get (MLIRContext *ctx, unsigned kind, Args... args)
 
template<typename... Args>
static ConcreteT getChecked (const Location &loc, MLIRContext *ctx, unsigned kind, Args... args)
 
template<typename... Args>
static LogicalResult verifyConstructionInvariants (Args... args)
 Default implementation that just returns success. More...
 

Detailed Description

A quantized type that maps storage to/from expressed types in an unspecified way.

Typical syntax: quant.any<i8:f32> quant.any<i8> quant.any<i8<-16,15>>

Note that for the any type, the expressed type is optional.

Member Function Documentation

◆ get()

AnyQuantizedType AnyQuantizedType::get ( unsigned  flags,
Type  storageType,
Type  expressedType,
int64_t  storageTypeMin,
int64_t  storageTypeMax 
)
static

Gets an instance of the type with all parameters specified but not checked.

◆ getChecked()

AnyQuantizedType AnyQuantizedType::getChecked ( unsigned  flags,
Type  storageType,
Type  expressedType,
int64_t  storageTypeMin,
int64_t  storageTypeMax,
Location  location 
)
static

Gets an instance of the type with all specified parameters checked. Returns a nullptr convertible type on failure.

◆ kindof()

static bool mlir::quant::AnyQuantizedType::kindof ( unsigned  kind)
inlinestatic

Support method to enable LLVM-style type casting.

◆ verifyConstructionInvariants()

LogicalResult AnyQuantizedType::verifyConstructionInvariants ( Optional< Location loc,
MLIRContext context,
unsigned  flags,
Type  storageType,
Type  expressedType,
int64_t  storageTypeMin,
int64_t  storageTypeMax 
)
static

Verifies construction invariants and issues errors/warnings.


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