Lines Matching refs:DTy
48 BTFTypeDerived::BTFTypeDerived(const DIDerivedType *DTy, unsigned Tag, in BTFTypeDerived() argument
50 : DTy(DTy), NeedsFixup(NeedsFixup), Name(DTy->getName()) { in BTFTypeDerived()
76 : DTy(nullptr), NeedsFixup(false), Name(Name) { in BTFTypeDerived()
89 if (NeedsFixup || !DTy) in completeType()
93 const DIType *ResolvedType = DTy->getBaseType(); in completeType()
468 : DTy(nullptr), Tag(Tag) { in BTFTypeTypeTag()
474 BTFTypeTypeTag::BTFTypeTypeTag(const DIDerivedType *DTy, StringRef Tag) in BTFTypeTypeTag() argument
475 : DTy(DTy), Tag(Tag) { in BTFTypeTypeTag()
485 if (DTy) { in completeType()
486 const DIType *ResolvedType = DTy->getBaseType(); in completeType()
622 int BTFDebug::genBTFTypeTags(const DIDerivedType *DTy, int BaseTypeId) { in genBTFTypeTags() argument
624 DINodeArray Annots = DTy->getAnnotations(); in genBTFTypeTags()
650 TypeEntry = std::make_unique<BTFTypeTypeTag>(DTy, MDStrs[0]->getString()); in genBTFTypeTags()
799 void BTFDebug::visitDerivedType(const DIDerivedType *DTy, uint32_t &TypeId, in visitDerivedType() argument
801 unsigned Tag = DTy->getTag(); in visitDerivedType()
810 const DIType *Base = DTy->getBaseType(); in visitDerivedType()
816 auto TypeEntry = std::make_unique<BTFTypeDerived>(DTy, Tag, true); in visitDerivedType()
818 Fixup.push_back(std::make_pair(DTy, TypeEntry.get())); in visitDerivedType()
819 TypeId = addType(std::move(TypeEntry), DTy); in visitDerivedType()
826 int TmpTypeId = genBTFTypeTags(DTy, -1); in visitDerivedType()
829 std::make_unique<BTFTypeDerived>(TmpTypeId, Tag, DTy->getName()); in visitDerivedType()
830 TypeId = addType(std::move(TypeDEntry), DTy); in visitDerivedType()
832 auto TypeEntry = std::make_unique<BTFTypeDerived>(DTy, Tag, false); in visitDerivedType()
833 TypeId = addType(std::move(TypeEntry), DTy); in visitDerivedType()
838 auto TypeEntry = std::make_unique<BTFTypeDerived>(DTy, Tag, false); in visitDerivedType()
839 TypeId = addType(std::move(TypeEntry), DTy); in visitDerivedType()
841 processDeclAnnotations(DTy->getAnnotations(), TypeId, -1); in visitDerivedType()
850 visitTypeEntry(DTy->getBaseType(), TempTypeId, true, false); in visitDerivedType()
852 visitTypeEntry(DTy->getBaseType(), TempTypeId, CheckPointer, SeenPointer); in visitDerivedType()
897 if (const auto *DTy = dyn_cast<DIDerivedType>(Ty)) { in visitTypeEntry() local
898 while (DTy) { in visitTypeEntry()
899 const DIType *BaseTy = DTy->getBaseType(); in visitTypeEntry()
904 DTy = dyn_cast<DIDerivedType>(BaseTy); in visitTypeEntry()
906 if (CheckPointer && DTy->getTag() == dwarf::DW_TAG_pointer_type) { in visitTypeEntry()
929 else if (const auto *DTy = dyn_cast<DIDerivedType>(Ty)) in visitTypeEntry() local
930 visitDerivedType(DTy, TypeId, CheckPointer, SeenPointer); in visitTypeEntry()
948 while (auto *DTy = dyn_cast<DIDerivedType>(Ty)) { in visitMapDefType() local
949 auto Tag = DTy->getTag(); in visitMapDefType()
954 Ty = DTy->getBaseType(); in visitMapDefType()
1642 const DIDerivedType *DTy = TypeInfo.first; in endModule() local
1645 int TmpTypeId = genBTFTypeTags(DTy, StructTypeId); in endModule()