My Project
|
#include <QuantTypes.h>
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 ClassID * | getClassID () |
Return a unique identifier for the concrete type. More... | |
template<typename T > | |
static bool | classof (T val) |
Additional Inherited Members | |
![]() | |
using | Base = StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT > |
Utility declarations for the concrete attribute class. More... | |
using | ImplType = StorageT |
![]() | |
ImplType * | getImpl () const |
Utility for easy access to the storage instance. More... | |
![]() | |
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... | |
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.
|
static |
Gets an instance of the type with all parameters specified but not checked.
|
static |
Gets an instance of the type with all specified parameters checked. Returns a nullptr convertible type on failure.
|
inlinestatic |
Support method to enable LLVM-style type casting.
|
static |
Verifies construction invariants and issues errors/warnings.