Home
last modified time | relevance | path

Searched refs:getTag (Results 1 – 25 of 99) sorted by relevance

1234

/llvm-project-15.0.7/llvm/lib/DebugInfo/DWARF/
H A DDWARFTypePrinter.cpp20 if (C.getTag() != DW_TAG_subrange_type) in appendArrayType()
107 const dwarf::Tag T = D.getTag(); in appendUnqualifiedNameBefore()
175 appendTypeTagName(D.getTag()); in appendUnqualifiedNameBefore()
216 switch (D.getTag()) { in appendUnqualifiedNameAfter()
297 if (T.getTag() == DW_TAG_pointer_type) in appendTemplateParameters()
417 auto Tag = T.getTag(); in decomposeConstVolatile()
592 if (D.getTag() == DW_TAG_compile_unit) in appendScopes()
594 if (D.getTag() == DW_TAG_type_unit) in appendScopes()
596 if (D.getTag() == DW_TAG_skeleton_unit) in appendScopes()
598 if (D.getTag() == DW_TAG_subprogram) in appendScopes()
[all …]
H A DDWARFVerifier.cpp210 if (Die.getTag() == DW_TAG_null) in verifyUnitContents()
224 warn() << dwarf::TagString(Die.getTag()) in verifyUnitContents()
240 if (!dwarf::isUnitType(Die.getTag())) { in verifyUnitContents()
269 if (Die.getTag() != DW_TAG_call_site && Die.getTag() != DW_TAG_GNU_call_site) in verifyDebugInfoCallSite()
274 if (Curr.getTag() == DW_TAG_inlined_subroutine) { in verifyDebugInfoCallSite()
646 auto DieTag = Die.getTag(); in verifyDebugInfoAttribute()
647 auto RefTag = ReferencedDie.getTag(); in verifyDebugInfoAttribute()
667 if (TypeDie && !isType(TypeDie.getTag())) { in verifyDebugInfoAttribute()
1402 if (DIE.getTag() != EntryOr->tag()) { in verifyNameIndexEntries()
1406 DIE.getTag()); in verifyNameIndexEntries()
[all …]
/llvm-project-15.0.7/llvm/unittests/BinaryFormat/
H A DDwarfTest.cpp30 TEST(DwarfTest, getTag) { in TEST() argument
32 EXPECT_EQ(DW_TAG_array_type, getTag("DW_TAG_array_type")); in TEST()
33 EXPECT_EQ(DW_TAG_module, getTag("DW_TAG_module")); in TEST()
36 EXPECT_EQ(DW_TAG_invalid, getTag("DW_TAG_invalid")); in TEST()
37 EXPECT_EQ(DW_TAG_invalid, getTag("DW_TAG_madeuptag")); in TEST()
38 EXPECT_EQ(DW_TAG_invalid, getTag("something else")); in TEST()
41 EXPECT_EQ(DW_TAG_invalid, getTag("DW_TAG_lo_user")); in TEST()
42 EXPECT_EQ(DW_TAG_invalid, getTag("DW_TAG_hi_user")); in TEST()
43 EXPECT_EQ(DW_TAG_invalid, getTag("DW_TAG_user_base")); in TEST()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DChrootChecker.cpp51 static void *getTag() { in getTag() function in __anon0b116b820111::ChrootChecker
85 state = Mgr.addGDM(state, ChrootChecker::getTag(), (void*) ROOT_CHANGED); in evalChroot()
94 const void *k = state->FindGDM(ChrootChecker::getTag()); in evalChdir()
107 state = Mgr.addGDM(state, ChrootChecker::getTag(), in evalChdir()
123 void *const* k = C.getState()->FindGDM(ChrootChecker::getTag()); in checkPreCall()
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DDIEHash.cpp90 assert(Cur->getTag() == dwarf::DW_TAG_compile_unit || in addParentContext()
91 Cur->getTag() == dwarf::DW_TAG_type_unit); in addParentContext()
100 addULEB128(Die->getTag()); in addParentContext()
350 hashAttributes(Attrs, Die.getTag()); in addAttributes()
359 addULEB128(Die.getTag()); in hashNestedType()
371 addULEB128(Die.getTag()); in computeHash()
380 …if (isType(C.getTag()) || (C.getTag() == dwarf::DW_TAG_subprogram && isType(C.getParent()->getTag(… in computeHash()
H A DDebugHandlerBase.cpp153 unsigned Tag = DDTy->getTag(); in getBaseTypeSize()
169 if (BaseType->getTag() == dwarf::DW_TAG_reference_type || in getBaseTypeSize()
170 BaseType->getTag() == dwarf::DW_TAG_rvalue_reference_type) in getBaseTypeSize()
188 if (CTy->getTag() == dwarf::DW_TAG_enumeration_type) { in isUnsignedDIType()
200 dwarf::Tag T = (dwarf::Tag)Ty->getTag(); in isUnsignedDIType()
227 (Ty->getTag() == dwarf::DW_TAG_unspecified_type && in isUnsignedDIType()
233 Ty->getTag() == dwarf::DW_TAG_unspecified_type; in isUnsignedDIType()
H A DDwarfUnit.cpp568 DIE &TyDIE = createAndAddDIE(Ty->getTag(), *ContextDIE, Ty); in createTypeDIE()
579 DIE &TyDIE = createAndAddDIE(Ty->getTag(), ContextDIE, Ty); in createTypeDIE()
700 if (BTy->getTag() == dwarf::DW_TAG_unspecified_type) in constructTypeDIE()
703 if (BTy->getTag() != dwarf::DW_TAG_string_type) in constructTypeDIE()
761 uint16_t Tag = Buffer.getTag(); in constructTypeDIE()
879 uint16_t Tag = Buffer.getTag(); in constructTypeDIE()
920 if (DDTy->getTag() == dwarf::DW_TAG_friend) { in constructTypeDIE()
1064 DIE &ParamDIE = createAndAddDIE(VP->getTag(), Buffer); in constructTemplateValueParameterDIE()
1542 if (Element->getTag() == dwarf::DW_TAG_subrange_type) in constructArrayTypeDIE()
1594 DIE &MemberDie = createAndAddDIE(DT->getTag(), Buffer); in constructMemberDIE()
[all …]
H A DCodeViewDebug.cpp263 switch (Scope->getTag()) { in getPrettyScopeName()
1559 switch (Scope->getTag()) { in shouldEmitUdt()
1613 switch (Ty->getTag()) { in lowerType()
1871 switch (Ty->getTag()) { in lowerTypePointer()
1965 switch (BaseTy->getTag()) { in lowerTypeModifier()
1992 switch (BaseTy->getTag()) { in lowerTypeModifier()
2144 switch (Ty->getTag()) { in getRecordKind()
2193 switch (Ty->getTag()) { in addUDTSrcLine()
2315 switch (Ty->getTag()) { in collectMemberInfo()
2697 switch (Ty->getTag()) { in getCompleteTypeIndex()
[all …]
/llvm-project-15.0.7/mlir/unittests/Support/
H A DDebugActionTest.cpp19 static StringRef getTag() { return "simple-action"; } in getTag() function
23 static StringRef getTag() { return "param-action"; } in getTag() function
34 if (tag == SimpleAction::getTag()) { in TEST()
39 EXPECT_EQ(tag, ParametricAction::getTag()); in TEST()
H A DDebugCounterTest.cpp20 static StringRef getTag() { return "counter-action"; } in getTag() function
26 counter->addCounter(CounterAction::getTag(), /*countToSkip=*/1, in TEST()
/llvm-project-15.0.7/llvm/lib/DWARFLinker/
H A DDWARFLinkerDeclContext.cpp47 unsigned Tag = DIE.getTag(); in getChildDeclContext()
63 if ((Context.getTag() == dwarf::DW_TAG_namespace || in getChildDeclContext()
64 Context.getTag() == dwarf::DW_TAG_compile_unit) && in getChildDeclContext()
184 Context.getTag() != dwarf::DW_TAG_structure_type && in getChildDeclContext()
185 Context.getTag() != dwarf::DW_TAG_class_type) || in getChildDeclContext()
H A DDWARFLinkerCompileUnit.cpp17 if (U.getOrigUnit().getDIEAtIndex(Idx).getTag() == dwarf::DW_TAG_subprogram) in inFunctionScope()
51 if (DIE.getTag() != dwarf::DW_TAG_variable && in markEverythingAsKept()
52 DIE.getTag() != dwarf::DW_TAG_constant) in markEverythingAsKept()
114 if (Die.getTag() != dwarf::DW_TAG_compile_unit) in noteRangeAttribute()
H A DDWARFLinker.cpp178 if (Die.getTag() == dwarf::DW_TAG_lexical_block) in getDIENames()
286 (isTypeTag(Die.getTag()) && in updatePruning()
483 if (DIE.getTag() == dwarf::DW_TAG_label) { in shouldKeepSubprogramDIE()
526 switch (DIE.getTag()) { in shouldKeepDIE()
554 switch (Die.getTag()) { in updateChildIncompleteness()
574 switch (Die.getTag()) { in updateRefIncompleteness()
1131 Die.getTag() == dwarf::DW_TAG_label) { in cloneAddressAttribute()
1159 if (Die.getTag() == dwarf::DW_TAG_call_site) in cloneAddressAttribute()
1393 assert(Die->getTag() == InputDIE.getTag()); in cloneDIE()
1487 uint16_t Tag = InputDIE.getTag(); in cloneDIE()
[all …]
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DPointerSumTypeTest.cpp39 EXPECT_EQ(Float, a.getTag()); in TEST_F()
40 EXPECT_EQ(Int1, b.getTag()); in TEST_F()
41 EXPECT_EQ(Int2, c.getTag()); in TEST_F()
42 EXPECT_EQ((Kinds)0, n.getTag()); in TEST_F()
/llvm-project-15.0.7/llvm/unittests/DebugInfo/DWARF/
H A DDWARFDebugInfoTest.cpp542 EXPECT_EQ(NullDieDG.getTag(), DW_TAG_null);
550 EXPECT_EQ(IntDieDG.getTag(), DW_TAG_base_type);
556 EXPECT_EQ(NullDieDG.getTag(), DW_TAG_null);
1251 EXPECT_EQ(A.getTag(), (dwarf::Tag)Tag::A);
1252 EXPECT_EQ(B.getTag(), (dwarf::Tag)Tag::B);
1253 EXPECT_EQ(C.getTag(), (dwarf::Tag)Tag::C);
1254 EXPECT_EQ(D.getTag(), (dwarf::Tag)Tag::D);
1286 EXPECT_EQ(C1.getTag(), (dwarf::Tag)Tag::C1);
1287 EXPECT_EQ(C2.getTag(), (dwarf::Tag)Tag::C2);
1420 EXPECT_EQ(A.getTag(), (dwarf::Tag)Tag::A);
[all …]
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFDebugInfoEntry.h66 dwarf::Tag getTag() const { in getTag() function
67 return AbbrevDecl ? AbbrevDecl->getTag() : dwarf::DW_TAG_null; in getTag()
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBPFAbstractMemberAccess.cpp262 ParentTy->getTag() != dwarf::DW_TAG_typedef) in CheckCompositeType()
285 unsigned Tag = DTy->getTag(); in CheckDerivedType()
318 if (!SkipDIDerivedTag(DTy->getTag(), skipTypedef)) in stripQualifiers()
327 if (!SkipDIDerivedTag(DTy->getTag(), true)) in stripQualifiers()
521 if (PtrTy->getTag() != dwarf::DW_TAG_pointer_type) in IsValidAIChain()
531 uint32_t PTyTag = PTy->getTag(); in IsValidAIChain()
536 uint32_t CTyTag = CTy->getTag(); in IsValidAIChain()
705 uint32_t Tag = CTy->getTag(); in GetFieldInfo()
913 assert(CTy->getTag() == dwarf::DW_TAG_array_type); in computeBaseAndAccessKey()
922 assert(DTy->getTag() == dwarf::DW_TAG_pointer_type); in computeBaseAndAccessKey()
[all …]
/llvm-project-15.0.7/clang/include/clang/Analysis/Analyses/
H A DLiveVariables.h105 static const void *getTag();
119 static const void *getTag();
/llvm-project-15.0.7/llvm/tools/llvm-dwarfutil/
H A DDebugInfoLinker.cpp74 assert((DIE.getTag() == dwarf::DW_TAG_subprogram || in isLiveSubprogram()
75 DIE.getTag() == dwarf::DW_TAG_label) && in isLiveSubprogram()
94 assert((DIE.getTag() == dwarf::DW_TAG_variable || in isLiveVariable()
95 DIE.getTag() == dwarf::DW_TAG_constant) && in isLiveVariable()
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/BugReporter/
H A DBugReporterVisitors.h406 static const char *getTag();
451 static const char *getTag();
523 static void *getTag() { in getTag() function
529 ID.AddPointer(getTag()); in Profile()
586 static const char *getTag();
/llvm-project-15.0.7/llvm/lib/IR/
H A DVerifier.cpp995 CheckDI(N.getTag(), "invalid tag", &N); in visitGenericDINode()
1064 CheckDI(N.getTag() == dwarf::DW_TAG_base_type || in visitDIBasicType()
1080 CheckDI(N.getTag() == dwarf::DW_TAG_typedef || in visitDIDerivedType()
1090 N.getTag() == dwarf::DW_TAG_member || in visitDIDerivedType()
1092 N.getTag() == dwarf::DW_TAG_friend || in visitDIDerivedType()
1093 N.getTag() == dwarf::DW_TAG_set_type, in visitDIDerivedType()
1100 if (N.getTag() == dwarf::DW_TAG_set_type) { in visitDIDerivedType()
1149 CheckDI(N.getTag() == dwarf::DW_TAG_array_type || in visitDICompositeType()
1155 N.getTag() == dwarf::DW_TAG_namelist, in visitDICompositeType()
1188 CheckDI(N.getTag() == dwarf::DW_TAG_array_type, in visitDICompositeType()
[all …]
H A DLLVMContextImpl.h303 return Tag == RHS->getTag() && Header == RHS->getRawHeader() &&
430 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
458 : Tag(N->getTag()), Name(N->getRawName()),
466 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
499 : Tag(N->getTag()), Name(N->getRawName()), File(N->getRawFile()),
507 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
561 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
606 : Tag(N->getTag()), Name(N->getRawName()), File(N->getRawFile()),
620 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
980 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-dwarfdump/
H A DStatistics.cpp268 const dwarf::Tag Tag = Die.getTag(); in collectStatsForDie()
471 const dwarf::Tag ChildTag = Child.getTag(); in collectAbstractOriginFnInfo()
497 const dwarf::Tag Tag = Die.getTag(); in collectStatsRecursive()
614 if (Child.getTag() == dwarf::DW_TAG_lexical_block) in collectStatsRecursive()
616 if (Child.getTag() == dwarf::DW_TAG_formal_parameter) in collectStatsRecursive()
638 auto Tag = FnDie.getTag(); in collectStatsRecursive()
738 const dwarf::Tag ChildTag = Child.getTag(); in updateVarsWithAbstractOriginLocCovInfo()
782 auto Tag = DwUnit->getDIEForOffset(Offset).getTag(); in collectZeroLocCovForVarsWithAbstractOrigin()
822 .getTag(); in collectZeroLocCovForVarsWithCrossCUReferencingAbstractOrigin()
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCheckerContext.h211 (Tag ? Tag : Location.getTag()));
224 return addTransition(State, (Tag ? Tag : Location.getTag()));
240 return addTransition(State, Pred, (Tag ? Tag : Location.getTag()));
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DModuleDebugInfoPrinter.cpp121 auto Tag = dwarf::TagString(T->getTag()); in printModuleDebugInfo()
125 O << "unknown-tag(" << T->getTag() << ")"; in printModuleDebugInfo()

1234