Lines Matching refs:CTy

158   void CheckCompositeType(DIDerivedType *ParentTy, DICompositeType *CTy);
178 uint32_t GetFieldInfo(uint32_t InfoKind, DICompositeType *CTy,
232 DICompositeType *CTy) { in CheckCompositeType() argument
233 if (!CTy->getName().empty() || !ParentTy || in CheckCompositeType()
237 if (AnonRecords.find(CTy) == AnonRecords.end()) { in CheckCompositeType()
238 AnonRecords[CTy] = ParentTy; in CheckCompositeType()
245 DIDerivedType *CurrTy = AnonRecords[CTy]; in CheckCompositeType()
248 AnonRecords[CTy] = nullptr; in CheckCompositeType()
271 if (auto *CTy = dyn_cast<DICompositeType>(Ty)) in CheckAnonRecordType() local
272 return CheckCompositeType(ParentTy, CTy); in CheckAnonRecordType()
306 static uint32_t calcArraySize(const DICompositeType *CTy, uint32_t StartDim) { in calcArraySize() argument
307 DINodeArray Elements = CTy->getElements(); in calcArraySize()
516 const auto *CTy = dyn_cast<DICompositeType>(CType); in IsValidAIChain() local
517 assert(PTy && CTy && "ParentType or ChildType is null or not composite"); in IsValidAIChain()
524 uint32_t CTyTag = CTy->getTag(); in IsValidAIChain()
531 return PTy->getBaseType() == CTy->getBaseType(); in IsValidAIChain()
539 return dyn_cast<DICompositeType>(stripQualifiers(Ty)) == CTy; in IsValidAIChain()
680 DICompositeType *CTy, in GetFieldInfo() argument
687 uint32_t Tag = CTy->getTag(); in GetFieldInfo()
690 auto *EltTy = stripQualifiers(CTy->getBaseType()); in GetFieldInfo()
691 PatchImm += AccessIndex * calcArraySize(CTy, 1) * in GetFieldInfo()
694 auto *MemberTy = cast<DIDerivedType>(CTy->getElements()[AccessIndex]); in GetFieldInfo()
709 auto *EltTy = stripQualifiers(CTy->getBaseType()); in GetFieldInfo()
710 return calcArraySize(CTy, 1) * (EltTy->getSizeInBits() >> 3); in GetFieldInfo()
712 auto *MemberTy = cast<DIDerivedType>(CTy->getElements()[AccessIndex]); in GetFieldInfo()
731 if (CTy->getElements().size() != 1) in GetFieldInfo()
733 BaseTy = stripQualifiers(CTy->getBaseType()); in GetFieldInfo()
735 auto *MemberTy = cast<DIDerivedType>(CTy->getElements()[AccessIndex]); in GetFieldInfo()
764 auto *EltTy = stripQualifiers(CTy->getBaseType()); in GetFieldInfo()
765 SizeInBits = calcArraySize(CTy, 1) * EltTy->getSizeInBits(); in GetFieldInfo()
767 MemberTy = cast<DIDerivedType>(CTy->getElements()[AccessIndex]); in GetFieldInfo()
795 auto *EltTy = stripQualifiers(CTy->getBaseType()); in GetFieldInfo()
796 SizeInBits = calcArraySize(CTy, 1) * EltTy->getSizeInBits(); in GetFieldInfo()
798 MemberTy = cast<DIDerivedType>(CTy->getElements()[AccessIndex]); in GetFieldInfo()
893 if (const auto *CTy = dyn_cast<DICompositeType>(Ty)) { in computeBaseAndAccessKey() local
895 assert(CTy->getTag() == dwarf::DW_TAG_array_type); in computeBaseAndAccessKey()
898 FirstIndex += AccessIndex * calcArraySize(CTy, 1); in computeBaseAndAccessKey()
899 BaseTy = stripQualifiers(CTy->getBaseType()); in computeBaseAndAccessKey()
900 CheckElemType = CTy->getElements().size() == 1; in computeBaseAndAccessKey()
907 CTy = dyn_cast<DICompositeType>(BaseTy); in computeBaseAndAccessKey()
908 if (!CTy) { in computeBaseAndAccessKey()
910 } else if (CTy->getTag() != dwarf::DW_TAG_array_type) { in computeBaseAndAccessKey()
914 FirstIndex += AccessIndex * calcArraySize(CTy, 0); in computeBaseAndAccessKey()
919 auto *CTy = dyn_cast<DICompositeType>(BaseTy); in computeBaseAndAccessKey() local
920 if (!CTy) { in computeBaseAndAccessKey()
926 unsigned CTag = CTy->getTag(); in computeBaseAndAccessKey()
928 TypeName = std::string(CTy->getName()); in computeBaseAndAccessKey()
934 TypeMeta = CTy; in computeBaseAndAccessKey()
935 PatchImm += FirstIndex * (CTy->getSizeInBits() >> 3); in computeBaseAndAccessKey()
973 auto *CTy = cast<DICompositeType>(stripQualifiers(cast<DIType>(MDN))); in computeBaseAndAccessKey() local
974 PatchImm = GetFieldInfo(InfoKind, CTy, AccessIndex, PatchImm, in computeBaseAndAccessKey()
1026 const auto *CTy = cast<DICompositeType>(BaseTy); in computeAccessKey() local
1027 assert(CTy->getTag() == dwarf::DW_TAG_enumeration_type); in computeAccessKey()
1029 for (const auto Element : CTy->getElements()) { in computeAccessKey()