Lines Matching defs:pos
72 MlirAttribute mlirArrayAttrGetElement(MlirAttribute attr, intptr_t pos) {
73 return wrap(llvm::cast<ArrayAttr>(unwrap(attr)).getValue()[pos]);
101 intptr_t pos) {
103 llvm::cast<DictionaryAttr>(unwrap(attr)).getValue()[pos];
292 intptr_t pos) {
294 llvm::cast<SymbolRefAttr>(unwrap(attr)).getNestedReferences()[pos]);
463 bool mlirDenseBoolArrayGetElement(MlirAttribute attr, intptr_t pos) {
464 return llvm::cast<DenseBoolArrayAttr>(unwrap(attr))[pos];
466 int8_t mlirDenseI8ArrayGetElement(MlirAttribute attr, intptr_t pos) {
467 return llvm::cast<DenseI8ArrayAttr>(unwrap(attr))[pos];
469 int16_t mlirDenseI16ArrayGetElement(MlirAttribute attr, intptr_t pos) {
470 return llvm::cast<DenseI16ArrayAttr>(unwrap(attr))[pos];
472 int32_t mlirDenseI32ArrayGetElement(MlirAttribute attr, intptr_t pos) {
473 return llvm::cast<DenseI32ArrayAttr>(unwrap(attr))[pos];
475 int64_t mlirDenseI64ArrayGetElement(MlirAttribute attr, intptr_t pos) {
476 return llvm::cast<DenseI64ArrayAttr>(unwrap(attr))[pos];
478 float mlirDenseF32ArrayGetElement(MlirAttribute attr, intptr_t pos) {
479 return llvm::cast<DenseF32ArrayAttr>(unwrap(attr))[pos];
481 double mlirDenseF64ArrayGetElement(MlirAttribute attr, intptr_t pos) {
482 return llvm::cast<DenseF64ArrayAttr>(unwrap(attr))[pos];
734 bool mlirDenseElementsAttrGetBoolValue(MlirAttribute attr, intptr_t pos) {
735 return llvm::cast<DenseElementsAttr>(unwrap(attr)).getValues<bool>()[pos];
737 int8_t mlirDenseElementsAttrGetInt8Value(MlirAttribute attr, intptr_t pos) {
738 return llvm::cast<DenseElementsAttr>(unwrap(attr)).getValues<int8_t>()[pos];
740 uint8_t mlirDenseElementsAttrGetUInt8Value(MlirAttribute attr, intptr_t pos) {
741 return llvm::cast<DenseElementsAttr>(unwrap(attr)).getValues<uint8_t>()[pos];
743 int16_t mlirDenseElementsAttrGetInt16Value(MlirAttribute attr, intptr_t pos) {
744 return llvm::cast<DenseElementsAttr>(unwrap(attr)).getValues<int16_t>()[pos];
746 uint16_t mlirDenseElementsAttrGetUInt16Value(MlirAttribute attr, intptr_t pos) {
747 return llvm::cast<DenseElementsAttr>(unwrap(attr)).getValues<uint16_t>()[pos];
749 int32_t mlirDenseElementsAttrGetInt32Value(MlirAttribute attr, intptr_t pos) {
750 return llvm::cast<DenseElementsAttr>(unwrap(attr)).getValues<int32_t>()[pos];
752 uint32_t mlirDenseElementsAttrGetUInt32Value(MlirAttribute attr, intptr_t pos) {
753 return llvm::cast<DenseElementsAttr>(unwrap(attr)).getValues<uint32_t>()[pos];
755 int64_t mlirDenseElementsAttrGetInt64Value(MlirAttribute attr, intptr_t pos) {
756 return llvm::cast<DenseElementsAttr>(unwrap(attr)).getValues<int64_t>()[pos];
758 uint64_t mlirDenseElementsAttrGetUInt64Value(MlirAttribute attr, intptr_t pos) {
759 return llvm::cast<DenseElementsAttr>(unwrap(attr)).getValues<uint64_t>()[pos];
761 uint64_t mlirDenseElementsAttrGetIndexValue(MlirAttribute attr, intptr_t pos) {
762 return llvm::cast<DenseElementsAttr>(unwrap(attr)).getValues<uint64_t>()[pos];
764 float mlirDenseElementsAttrGetFloatValue(MlirAttribute attr, intptr_t pos) {
765 return llvm::cast<DenseElementsAttr>(unwrap(attr)).getValues<float>()[pos];
767 double mlirDenseElementsAttrGetDoubleValue(MlirAttribute attr, intptr_t pos) {
768 return llvm::cast<DenseElementsAttr>(unwrap(attr)).getValues<double>()[pos];
771 intptr_t pos) {
773 llvm::cast<DenseElementsAttr>(unwrap(attr)).getValues<StringRef>()[pos]);
888 static T getDenseResourceVal(MlirAttribute attr, intptr_t pos) {
889 return (*llvm::cast<U>(unwrap(attr)).tryGetAsArrayRef())[pos];
893 intptr_t pos) {
894 return getDenseResourceVal<DenseBoolResourceElementsAttr, uint8_t>(attr, pos);
897 intptr_t pos) {
898 return getDenseResourceVal<DenseUI8ResourceElementsAttr, uint8_t>(attr, pos);
901 intptr_t pos) {
903 pos);
906 intptr_t pos) {
908 pos);
911 intptr_t pos) {
913 pos);
916 intptr_t pos) {
917 return getDenseResourceVal<DenseUI8ResourceElementsAttr, int8_t>(attr, pos);
920 intptr_t pos) {
921 return getDenseResourceVal<DenseUI16ResourceElementsAttr, int16_t>(attr, pos);
924 intptr_t pos) {
925 return getDenseResourceVal<DenseUI32ResourceElementsAttr, int32_t>(attr, pos);
928 intptr_t pos) {
929 return getDenseResourceVal<DenseUI64ResourceElementsAttr, int64_t>(attr, pos);
932 intptr_t pos) {
933 return getDenseResourceVal<DenseF32ResourceElementsAttr, float>(attr, pos);
936 intptr_t pos) {
937 return getDenseResourceVal<DenseF64ResourceElementsAttr, double>(attr, pos);
993 int64_t mlirStridedLayoutAttrGetStride(MlirAttribute attr, intptr_t pos) {
994 return llvm::cast<StridedLayoutAttr>(unwrap(attr)).getStrides()[pos];