• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/

Lines Matching refs:CTy

462   if (auto *CTy = dyn_cast<DICompositeType>(Ty)) {
465 if (CTy->getTag() == dwarf::DW_TAG_enumeration_type)
659 else if (auto *CTy = dyn_cast<DICompositeType>(Ty)) {
661 (Ty->getRawName() || CTy->getRawIdentifier())) {
663 if (MDString *TypeId = CTy->getRawIdentifier())
664 DD->addDwarfTypeUnitType(getCU(), TypeId->getString(), TyDIE, CTy);
667 finishNonUnitTypeDIE(TyDIE, CTy);
671 constructTypeDIE(TyDIE, CTy);
848 void DwarfUnit::constructTypeDIE(DIE &Buffer, const DISubroutineType *CTy) {
850 auto Elements = cast<DISubroutineType>(CTy)->getTypeArray();
870 if (CTy->getCC() && CTy->getCC() != dwarf::DW_CC_normal)
872 CTy->getCC());
874 if (CTy->isLValueReference())
877 if (CTy->isRValueReference())
881 void DwarfUnit::constructTypeDIE(DIE &Buffer, const DICompositeType *CTy) {
883 StringRef Name = CTy->getName();
885 uint64_t Size = CTy->getSizeInBits() >> 3;
890 constructArrayTypeDIE(Buffer, CTy);
893 constructEnumTypeDIE(Buffer, CTy);
902 Discriminator = CTy->getDiscriminator();
914 DINodeArray Elements = CTy->getElements();
965 if (CTy->isAppleBlockExtension())
968 if (CTy->getExportSymbols())
975 if (auto *ContainingType = CTy->getVTableHolder())
979 if (CTy->isObjcClassComplete())
986 addTemplateParams(Buffer, CTy->getTemplateParams());
990 if (CTy->isTypePassByValue())
992 else if (CTy->isTypePassByReference())
1014 else if (!CTy->isForwardDecl())
1019 if (CTy->isForwardDecl())
1023 if (!CTy->isForwardDecl())
1024 addSourceLine(Buffer, CTy);
1027 unsigned RLang = CTy->getRuntimeLang();
1033 if (uint32_t AlignInBytes = CTy->getAlignInBytes())
1405 static bool hasVectorBeenPadded(const DICompositeType *CTy) {
1406 assert(CTy && CTy->isVector() && "Composite type is not a vector");
1407 const uint64_t ActualSize = CTy->getSizeInBits();
1410 DIType *BaseTy = CTy->getBaseType();
1415 const DINodeArray Elements = CTy->getElements();
1431 void DwarfUnit::constructArrayTypeDIE(DIE &Buffer, const DICompositeType *CTy) {
1432 if (CTy->isVector()) {
1434 if (hasVectorBeenPadded(CTy))
1436 CTy->getSizeInBits() / CHAR_BIT);
1439 if (DIVariable *Var = CTy->getDataLocation()) {
1442 } else if (DIExpression *Expr = CTy->getDataLocationExp()) {
1451 addType(Buffer, CTy->getBaseType());
1459 DINodeArray Elements = CTy->getElements();
1468 void DwarfUnit::constructEnumTypeDIE(DIE &Buffer, const DICompositeType *CTy) {
1469 const DIType *DTy = CTy->getBaseType();
1474 if (DD->getDwarfVersion() >= 4 && (CTy->getFlags() & DINode::FlagEnumClass))
1478 auto *Context = CTy->getScope();
1481 DINodeArray Elements = CTy->getElements();
1780 void DwarfTypeUnit::finishNonUnitTypeDIE(DIE& D, const DICompositeType *CTy) {
1782 StringRef Name = CTy->getName();
1785 getCU().createTypeDIE(CTy);