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

Lines Matching refs:CTy

453 void BTFDebug::visitStructType(const DICompositeType *CTy, bool IsStruct,
455 const DINodeArray Elements = CTy->getElements();
471 std::make_unique<BTFTypeStruct>(CTy, IsStruct, HasBitField, VLen);
473 TypeId = addType(std::move(TypeEntry), CTy);
480 void BTFDebug::visitArrayType(const DICompositeType *CTy, uint32_t &TypeId) {
483 const DIType *ElemType = CTy->getBaseType();
487 DINodeArray Elements = CTy->getElements();
501 ElemTypeId = addType(std::move(TypeEntry), CTy);
519 void BTFDebug::visitEnumType(const DICompositeType *CTy, uint32_t &TypeId) {
520 DINodeArray Elements = CTy->getElements();
525 auto TypeEntry = std::make_unique<BTFTypeEnum>(CTy, VLen);
526 TypeId = addType(std::move(TypeEntry), CTy);
531 void BTFDebug::visitFwdDeclType(const DICompositeType *CTy, bool IsUnion,
533 auto TypeEntry = std::make_unique<BTFTypeFwd>(CTy->getName(), IsUnion);
534 TypeId = addType(std::move(TypeEntry), CTy);
538 void BTFDebug::visitCompositeType(const DICompositeType *CTy,
540 auto Tag = CTy->getTag();
543 if (CTy->isForwardDecl())
544 visitFwdDeclType(CTy, Tag == dwarf::DW_TAG_union_type, TypeId);
546 visitStructType(CTy, Tag == dwarf::DW_TAG_structure_type, TypeId);
548 visitArrayType(CTy, TypeId);
550 visitEnumType(CTy, TypeId);
567 if (const auto *CTy = dyn_cast<DICompositeType>(Base)) {
568 auto CTag = CTy->getTag();
571 !CTy->getName().empty() && !CTy->isForwardDecl()) {
576 auto &Fixup = FixupDerivedTypes[CTy->getName()];
648 else if (const auto *CTy = dyn_cast<DICompositeType>(Ty))
649 visitCompositeType(CTy, TypeId);
678 const auto *CTy = dyn_cast<DICompositeType>(Ty);
679 if (!CTy)
682 auto Tag = CTy->getTag();
683 if (Tag != dwarf::DW_TAG_structure_type || CTy->isForwardDecl())
687 const DINodeArray Elements = CTy->getElements();