Lines Matching defs:Element

136            LVElement *Element = nullptr);
331 LVElement *Element) {
335 std::forward_as_tuple(Kind, Element));
347 LVElement *Element = nullptr;
350 Element = Iter->second.second;
351 if (Element || !Create)
352 return Element;
355 Element = Shared->Visitor->createElement(Iter->second.first);
356 if (Element) {
357 Element->setOffset(TI.getIndex());
358 Element->setOffsetFromTypeIndex();
359 Target[TI].second = Element;
362 return Element;
844 LVElement *Element = LogicalVisitor->getElement(StreamTPI, Local.Type);
845 if (Element && Element->getIsScoped()) {
855 if (!Element->getParentScope()) {
856 Parent->addElement(Element);
857 Element->updateLevel(Parent);
860 Symbol->setType(Element);
894 LVElement *Element = LogicalVisitor->getElement(StreamTPI, Local.Type);
895 if (Element && Element->getIsScoped()) {
905 if (!Element->getParentScope()) {
906 Parent->addElement(Element);
907 Element->updateLevel(Parent);
910 Symbol->setType(Element);
1438 LVElement *Element = LogicalVisitor->getElement(StreamTPI, Local.Type);
1439 if (Element && Element->getIsScoped()) {
1445 Parent->addElement(Element);
1446 Element->updateLevel(Parent);
1448 Symbol->setType(Element);
1745 LVElement *Element, uint32_t StreamIdx) {
1753 W.startLine() << "Element: " << HexNumber(Element->getOffset()) << " "
1754 << Element->getName() << "\n";
1763 LVElement *Element,
1772 W.startLine() << "Element: " << HexNumber(Element->getOffset()) << " "
1773 << Element->getName() << "\n";
1791 TypeIndex TI, LVElement *Element) {
1795 printTypeBegin(Record, TI, Element, StreamTPI);
1803 LVScope *Function = static_cast<LVScope *>(Element);
1814 TypeIndex TI, LVElement *Element) {
1816 printTypeBegin(Record, TI, Element, StreamTPI);
1824 if (Element->getIsFinalized())
1826 Element->setIsFinalized();
1828 LVScopeArray *Array = static_cast<LVScopeArray *>(Element);
1932 TypeIndex TI, LVElement *Element) {
1934 printTypeBegin(Record, TI, Element, StreamTPI);
1941 Element->setType(getElement(StreamTPI, BF.getType()));
1942 Element->setBitSize(BF.getBitSize());
1948 TypeIndex TI, LVElement *Element) {
1950 printTypeBegin(Record, TI, Element, StreamIPI);
1958 // The given 'Element' refers to the current compilation unit.
1965 Element->setName(Name);
1972 TypeIndex TI, LVElement *Element) {
1974 printTypeBegin(Record, TI, Element, StreamTPI);
1986 if (Element->getIsFinalized())
1988 Element->setIsFinalized();
1990 LVScopeAggregate *Scope = static_cast<LVScopeAggregate *>(Element);
2042 TypeIndex TI, LVElement *Element) {
2044 printTypeBegin(Record, TI, Element, StreamTPI);
2052 LVScopeEnumeration *Scope = static_cast<LVScopeEnumeration *>(Element);
2100 TypeIndex TI, LVElement *Element) {
2102 printTypeBegin(Record, TI, Element, StreamTPI);
2106 if (Error Err = visitFieldListMemberStream(TI, Element, FieldList.Data))
2114 TypeIndex TI, LVElement *Element) {
2117 printTypeBegin(Record, TI, Element, StreamIPI);
2126 if (LVScope *FunctionDcl = static_cast<LVScope *>(Element)) {
2129 // 'Element' points to the created 'abstract' (out-of-line) function.
2159 TypeIndex TI, LVElement *Element) {
2161 printTypeBegin(Record, TI, Element, StreamTPI);
2169 TypeIndex TI, LVElement *Element) {
2172 printTypeBegin(Record, TI, Element, StreamIPI);
2179 LVScope *FunctionDcl = static_cast<LVScope *>(Element);
2183 // 'Element' points to the created 'abstract' (out-of-line) function.
2192 if (Error Err = finishVisitation(CVFunction, TIFunctionType, Element))
2201 LVElement *Element) {
2203 printTypeBegin(Record, TI, Element, StreamTPI);
2213 if (LVScope *MemberFunction = static_cast<LVScope *>(Element)) {
2248 TypeIndex TI, LVElement *Element) {
2250 printTypeBegin(Record, TI, Element, StreamTPI);
2258 if (Error Err = visitKnownMember(Record, Method, TI, Element))
2267 TypeIndex TI, LVElement *Element) {
2269 printTypeBegin(Record, TI, Element, StreamTPI);
2285 LVType *LastLink = static_cast<LVType *>(Element);
2328 TypeIndex TI, LVElement *Element) {
2330 printTypeBegin(Record, TI, Element, StreamTPI);
2349 LVType *Pointer = static_cast<LVType *>(Element);
2411 TypeIndex TI, LVElement *Element) {
2413 printTypeBegin(Record, TI, Element, StreamTPI);
2423 if (LVScope *FunctionDcl = static_cast<LVScope *>(Element)) {
2442 TypeIndex TI, LVElement *Element) {
2444 printTypeBegin(Record, TI, Element, StreamTPI);
2454 LVScopeAggregate *Scope = static_cast<LVScopeAggregate *>(Element);
2489 TypeIndex TI, LVElement *Element) {
2491 printTypeBegin(Record, TI, Element, StreamTPI);
2502 TypeIndex TI, LVElement *Element) {
2504 printTypeBegin(Record, TI, Element, StreamTPI);
2519 TypeIndex TI, LVElement *Element) {
2521 printTypeBegin(Record, TI, Element, StreamTPI);
2531 TypeIndex TI, LVElement *Element) {
2534 printTypeBegin(Record, TI, Element, StreamIPI);
2548 TypeIndex TI, LVElement *Element) {
2560 if (LVScope *Scope = Element->getParentScope())
2561 Scope->removeElement(Element);
2562 Namespace->addElement(Element);
2571 TypeIndex TI, LVElement *Element) {
2585 TypeIndex TI, LVElement *Element) {
2588 printTypeBegin(Record, TI, Element, StreamIPI);
2601 TypeIndex TI, LVElement *Element) {
2603 printTypeBegin(Record, TI, Element, StreamTPI);
2616 TypeIndex TI, LVElement *Element) {
2618 printTypeBegin(Record, TI, Element, StreamTPI);
2634 LVElement *Element) {
2636 printMemberBegin(Record, TI, Element, StreamTPI);
2648 static_cast<LVScope *>(Element)->addElement(Symbol);
2657 LVElement *Element) {
2659 printMemberBegin(Record, TI, Element, StreamTPI);
2667 createDataMember(Record, static_cast<LVScope *>(Element), Field.getName(),
2675 LVElement *Element) {
2677 printMemberBegin(Record, TI, Element, StreamTPI);
2689 static_cast<LVScope *>(Element)->addElement(CurrentType);
2698 TypeIndex TI, LVElement *Element) {
2700 printMemberBegin(Record, TI, Element, StreamTPI);
2710 LVElement *Element) {
2712 printMemberBegin(Record, TI, Element, StreamTPI);
2722 LVScope *Scope = static_cast<LVScope *>(Element);
2726 // 'Element' is an aggregate type that may contains this nested type
2755 LVElement *Element) {
2757 printMemberBegin(Record, TI, Element, StreamTPI);
2772 static_cast<LVScope *>(Element)->addElement(MemberFunction);
2801 TypeIndex TI, LVElement *Element) {
2803 printMemberBegin(Record, TI, Element, StreamTPI);
2815 if (Error Err = finishVisitation(CVMethods, Method.getMethodList(), Element))
2824 TypeIndex TI, LVElement *Element) {
2826 printMemberBegin(Record, TI, Element, StreamTPI);
2833 createDataMember(Record, static_cast<LVScope *>(Element), Field.getName(),
2841 LVElement *Element) {
2843 printMemberBegin(Record, TI, Element, StreamTPI);
2853 TypeIndex TI, LVElement *Element) {
2855 printMemberBegin(Record, TI, Element, StreamTPI);
2870 static_cast<LVScope *>(Element)->addElement(Symbol);
2878 TypeIndex TI, LVElement *Element) {
2890 visitKnownMember<Name##Record>(Record, Callbacks, TI, Element)) \
2908 LVElement *Element) {
2916 if (Error Err = visitKnownRecord<Name##Record>(Record, TI, Element)) \
2932 TypeIndex TI, LVElement *Element, ArrayRef<uint8_t> FieldList) {
2946 if (Error Err = visitMemberRecord(Record, Pipeline, TI, Element))
3129 LVElement *Element = Shared->TypeRecords.find(StreamTPI, TI);
3130 if (!Element) {
3134 Element = createElement(Kind);
3135 Element->setIsFinalized();
3136 Shared->TypeRecords.add(StreamTPI, (TypeIndex)Kind, Kind, Element);
3137 Element->setOffset(Kind);
3138 return Element;
3142 Element = createElement(Kind);
3143 Shared->TypeRecords.add(StreamTPI, TI, Kind, Element);
3144 Element->setOffset(TI.getIndex());
3145 Element->setOffsetFromTypeIndex();
3146 return Element;
3155 Element->setOffset(TI.getIndex());
3156 Element->setOffsetFromTypeIndex();
3157 return Element;
3189 LVSymbol *LVLogicalVisitor::createParameter(LVElement *Element, StringRef Name,
3196 Parameter->setType(Element);
3213 if (LVElement *Element = Shared->TypeRecords.find(StreamTPI, TIR))
3214 return static_cast<LVType *>(Element);
3229 if (LVElement *Element = Shared->TypeRecords.find(StreamTPI, TI))
3230 return static_cast<LVType *>(Element);
3241 void LVLogicalVisitor::createParents(StringRef ScopedName, LVElement *Element) {
3307 if (Aggregate && !Element->getIsScopedAlready()) {
3308 Aggregate->addElement(Element);
3309 Element->setIsScopedAlready();
3319 LVElement *Element = Shared->TypeRecords.find(StreamIdx, TI);
3320 if (!Element) {
3336 if (Element->getIsFinalized())
3337 return Element;
3341 Parent->addElement(Element);
3346 if (Error Err = finishVisitation(CVRecord, TI, Element)) {
3350 Element->setIsFinalized();
3351 return Element;
3373 if (LVElement *Element = Shared->TypeRecords.find(
3375 Element->setLineNumber(Line.getLineNumber());
3376 Element->setFilenameIndex(