Lines Matching refs:CTy

156   void CheckCompositeType(DIDerivedType *ParentTy, DICompositeType *CTy);
178 uint32_t GetFieldInfo(uint32_t InfoKind, DICompositeType *CTy,
260 DICompositeType *CTy) { in CheckCompositeType() argument
261 if (!CTy->getName().empty() || !ParentTy || in CheckCompositeType()
265 if (AnonRecords.find(CTy) == AnonRecords.end()) { in CheckCompositeType()
266 AnonRecords[CTy] = ParentTy; in CheckCompositeType()
273 DIDerivedType *CurrTy = AnonRecords[CTy]; in CheckCompositeType()
276 AnonRecords[CTy] = nullptr; in CheckCompositeType()
299 if (auto *CTy = dyn_cast<DICompositeType>(Ty)) in CheckAnonRecordType() local
300 return CheckCompositeType(ParentTy, CTy); in CheckAnonRecordType()
334 static uint32_t calcArraySize(const DICompositeType *CTy, uint32_t StartDim) { in calcArraySize() argument
335 DINodeArray Elements = CTy->getElements(); in calcArraySize()
528 const auto *CTy = dyn_cast<DICompositeType>(CType); in IsValidAIChain() local
529 assert(PTy && CTy && "ParentType or ChildType is null or not composite"); in IsValidAIChain()
536 uint32_t CTyTag = CTy->getTag(); in IsValidAIChain()
543 return PTy->getBaseType() == CTy->getBaseType(); in IsValidAIChain()
551 return dyn_cast<DICompositeType>(stripQualifiers(Ty)) == CTy; in IsValidAIChain()
698 DICompositeType *CTy, in GetFieldInfo() argument
705 uint32_t Tag = CTy->getTag(); in GetFieldInfo()
708 auto *EltTy = stripQualifiers(CTy->getBaseType()); in GetFieldInfo()
709 PatchImm += AccessIndex * calcArraySize(CTy, 1) * in GetFieldInfo()
712 auto *MemberTy = cast<DIDerivedType>(CTy->getElements()[AccessIndex]); in GetFieldInfo()
727 auto *EltTy = stripQualifiers(CTy->getBaseType()); in GetFieldInfo()
728 return calcArraySize(CTy, 1) * (EltTy->getSizeInBits() >> 3); in GetFieldInfo()
730 auto *MemberTy = cast<DIDerivedType>(CTy->getElements()[AccessIndex]); in GetFieldInfo()
749 if (CTy->getElements().size() != 1) in GetFieldInfo()
751 BaseTy = stripQualifiers(CTy->getBaseType()); in GetFieldInfo()
753 auto *MemberTy = cast<DIDerivedType>(CTy->getElements()[AccessIndex]); in GetFieldInfo()
782 auto *EltTy = stripQualifiers(CTy->getBaseType()); in GetFieldInfo()
783 SizeInBits = calcArraySize(CTy, 1) * EltTy->getSizeInBits(); in GetFieldInfo()
785 MemberTy = cast<DIDerivedType>(CTy->getElements()[AccessIndex]); in GetFieldInfo()
813 auto *EltTy = stripQualifiers(CTy->getBaseType()); in GetFieldInfo()
814 SizeInBits = calcArraySize(CTy, 1) * EltTy->getSizeInBits(); in GetFieldInfo()
816 MemberTy = cast<DIDerivedType>(CTy->getElements()[AccessIndex]); in GetFieldInfo()
911 if (const auto *CTy = dyn_cast<DICompositeType>(Ty)) { in computeBaseAndAccessKey() local
913 assert(CTy->getTag() == dwarf::DW_TAG_array_type); in computeBaseAndAccessKey()
916 FirstIndex += AccessIndex * calcArraySize(CTy, 1); in computeBaseAndAccessKey()
917 BaseTy = stripQualifiers(CTy->getBaseType()); in computeBaseAndAccessKey()
918 CheckElemType = CTy->getElements().size() == 1; in computeBaseAndAccessKey()
925 CTy = dyn_cast<DICompositeType>(BaseTy); in computeBaseAndAccessKey()
926 if (!CTy) { in computeBaseAndAccessKey()
928 } else if (CTy->getTag() != dwarf::DW_TAG_array_type) { in computeBaseAndAccessKey()
932 FirstIndex += AccessIndex * calcArraySize(CTy, 0); in computeBaseAndAccessKey()
937 auto *CTy = dyn_cast<DICompositeType>(BaseTy); in computeBaseAndAccessKey() local
938 if (!CTy) { in computeBaseAndAccessKey()
944 unsigned CTag = CTy->getTag(); in computeBaseAndAccessKey()
946 TypeName = std::string(CTy->getName()); in computeBaseAndAccessKey()
952 TypeMeta = CTy; in computeBaseAndAccessKey()
953 PatchImm += FirstIndex * (CTy->getSizeInBits() >> 3); in computeBaseAndAccessKey()
991 auto *CTy = cast<DICompositeType>(stripQualifiers(cast<DIType>(MDN))); in computeBaseAndAccessKey() local
992 PatchImm = GetFieldInfo(InfoKind, CTy, AccessIndex, PatchImm, in computeBaseAndAccessKey()
1044 const auto *CTy = cast<DICompositeType>(BaseTy); in computeAccessKey() local
1045 assert(CTy->getTag() == dwarf::DW_TAG_enumeration_type); in computeAccessKey()
1047 for (const auto Element : CTy->getElements()) { in computeAccessKey()