Home
last modified time | relevance | path

Searched refs:TypeIndex (Results 1 – 25 of 94) sorted by relevance

1234

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/CodeView/
H A DTypeIndex.h95 class TypeIndex {
103 TypeIndex() : Index(static_cast<uint32_t>(SimpleTypeKind::None)) {} in TypeIndex() function
104 explicit TypeIndex(uint32_t Index) : Index(Index) {} in TypeIndex() function
105 explicit TypeIndex(SimpleTypeKind Kind) in TypeIndex() function
107 TypeIndex(SimpleTypeKind Kind, SimpleTypeMode Mode) in TypeIndex() function
122 static TypeIndex fromArrayIndex(uint32_t Index) { in fromArrayIndex()
123 return TypeIndex(Index + FirstNonSimpleIndex); in fromArrayIndex()
126 static TypeIndex fromDecoratedArrayIndex(bool IsItem, uint32_t Index) { in fromDecoratedArrayIndex()
127 return TypeIndex((Index + FirstNonSimpleIndex) | in fromDecoratedArrayIndex()
131 TypeIndex removeDecoration() { in removeDecoration()
[all …]
H A DTypeRecord.h104 MemberPointerInfo(TypeIndex ContainingType, in MemberPointerInfo()
108 TypeIndex getContainingType() const { return ContainingType; } in getContainingType()
113 TypeIndex ContainingType;
133 ModifierRecord(TypeIndex ModifiedType, ModifierOptions Modifiers) in ModifierRecord()
137 TypeIndex getModifiedType() const { return ModifiedType; } in getModifiedType()
140 TypeIndex ModifiedType;
149 ProcedureRecord(TypeIndex ReturnType, CallingConvention CallConv, in ProcedureRecord()
151 TypeIndex ArgumentList) in ProcedureRecord()
156 TypeIndex getReturnType() const { return ReturnType; } in getReturnType()
160 TypeIndex getArgumentList() const { return ArgumentList; } in getArgumentList()
[all …]
H A DLazyRandomTypeCollection.h70 uint32_t getOffsetOfType(TypeIndex Index);
72 Optional<CVType> tryGetType(TypeIndex Index);
74 CVType getType(TypeIndex Index) override;
75 StringRef getTypeName(TypeIndex Index) override;
76 bool contains(TypeIndex Index) override;
79 Optional<TypeIndex> getFirst() override;
80 Optional<TypeIndex> getNext(TypeIndex Prev) override;
81 bool replaceType(TypeIndex &Index, CVType Data, bool Stabilize) override;
84 Error ensureTypeExists(TypeIndex Index);
85 void ensureCapacityFor(TypeIndex Index);
[all …]
H A DMergingTypeTableBuilder.h38 DenseMap<LocallyHashedType, TypeIndex> HashedRecords;
48 Optional<TypeIndex> getFirst() override;
49 Optional<TypeIndex> getNext(TypeIndex Prev) override;
50 CVType getType(TypeIndex Index) override;
51 StringRef getTypeName(TypeIndex Index) override;
52 bool contains(TypeIndex Index) override;
55 bool replaceType(TypeIndex &Index, CVType Data, bool Stabilize) override;
59 TypeIndex nextTypeIndex() const;
65 TypeIndex insertRecordAs(hash_code Hash, ArrayRef<uint8_t> &Record);
66 TypeIndex insertRecordBytes(ArrayRef<uint8_t> &Record);
[all …]
H A DGlobalTypeTableBuilder.h39 DenseMap<GloballyHashedType, TypeIndex> HashedRecords;
52 Optional<TypeIndex> getFirst() override;
53 Optional<TypeIndex> getNext(TypeIndex Prev) override;
54 CVType getType(TypeIndex Index) override;
55 StringRef getTypeName(TypeIndex Index) override;
56 bool contains(TypeIndex Index) override;
59 bool replaceType(TypeIndex &Index, CVType Data, bool Stabilize) override;
63 TypeIndex nextTypeIndex() const;
71 TypeIndex insertRecordAs(GloballyHashedType Hash, size_t RecordSize, in insertRecordAs()
88 Result.first->getSecond() = TypeIndex(SimpleTypeKind::NotTranslated); in insertRecordAs()
[all …]
H A DAppendingTypeTableBuilder.h39 Optional<TypeIndex> getFirst() override;
40 Optional<TypeIndex> getNext(TypeIndex Prev) override;
41 CVType getType(TypeIndex Index) override;
42 StringRef getTypeName(TypeIndex Index) override;
43 bool contains(TypeIndex Index) override;
46 bool replaceType(TypeIndex &Index, CVType Data, bool Stabilize) override;
50 TypeIndex nextTypeIndex() const;
55 TypeIndex insertRecordBytes(ArrayRef<uint8_t> &Record);
56 TypeIndex insertRecord(ContinuationRecordBuilder &Builder);
58 template <typename T> TypeIndex writeLeafType(T &Record) { in writeLeafType()
H A DTypeCollection.h24 virtual Optional<TypeIndex> getFirst() = 0;
25 virtual Optional<TypeIndex> getNext(TypeIndex Prev) = 0;
27 virtual CVType getType(TypeIndex Index) = 0;
28 virtual StringRef getTypeName(TypeIndex Index) = 0;
29 virtual bool contains(TypeIndex Index) = 0;
32 virtual bool replaceType(TypeIndex &Index, CVType Data, bool Stabilize) = 0;
35 Optional<TypeIndex> Next = getFirst(); in ForEachRecord()
38 TypeIndex N = *Next; in ForEachRecord()
H A DTypeStreamMerger.h20 class TypeIndex; variable
39 SmallVectorImpl<TypeIndex> &SourceToDest,
63 Error mergeIdRecords(MergingTypeTableBuilder &Dest, ArrayRef<TypeIndex> Types,
64 SmallVectorImpl<TypeIndex> &SourceToDest,
84 SmallVectorImpl<TypeIndex> &SourceToDest,
90 SmallVectorImpl<TypeIndex> &SourceToDest,
96 SmallVectorImpl<TypeIndex> &SourceToDest,
101 Error mergeIdRecords(GlobalTypeTableBuilder &Dest, ArrayRef<TypeIndex> Types,
102 SmallVectorImpl<TypeIndex> &SourceToDest,
H A DTypeTableCollection.h24 Optional<TypeIndex> getFirst() override;
25 Optional<TypeIndex> getNext(TypeIndex Prev) override;
27 CVType getType(TypeIndex Index) override;
28 StringRef getTypeName(TypeIndex Index) override;
29 bool contains(TypeIndex Index) override;
32 bool replaceType(TypeIndex &Index, CVType Data, bool Stabilize) override;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/DebugInfo/CodeView/
H A DTypeStreamMerger.cpp24 static inline size_t slotForIndex(TypeIndex Idx) { in slotForIndex()
26 return Idx.getIndex() - TypeIndex::FirstNonSimpleIndex; in slotForIndex()
65 explicit TypeStreamMerger(SmallVectorImpl<TypeIndex> &SourceToDest) in TypeStreamMerger()
75 static const TypeIndex Untranslated;
82 ArrayRef<TypeIndex> TypeSourceToDest,
94 ArrayRef<TypeIndex> TypeSourceToDest,
108 void addMapping(TypeIndex Idx);
110 inline bool remapTypeIndex(TypeIndex &Idx) { in remapTypeIndex()
122 inline bool remapItemIndex(TypeIndex &Idx) { in remapItemIndex()
138 inline bool remapIndex(TypeIndex &Idx, ArrayRef<TypeIndex> Map) { in remapIndex()
[all …]
H A DAppendingTypeTableBuilder.cpp30 TypeIndex AppendingTypeTableBuilder::nextTypeIndex() const { in nextTypeIndex()
31 return TypeIndex::fromArrayIndex(SeenRecords.size()); in nextTypeIndex()
39 Optional<TypeIndex> AppendingTypeTableBuilder::getFirst() { in getFirst()
43 return TypeIndex(TypeIndex::FirstNonSimpleIndex); in getFirst()
46 Optional<TypeIndex> AppendingTypeTableBuilder::getNext(TypeIndex Prev) { in getNext()
52 CVType AppendingTypeTableBuilder::getType(TypeIndex Index){ in getType()
56 StringRef AppendingTypeTableBuilder::getTypeName(TypeIndex Index) { in getTypeName()
60 bool AppendingTypeTableBuilder::contains(TypeIndex Index) { in contains()
84 TypeIndex
86 TypeIndex NewTI = nextTypeIndex(); in insertRecordBytes()
[all …]
H A DLazyRandomTypeCollection.cpp83 uint32_t LazyRandomTypeCollection::getOffsetOfType(TypeIndex Index) { in getOffsetOfType()
90 CVType LazyRandomTypeCollection::getType(TypeIndex Index) { in getType()
100 Optional<CVType> LazyRandomTypeCollection::tryGetType(TypeIndex Index) { in tryGetType()
113 StringRef LazyRandomTypeCollection::getTypeName(TypeIndex Index) { in getTypeName()
115 return TypeIndex::simpleTypeName(Index); in getTypeName()
135 bool LazyRandomTypeCollection::contains(TypeIndex Index) { in contains()
150 Error LazyRandomTypeCollection::ensureTypeExists(TypeIndex TI) { in ensureTypeExists()
157 void LazyRandomTypeCollection::ensureCapacityFor(TypeIndex Index) { in ensureCapacityFor()
170 Error LazyRandomTypeCollection::visitRangeForType(TypeIndex TI) { in visitRangeForType()
176 [](TypeIndex Value, const TypeIndexOffset &IO) { in visitRangeForType()
[all …]
H A DMergingTypeTableBuilder.cpp30 TypeIndex MergingTypeTableBuilder::nextTypeIndex() const { in nextTypeIndex()
31 return TypeIndex::fromArrayIndex(SeenRecords.size()); in nextTypeIndex()
41 Optional<TypeIndex> MergingTypeTableBuilder::getFirst() { in getFirst()
45 return TypeIndex(TypeIndex::FirstNonSimpleIndex); in getFirst()
48 Optional<TypeIndex> MergingTypeTableBuilder::getNext(TypeIndex Prev) { in getNext()
54 CVType MergingTypeTableBuilder::getType(TypeIndex Index) { in getType()
59 StringRef MergingTypeTableBuilder::getTypeName(TypeIndex Index) { in getTypeName()
63 bool MergingTypeTableBuilder::contains(TypeIndex Index) { in contains()
90 TypeIndex MergingTypeTableBuilder::insertRecordAs(hash_code Hash, in insertRecordAs()
107 TypeIndex ActualTI = Result.first->second; in insertRecordAs()
[all …]
H A DGlobalTypeTableBuilder.cpp30 TypeIndex GlobalTypeTableBuilder::nextTypeIndex() const { in nextTypeIndex()
31 return TypeIndex::fromArrayIndex(SeenRecords.size()); in nextTypeIndex()
41 Optional<TypeIndex> GlobalTypeTableBuilder::getFirst() { in getFirst()
45 return TypeIndex(TypeIndex::FirstNonSimpleIndex); in getFirst()
48 Optional<TypeIndex> GlobalTypeTableBuilder::getNext(TypeIndex Prev) { in getNext()
54 CVType GlobalTypeTableBuilder::getType(TypeIndex Index) { in getType()
59 StringRef GlobalTypeTableBuilder::getTypeName(TypeIndex Index) { in getTypeName()
63 bool GlobalTypeTableBuilder::contains(TypeIndex Index) { in contains()
94 TypeIndex GlobalTypeTableBuilder::insertRecordBytes(ArrayRef<uint8_t> Record) { in insertRecordBytes()
105 TypeIndex
[all …]
H A DTypeTableCollection.cpp23 Optional<TypeIndex> TypeTableCollection::getFirst() { in getFirst()
26 return TypeIndex::fromArrayIndex(0); in getFirst()
29 Optional<TypeIndex> TypeTableCollection::getNext(TypeIndex Prev) { in getNext()
37 CVType TypeTableCollection::getType(TypeIndex Index) { in getType()
42 StringRef TypeTableCollection::getTypeName(TypeIndex Index) { in getTypeName()
44 return TypeIndex::simpleTypeName(Index); in getTypeName()
54 bool TypeTableCollection::contains(TypeIndex Index) { in contains()
62 bool TypeTableCollection::replaceType(TypeIndex &Index, CVType Data, in replaceType()
H A DTypeHashing.cpp50 auto RefData = RecordData.slice(Ref.Offset, Ref.Count * sizeof(TypeIndex)); in hashType()
53 ArrayRef<TypeIndex> Indices( in hashType()
54 reinterpret_cast<const TypeIndex *>(RefData.data()), Ref.Count); in hashType()
55 for (TypeIndex TI : Indices) { in hashType()
59 BytesToHash = makeArrayRef(IndexBytes, sizeof(TypeIndex)); in hashType()
72 Off = Ref.Offset + Ref.Count * sizeof(TypeIndex); in hashType()
H A DTypeIndex.cpp70 StringRef TypeIndex::simpleTypeName(TypeIndex TI) { in simpleTypeName()
76 if (TI == TypeIndex::NullptrT()) in simpleTypeName()
93 TypeIndex TI, TypeCollection &Types) { in printTypeIndex()
97 TypeName = TypeIndex::simpleTypeName(TI); in printTypeIndex()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.h228 codeview::TypeIndex getFuncIdForSubprogram(const DISubprogram *SP);
250 DenseMap<std::pair<const DINode *, const DIType *>, codeview::TypeIndex>
255 DenseMap<const DICompositeType *, codeview::TypeIndex> CompleteTypeIndices;
264 codeview::TypeIndex VBPType;
378 codeview::TypeIndex getTypeIndex(const DIType *Ty,
381 codeview::TypeIndex
385 codeview::TypeIndex getTypeIndexForReferenceTo(const DIType *Ty);
387 codeview::TypeIndex getMemberFunctionType(const DISubprogram *SP,
390 codeview::TypeIndex getScopeIndex(const DIScope *Scope);
392 codeview::TypeIndex getVBPTypeIndex();
[all …]
H A DCodeViewDebug.cpp105 std::string getTypeName(TypeIndex TI) override { in getTypeName()
109 TypeName = std::string(TypeIndex::simpleTypeName(TI)); in getTypeName()
342 TypeIndex CodeViewDebug::getScopeIndex(const DIScope *Scope) { in getScopeIndex()
345 return TypeIndex(); in getScopeIndex()
356 StringIdRecord SID(TypeIndex(), ScopeName); in getScopeIndex()
380 TypeIndex CodeViewDebug::getFuncIdForSubprogram(const DISubprogram *SP) { in getFuncIdForSubprogram()
394 TypeIndex TI; in getFuncIdForSubprogram()
399 TypeIndex ClassType = getTypeIndex(Class); in getFuncIdForSubprogram()
405 TypeIndex ParentScope = getScopeIndex(Scope); in getFuncIdForSubprogram()
444 TypeIndex CodeViewDebug::getMemberFunctionType(const DISubprogram *SP, in getMemberFunctionType()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/DebugInfo/PDB/Native/
H A DTpiStream.cpp152 TypeIndex TIB{Header->TypeIndexBegin}; in buildHashMap()
153 TypeIndex TIE{Header->TypeIndexEnd}; in buildHashMap()
160 std::vector<TypeIndex> TpiStream::findRecordsByName(StringRef Name) const { in findRecordsByName()
168 std::vector<TypeIndex> Result; in findRecordsByName()
169 for (TypeIndex TI : HashMap[Bucket]) { in findRecordsByName()
179 Expected<TypeIndex>
180 TpiStream::findFullDeclForForwardRef(TypeIndex ForwardRefTI) const { in findFullDeclForForwardRef()
194 for (TypeIndex TI : HashMap[BucketIdx]) { in findFullDeclForForwardRef()
221 codeview::CVType TpiStream::getType(codeview::TypeIndex Index) { in getType()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/PDB/Native/
H A DSymbolCache.h44 mutable DenseMap<codeview::TypeIndex, SymIndexId> TypeIndexToSymbolId;
49 mutable DenseMap<std::pair<codeview::TypeIndex, uint32_t>, SymIndexId>
93 SymIndexId createSymbolForType(codeview::TypeIndex TI, codeview::CVType CVT, in createSymbolForType()
106 SymIndexId createSymbolForModifiedType(codeview::TypeIndex ModifierTI,
109 SymIndexId createSimpleType(codeview::TypeIndex TI,
148 SymIndexId findSymbolByTypeIndex(codeview::TypeIndex TI) const;
151 SymIndexId getOrCreateFieldListMember(codeview::TypeIndex FieldListTI, in getOrCreateFieldListMember()
155 std::pair<codeview::TypeIndex, uint32_t> Key{FieldListTI, Index}; in getOrCreateFieldListMember()
H A DTpiStream.h60 Expected<codeview::TypeIndex>
61 findFullDeclForForwardRef(codeview::TypeIndex ForwardRefTI) const;
63 std::vector<codeview::TypeIndex> findRecordsByName(StringRef Name) const;
65 codeview::CVType getType(codeview::TypeIndex Index);
90 std::vector<std::vector<codeview::TypeIndex>> HashMap;
H A DNativeTypeFunctionSig.h30 codeview::TypeIndex TI, codeview::ProcedureRecord Proc);
33 codeview::TypeIndex TI,
57 void initializeArgList(codeview::TypeIndex ArgListTI);
65 codeview::TypeIndex Index;
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-pdbutil/
H A DTypeReferenceTracker.cpp25 for (Optional<TypeIndex> TI = Types.getFirst(); TI; TI = Types.getNext(*TI)) in getNumRecordsInCollection()
88 void TypeReferenceTracker::addOneTypeRef(TiRefKind RefKind, TypeIndex RefTI) { in addOneTypeRef()
114 ArrayRef<TypeIndex> TIs( in addReferencedTypes()
115 reinterpret_cast<const TypeIndex *>(ByteSlice.data()), in addReferencedTypes()
120 for (TypeIndex RefTI : TIs) in addReferencedTypes()
128 TypeIndex RefTI; in markReferencedTypes()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/Utils/
H A DTFUtils.h59 int typeIndex() const { return TypeIndex; } in typeIndex()
64 TypeIndex == Other.TypeIndex && Shape == Other.Shape;
75 return getDataType<T>() == TypeIndex; in isElementType()
79 TensorSpec(const std::string &Name, int Port, int TypeIndex,
88 int TypeIndex = 0; variable

1234