Lines Matching defs:Element
141 LVElement *Element = nullptr);
337 LVElement *Element) {
341 std::forward_as_tuple(Kind, Element));
353 LVElement *Element = nullptr;
356 Element = Iter->second.second;
357 if (Element || !Create)
358 return Element;
361 Element = Shared->Visitor->createElement(Iter->second.first);
362 if (Element) {
363 Element->setOffset(TI.getIndex());
364 Element->setOffsetFromTypeIndex();
365 Target[TI].second = Element;
368 return Element;
850 LVElement *Element = LogicalVisitor->getElement(StreamTPI, Local.Type);
851 if (Element && Element->getIsScoped()) {
861 if (!Element->getParentScope()) {
862 Parent->addElement(Element);
863 Element->updateLevel(Parent);
866 Symbol->setType(Element);
900 LVElement *Element = LogicalVisitor->getElement(StreamTPI, Local.Type);
901 if (Element && Element->getIsScoped()) {
911 if (!Element->getParentScope()) {
912 Parent->addElement(Element);
913 Element->updateLevel(Parent);
916 Symbol->setType(Element);
1444 LVElement *Element = LogicalVisitor->getElement(StreamTPI, Local.Type);
1445 if (Element && Element->getIsScoped()) {
1451 Parent->addElement(Element);
1452 Element->updateLevel(Parent);
1454 Symbol->setType(Element);
1751 LVElement *Element, uint32_t StreamIdx) {
1759 W.startLine() << "Element: " << HexNumber(Element->getOffset()) << " "
1760 << Element->getName() << "\n";
1769 LVElement *Element,
1778 W.startLine() << "Element: " << HexNumber(Element->getOffset()) << " "
1779 << Element->getName() << "\n";
1797 TypeIndex TI, LVElement *Element) {
1801 printTypeBegin(Record, TI, Element, StreamTPI);
1809 LVScope *Function = static_cast<LVScope *>(Element);
1820 TypeIndex TI, LVElement *Element) {
1822 printTypeBegin(Record, TI, Element, StreamTPI);
1830 if (Element->getIsFinalized())
1832 Element->setIsFinalized();
1834 LVScopeArray *Array = static_cast<LVScopeArray *>(Element);
1938 TypeIndex TI, LVElement *Element) {
1940 printTypeBegin(Record, TI, Element, StreamTPI);
1947 Element->setType(getElement(StreamTPI, BF.getType()));
1948 Element->setBitSize(BF.getBitSize());
1954 TypeIndex TI, LVElement *Element) {
1956 printTypeBegin(Record, TI, Element, StreamIPI);
1964 // The given 'Element' refers to the current compilation unit.
1971 Element->setName(Name);
1978 TypeIndex TI, LVElement *Element) {
1980 printTypeBegin(Record, TI, Element, StreamTPI);
1992 if (Element->getIsFinalized())
1994 Element->setIsFinalized();
1996 LVScopeAggregate *Scope = static_cast<LVScopeAggregate *>(Element);
2048 TypeIndex TI, LVElement *Element) {
2050 printTypeBegin(Record, TI, Element, StreamTPI);
2058 LVScopeEnumeration *Scope = static_cast<LVScopeEnumeration *>(Element);
2106 TypeIndex TI, LVElement *Element) {
2108 printTypeBegin(Record, TI, Element, StreamTPI);
2112 if (Error Err = visitFieldListMemberStream(TI, Element, FieldList.Data))
2120 TypeIndex TI, LVElement *Element) {
2123 printTypeBegin(Record, TI, Element, StreamIPI);
2132 if (LVScope *FunctionDcl = static_cast<LVScope *>(Element)) {
2135 // 'Element' points to the created 'abstract' (out-of-line) function.
2165 TypeIndex TI, LVElement *Element) {
2167 printTypeBegin(Record, TI, Element, StreamTPI);
2175 TypeIndex TI, LVElement *Element) {
2178 printTypeBegin(Record, TI, Element, StreamIPI);
2185 LVScope *FunctionDcl = static_cast<LVScope *>(Element);
2189 // 'Element' points to the created 'abstract' (out-of-line) function.
2198 if (Error Err = finishVisitation(CVFunction, TIFunctionType, Element))
2207 LVElement *Element) {
2209 printTypeBegin(Record, TI, Element, StreamTPI);
2219 if (LVScope *MemberFunction = static_cast<LVScope *>(Element)) {
2254 TypeIndex TI, LVElement *Element) {
2256 printTypeBegin(Record, TI, Element, StreamTPI);
2264 if (Error Err = visitKnownMember(Record, Method, TI, Element))
2273 TypeIndex TI, LVElement *Element) {
2275 printTypeBegin(Record, TI, Element, StreamTPI);
2291 LVType *LastLink = static_cast<LVType *>(Element);
2334 TypeIndex TI, LVElement *Element) {
2336 printTypeBegin(Record, TI, Element, StreamTPI);
2355 LVType *Pointer = static_cast<LVType *>(Element);
2417 TypeIndex TI, LVElement *Element) {
2419 printTypeBegin(Record, TI, Element, StreamTPI);
2429 if (LVScope *FunctionDcl = static_cast<LVScope *>(Element)) {
2448 TypeIndex TI, LVElement *Element) {
2450 printTypeBegin(Record, TI, Element, StreamTPI);
2460 LVScopeAggregate *Scope = static_cast<LVScopeAggregate *>(Element);
2495 TypeIndex TI, LVElement *Element) {
2497 printTypeBegin(Record, TI, Element, StreamTPI);
2508 TypeIndex TI, LVElement *Element) {
2510 printTypeBegin(Record, TI, Element, StreamTPI);
2525 TypeIndex TI, LVElement *Element) {
2527 printTypeBegin(Record, TI, Element, StreamTPI);
2537 TypeIndex TI, LVElement *Element) {
2540 printTypeBegin(Record, TI, Element, StreamIPI);
2554 TypeIndex TI, LVElement *Element) {
2566 if (LVScope *Scope = Element->getParentScope())
2567 Scope->removeElement(Element);
2568 Namespace->addElement(Element);
2577 TypeIndex TI, LVElement *Element) {
2591 TypeIndex TI, LVElement *Element) {
2594 printTypeBegin(Record, TI, Element, StreamIPI);
2607 TypeIndex TI, LVElement *Element) {
2609 printTypeBegin(Record, TI, Element, StreamTPI);
2622 TypeIndex TI, LVElement *Element) {
2624 printTypeBegin(Record, TI, Element, StreamTPI);
2640 LVElement *Element) {
2642 printMemberBegin(Record, TI, Element, StreamTPI);
2654 static_cast<LVScope *>(Element)->addElement(Symbol);
2663 LVElement *Element) {
2665 printMemberBegin(Record, TI, Element, StreamTPI);
2673 createDataMember(Record, static_cast<LVScope *>(Element), Field.getName(),
2681 LVElement *Element) {
2683 printMemberBegin(Record, TI, Element, StreamTPI);
2695 static_cast<LVScope *>(Element)->addElement(CurrentType);
2704 TypeIndex TI, LVElement *Element) {
2706 printMemberBegin(Record, TI, Element, StreamTPI);
2716 LVElement *Element) {
2718 printMemberBegin(Record, TI, Element, StreamTPI);
2728 LVScope *Scope = static_cast<LVScope *>(Element);
2732 // 'Element' is an aggregate type that may contains this nested type
2761 LVElement *Element) {
2763 printMemberBegin(Record, TI, Element, StreamTPI);
2778 static_cast<LVScope *>(Element)->addElement(MemberFunction);
2807 TypeIndex TI, LVElement *Element) {
2809 printMemberBegin(Record, TI, Element, StreamTPI);
2821 if (Error Err = finishVisitation(CVMethods, Method.getMethodList(), Element))
2830 TypeIndex TI, LVElement *Element) {
2832 printMemberBegin(Record, TI, Element, StreamTPI);
2839 createDataMember(Record, static_cast<LVScope *>(Element), Field.getName(),
2847 LVElement *Element) {
2849 printMemberBegin(Record, TI, Element, StreamTPI);
2859 TypeIndex TI, LVElement *Element) {
2861 printMemberBegin(Record, TI, Element, StreamTPI);
2876 static_cast<LVScope *>(Element)->addElement(Symbol);
2884 TypeIndex TI, LVElement *Element) {
2896 visitKnownMember<Name##Record>(Record, Callbacks, TI, Element)) \
2914 LVElement *Element) {
2922 if (Error Err = visitKnownRecord<Name##Record>(Record, TI, Element)) \
2938 TypeIndex TI, LVElement *Element, ArrayRef<uint8_t> FieldList) {
2952 if (Error Err = visitMemberRecord(Record, Pipeline, TI, Element))
3135 LVElement *Element = Shared->TypeRecords.find(StreamTPI, TI);
3136 if (!Element) {
3140 Element = createElement(Kind);
3141 Element->setIsFinalized();
3142 Shared->TypeRecords.add(StreamTPI, (TypeIndex)Kind, Kind, Element);
3143 Element->setOffset(Kind);
3144 return Element;
3148 Element = createElement(Kind);
3149 Shared->TypeRecords.add(StreamTPI, TI, Kind, Element);
3150 Element->setOffset(TI.getIndex());
3151 Element->setOffsetFromTypeIndex();
3152 return Element;
3161 Element->setOffset(TI.getIndex());
3162 Element->setOffsetFromTypeIndex();
3163 return Element;
3195 LVSymbol *LVLogicalVisitor::createParameter(LVElement *Element, StringRef Name,
3202 Parameter->setType(Element);
3219 if (LVElement *Element = Shared->TypeRecords.find(StreamTPI, TIR))
3220 return static_cast<LVType *>(Element);
3235 if (LVElement *Element = Shared->TypeRecords.find(StreamTPI, TI))
3236 return static_cast<LVType *>(Element);
3247 void LVLogicalVisitor::createParents(StringRef ScopedName, LVElement *Element) {
3313 if (Aggregate && !Element->getIsScopedAlready()) {
3314 Aggregate->addElement(Element);
3315 Element->setIsScopedAlready();
3325 LVElement *Element = Shared->TypeRecords.find(StreamIdx, TI);
3326 if (!Element) {
3342 if (Element->getIsFinalized())
3343 return Element;
3347 Parent->addElement(Element);
3352 if (Error Err = finishVisitation(CVRecord, TI, Element)) {
3356 Element->setIsFinalized();
3357 return Element;
3379 if (LVElement *Element = Shared->TypeRecords.find(
3381 Element->setLineNumber(Line.getLineNumber());
3382 Element->setFilenameIndex(