Lines Matching refs:unwrap

23   return unwrap(type).isa<quant::QuantizedType>();  in MLIR_DEFINE_CAPI_DIALECT_REGISTRATION()
43 return wrap(unwrap(type).cast<quant::QuantizedType>().getExpressedType()); in mlirQuantizedTypeGetExpressedType()
47 return unwrap(type).cast<quant::QuantizedType>().getFlags(); in mlirQuantizedTypeGetFlags()
51 return unwrap(type).cast<quant::QuantizedType>().isSigned(); in mlirQuantizedTypeIsSigned()
55 return wrap(unwrap(type).cast<quant::QuantizedType>().getStorageType()); in mlirQuantizedTypeGetStorageType()
59 return unwrap(type).cast<quant::QuantizedType>().getStorageTypeMin(); in mlirQuantizedTypeGetStorageTypeMin()
63 return unwrap(type).cast<quant::QuantizedType>().getStorageTypeMax(); in mlirQuantizedTypeGetStorageTypeMax()
67 return unwrap(type) in mlirQuantizedTypeGetStorageTypeIntegralWidth()
74 return unwrap(type).cast<quant::QuantizedType>().isCompatibleExpressedType( in mlirQuantizedTypeIsCompatibleExpressedType()
75 unwrap(candidate)); in mlirQuantizedTypeIsCompatibleExpressedType()
79 return wrap(quant::QuantizedType::getQuantizedElementType(unwrap(type))); in mlirQuantizedTypeGetQuantizedElementType()
84 return wrap(unwrap(type).cast<quant::QuantizedType>().castFromStorageType( in mlirQuantizedTypeCastFromStorageType()
85 unwrap(candidate))); in mlirQuantizedTypeCastFromStorageType()
90 unwrap(type).cast<quant::QuantizedType>())); in mlirQuantizedTypeCastToStorageType()
95 return wrap(unwrap(type).cast<quant::QuantizedType>().castFromExpressedType( in mlirQuantizedTypeCastFromExpressedType()
96 unwrap(candidate))); in mlirQuantizedTypeCastFromExpressedType()
100 return wrap(quant::QuantizedType::castToExpressedType(unwrap(type))); in mlirQuantizedTypeCastToExpressedType()
106 unwrap(type).cast<quant::QuantizedType>().castExpressedToStorageType( in mlirQuantizedTypeCastExpressedToStorageType()
107 unwrap(candidate))); in mlirQuantizedTypeCastExpressedToStorageType()
115 return unwrap(type).isa<quant::AnyQuantizedType>(); in mlirTypeIsAAnyQuantizedType()
121 return wrap(quant::AnyQuantizedType::get(flags, unwrap(storageType), in mlirAnyQuantizedTypeGet()
122 unwrap(expressedType), in mlirAnyQuantizedTypeGet()
131 return unwrap(type).isa<quant::UniformQuantizedType>(); in mlirTypeIsAUniformQuantizedType()
139 flags, unwrap(storageType), unwrap(expressedType), scale, zeroPoint, in mlirUniformQuantizedTypeGet()
144 return unwrap(type).cast<quant::UniformQuantizedType>().getScale(); in mlirUniformQuantizedTypeGetScale()
148 return unwrap(type).cast<quant::UniformQuantizedType>().getZeroPoint(); in mlirUniformQuantizedTypeGetZeroPoint()
152 return unwrap(type).cast<quant::UniformQuantizedType>().isFixedPoint(); in mlirUniformQuantizedTypeIsFixedPoint()
160 return unwrap(type).isa<quant::UniformQuantizedPerAxisType>(); in mlirTypeIsAUniformQuantizedPerAxisType()
169 flags, unwrap(storageType), unwrap(expressedType), in mlirUniformQuantizedPerAxisTypeGet()
175 return unwrap(type) in mlirUniformQuantizedPerAxisTypeGetNumDims()
182 return unwrap(type) in mlirUniformQuantizedPerAxisTypeGetScale()
189 return unwrap(type) in mlirUniformQuantizedPerAxisTypeGetZeroPoint()
195 return unwrap(type) in mlirUniformQuantizedPerAxisTypeGetQuantizedDimension()
201 return unwrap(type).cast<quant::UniformQuantizedPerAxisType>().isFixedPoint(); in mlirUniformQuantizedPerAxisTypeIsFixedPoint()
209 return unwrap(type).isa<quant::CalibratedQuantizedType>(); in mlirTypeIsACalibratedQuantizedType()
215 quant::CalibratedQuantizedType::get(unwrap(expressedType), min, max)); in mlirCalibratedQuantizedTypeGet()
219 return unwrap(type).cast<quant::CalibratedQuantizedType>().getMin(); in mlirCalibratedQuantizedTypeGetMin()
223 return unwrap(type).cast<quant::CalibratedQuantizedType>().getMax(); in mlirCalibratedQuantizedTypeGetMax()