Lines Matching refs:cast
31 return wrap(unwrap(attr).cast<AffineMapAttr>().getValue()); in mlirAffineMapAttrGetValue()
51 return static_cast<intptr_t>(unwrap(attr).cast<ArrayAttr>().size()); in mlirArrayAttrGetNumElements()
55 return wrap(unwrap(attr).cast<ArrayAttr>().getValue()[pos]); in mlirArrayAttrGetElement()
78 return static_cast<intptr_t>(unwrap(attr).cast<DictionaryAttr>().size()); in mlirDictionaryAttrGetNumElements()
84 unwrap(attr).cast<DictionaryAttr>().getValue()[pos]; in mlirDictionaryAttrGetElement()
90 return wrap(unwrap(attr).cast<DictionaryAttr>().get(unwrap(name))); in mlirDictionaryAttrGetElementByName()
112 return unwrap(attr).cast<FloatAttr>().getValueAsDouble(); in mlirFloatAttrGetValueDouble()
128 return unwrap(attr).cast<IntegerAttr>().getInt(); in mlirIntegerAttrGetValueInt()
144 return unwrap(attr).cast<BoolAttr>().getValue(); in mlirBoolAttrGetValue()
172 return wrap(unwrap(attr).cast<OpaqueAttr>().getDialectNamespace().strref()); in mlirOpaqueAttrGetDialectNamespace()
176 return wrap(unwrap(attr).cast<OpaqueAttr>().getAttrData()); in mlirOpaqueAttrGetData()
196 return wrap(unwrap(attr).cast<StringAttr>().getValue()); in mlirStringAttrGetValue()
213 refs.push_back(unwrap(references[i]).cast<FlatSymbolRefAttr>()); in mlirSymbolRefAttrGet()
218 return wrap(unwrap(attr).cast<SymbolRefAttr>().getRootReference()); in mlirSymbolRefAttrGetRootReference()
222 return wrap(unwrap(attr).cast<SymbolRefAttr>().getLeafReference()); in mlirSymbolRefAttrGetLeafReference()
227 unwrap(attr).cast<SymbolRefAttr>().getNestedReferences().size()); in mlirSymbolRefAttrGetNumNestedReferences()
232 return wrap(unwrap(attr).cast<SymbolRefAttr>().getNestedReferences()[pos]); in mlirSymbolRefAttrGetNestedReference()
248 return wrap(unwrap(attr).cast<FlatSymbolRefAttr>().getValue()); in mlirFlatSymbolRefAttrGetValue()
264 return wrap(unwrap(attr).cast<TypeAttr>().getValue()); in mlirTypeAttrGetValue()
289 return wrap(unwrap(attr).cast<ElementsAttr>().getValue( in mlirElementsAttrGetValue()
295 return unwrap(attr).cast<ElementsAttr>().isValidIndex( in mlirElementsAttrIsValidIndex()
300 return unwrap(attr).cast<ElementsAttr>().getNumElements(); in mlirElementsAttrGetNumElements()
328 DenseElementsAttr::get(unwrap(shapedType).cast<ShapedType>(), in mlirDenseElementsAttrGet()
334 return wrap(DenseElementsAttr::get(unwrap(shapedType).cast<ShapedType>(), in mlirDenseElementsAttrSplatGet()
340 DenseElementsAttr::get(unwrap(shapedType).cast<ShapedType>(), element)); in mlirDenseElementsAttrBoolSplatGet()
345 DenseElementsAttr::get(unwrap(shapedType).cast<ShapedType>(), element)); in mlirDenseElementsAttrUInt32SplatGet()
350 DenseElementsAttr::get(unwrap(shapedType).cast<ShapedType>(), element)); in mlirDenseElementsAttrInt32SplatGet()
355 DenseElementsAttr::get(unwrap(shapedType).cast<ShapedType>(), element)); in mlirDenseElementsAttrUInt64SplatGet()
360 DenseElementsAttr::get(unwrap(shapedType).cast<ShapedType>(), element)); in mlirDenseElementsAttrInt64SplatGet()
365 DenseElementsAttr::get(unwrap(shapedType).cast<ShapedType>(), element)); in mlirDenseElementsAttrFloatSplatGet()
370 DenseElementsAttr::get(unwrap(shapedType).cast<ShapedType>(), element)); in mlirDenseElementsAttrDoubleSplatGet()
378 DenseElementsAttr::get(unwrap(shapedType).cast<ShapedType>(), values)); in mlirDenseElementsAttrBoolGet()
387 DenseElementsAttr::get(unwrap(shapedType).cast<ShapedType>(), in getDenseAttribute()
431 DenseElementsAttr::get(unwrap(shapedType).cast<ShapedType>(), values)); in mlirDenseElementsAttrStringGet()
436 return wrap(unwrap(attr).cast<DenseElementsAttr>().reshape( in mlirDenseElementsAttrReshapeGet()
437 unwrap(shapedType).cast<ShapedType>())); in mlirDenseElementsAttrReshapeGet()
444 return unwrap(attr).cast<DenseElementsAttr>().isSplat(); in mlirDenseElementsAttrIsSplat()
448 return wrap(unwrap(attr).cast<DenseElementsAttr>().getSplatValue()); in mlirDenseElementsAttrGetSplatValue()
451 return unwrap(attr).cast<DenseElementsAttr>().getSplatValue<bool>(); in mlirDenseElementsAttrGetBoolSplatValue()
454 return unwrap(attr).cast<DenseElementsAttr>().getSplatValue<int32_t>(); in mlirDenseElementsAttrGetInt32SplatValue()
457 return unwrap(attr).cast<DenseElementsAttr>().getSplatValue<uint32_t>(); in mlirDenseElementsAttrGetUInt32SplatValue()
460 return unwrap(attr).cast<DenseElementsAttr>().getSplatValue<int64_t>(); in mlirDenseElementsAttrGetInt64SplatValue()
463 return unwrap(attr).cast<DenseElementsAttr>().getSplatValue<uint64_t>(); in mlirDenseElementsAttrGetUInt64SplatValue()
466 return unwrap(attr).cast<DenseElementsAttr>().getSplatValue<float>(); in mlirDenseElementsAttrGetFloatSplatValue()
469 return unwrap(attr).cast<DenseElementsAttr>().getSplatValue<double>(); in mlirDenseElementsAttrGetDoubleSplatValue()
473 unwrap(attr).cast<DenseElementsAttr>().getSplatValue<StringRef>()); in mlirDenseElementsAttrGetStringSplatValue()
480 return *(unwrap(attr).cast<DenseElementsAttr>().getValues<bool>().begin() + in mlirDenseElementsAttrGetBoolValue()
484 return *(unwrap(attr).cast<DenseElementsAttr>().getValues<int32_t>().begin() + in mlirDenseElementsAttrGetInt32Value()
489 unwrap(attr).cast<DenseElementsAttr>().getValues<uint32_t>().begin() + in mlirDenseElementsAttrGetUInt32Value()
493 return *(unwrap(attr).cast<DenseElementsAttr>().getValues<int64_t>().begin() + in mlirDenseElementsAttrGetInt64Value()
498 unwrap(attr).cast<DenseElementsAttr>().getValues<uint64_t>().begin() + in mlirDenseElementsAttrGetUInt64Value()
502 return *(unwrap(attr).cast<DenseElementsAttr>().getValues<float>().begin() + in mlirDenseElementsAttrGetFloatValue()
506 return *(unwrap(attr).cast<DenseElementsAttr>().getValues<double>().begin() + in mlirDenseElementsAttrGetDoubleValue()
512 *(unwrap(attr).cast<DenseElementsAttr>().getValues<StringRef>().begin() + in mlirDenseElementsAttrGetStringValue()
521 unwrap(attr).cast<DenseElementsAttr>().getRawData().data()); in mlirDenseElementsAttrGetRawData()
544 SparseElementsAttr::get(unwrap(shapedType).cast<ShapedType>(), in mlirSparseElementsAttribute()
545 unwrap(denseIndices).cast<DenseElementsAttr>(), in mlirSparseElementsAttribute()
546 unwrap(denseValues).cast<DenseElementsAttr>())); in mlirSparseElementsAttribute()
550 return wrap(unwrap(attr).cast<SparseElementsAttr>().getIndices()); in mlirSparseElementsAttrGetIndices()
554 return wrap(unwrap(attr).cast<SparseElementsAttr>().getValues()); in mlirSparseElementsAttrGetValues()