Home
last modified time | relevance | path

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

12345

/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DTypeIndex.h97 class TypeIndex {
105 TypeIndex() : Index(static_cast<uint32_t>(SimpleTypeKind::None)) {} in TypeIndex() function
106 explicit TypeIndex(uint32_t Index) : Index(Index) {} in TypeIndex() function
107 explicit TypeIndex(SimpleTypeKind Kind) in TypeIndex() function
109 TypeIndex(SimpleTypeKind Kind, SimpleTypeMode Mode) in TypeIndex() function
124 static TypeIndex fromArrayIndex(uint32_t Index) { in fromArrayIndex()
125 return TypeIndex(Index + FirstNonSimpleIndex); in fromArrayIndex()
128 static TypeIndex fromDecoratedArrayIndex(bool IsItem, uint32_t Index) { in fromDecoratedArrayIndex()
129 return TypeIndex((Index + FirstNonSimpleIndex) | in fromDecoratedArrayIndex()
133 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;
134 ModifierRecord(TypeIndex ModifiedType, ModifierOptions Modifiers) in ModifierRecord()
138 TypeIndex getModifiedType() const { return ModifiedType; } in getModifiedType()
141 TypeIndex ModifiedType;
150 ProcedureRecord(TypeIndex ReturnType, CallingConvention CallConv, in ProcedureRecord()
152 TypeIndex ArgumentList) in ProcedureRecord()
157 TypeIndex getReturnType() const { return ReturnType; } in getReturnType()
161 TypeIndex getArgumentList() const { return ArgumentList; } in getArgumentList()
[all …]
H A DLazyRandomTypeCollection.h70 uint32_t getOffsetOfType(TypeIndex Index);
72 std::optional<CVType> tryGetType(TypeIndex Index);
74 CVType getType(TypeIndex Index) override;
75 StringRef getTypeName(TypeIndex Index) override;
76 bool contains(TypeIndex Index) override;
79 std::optional<TypeIndex> getFirst() override;
80 std::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.h39 DenseMap<LocallyHashedType, TypeIndex> HashedRecords;
49 std::optional<TypeIndex> getFirst() override;
50 std::optional<TypeIndex> getNext(TypeIndex Prev) override;
51 CVType getType(TypeIndex Index) override;
52 StringRef getTypeName(TypeIndex Index) override;
53 bool contains(TypeIndex Index) override;
56 bool replaceType(TypeIndex &Index, CVType Data, bool Stabilize) override;
60 TypeIndex nextTypeIndex() const;
66 TypeIndex insertRecordAs(hash_code Hash, ArrayRef<uint8_t> &Record);
67 TypeIndex insertRecordBytes(ArrayRef<uint8_t> &Record);
[all …]
H A DGlobalTypeTableBuilder.h40 DenseMap<GloballyHashedType, TypeIndex> HashedRecords;
53 std::optional<TypeIndex> getFirst() override;
54 std::optional<TypeIndex> getNext(TypeIndex Prev) override;
55 CVType getType(TypeIndex Index) override;
56 StringRef getTypeName(TypeIndex Index) override;
57 bool contains(TypeIndex Index) override;
60 bool replaceType(TypeIndex &Index, CVType Data, bool Stabilize) override;
64 TypeIndex nextTypeIndex() const;
72 TypeIndex insertRecordAs(GloballyHashedType Hash, size_t RecordSize, in insertRecordAs()
89 Result.first->getSecond() = TypeIndex(SimpleTypeKind::NotTranslated); in insertRecordAs()
[all …]
H A DAppendingTypeTableBuilder.h40 std::optional<TypeIndex> getFirst() override;
41 std::optional<TypeIndex> getNext(TypeIndex Prev) override;
42 CVType getType(TypeIndex Index) override;
43 StringRef getTypeName(TypeIndex Index) override;
44 bool contains(TypeIndex Index) override;
47 bool replaceType(TypeIndex &Index, CVType Data, bool Stabilize) override;
51 TypeIndex nextTypeIndex() const;
56 TypeIndex insertRecordBytes(ArrayRef<uint8_t> &Record);
57 TypeIndex insertRecord(ContinuationRecordBuilder &Builder);
59 template <typename T> TypeIndex writeLeafType(T &Record) { in writeLeafType()
H A DTypeCollection.h24 virtual std::optional<TypeIndex> getFirst() = 0;
25 virtual std::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 std::optional<TypeIndex> Next = getFirst(); in ForEachRecord()
38 TypeIndex N = *Next; in ForEachRecord()
H A DTypeStreamMerger.h21 class TypeIndex; variable
47 SmallVectorImpl<TypeIndex> &SourceToDest,
72 ArrayRef<TypeIndex> Types,
73 SmallVectorImpl<TypeIndex> &SourceToDest,
93 SmallVectorImpl<TypeIndex> &SourceToDest,
99 SmallVectorImpl<TypeIndex> &SourceToDest,
105 SmallVectorImpl<TypeIndex> &SourceToDest,
111 ArrayRef<TypeIndex> Types,
112 SmallVectorImpl<TypeIndex> &SourceToDest,
H A DTypeTableCollection.h25 std::optional<TypeIndex> getFirst() override;
26 std::optional<TypeIndex> getNext(TypeIndex Prev) override;
28 CVType getType(TypeIndex Index) override;
29 StringRef getTypeName(TypeIndex Index) override;
30 bool contains(TypeIndex Index) override;
33 bool replaceType(TypeIndex &Index, CVType Data, bool Stabilize) override;
/freebsd/contrib/llvm-project/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;
83 ArrayRef<TypeIndex> TypeSourceToDest,
95 ArrayRef<TypeIndex> TypeSourceToDest,
109 void addMapping(TypeIndex Idx);
111 inline bool remapTypeIndex(TypeIndex &Idx) { in remapTypeIndex()
123 inline bool remapItemIndex(TypeIndex &Idx) { in remapItemIndex()
139 inline bool remapIndex(TypeIndex &Idx, ArrayRef<TypeIndex> Map) { in remapIndex()
[all …]
H A DAppendingTypeTableBuilder.cpp22 TypeIndex AppendingTypeTableBuilder::nextTypeIndex() const { in nextTypeIndex()
23 return TypeIndex::fromArrayIndex(SeenRecords.size()); in nextTypeIndex()
31 std::optional<TypeIndex> AppendingTypeTableBuilder::getFirst() { in getFirst()
35 return TypeIndex(TypeIndex::FirstNonSimpleIndex); in getFirst()
38 std::optional<TypeIndex> AppendingTypeTableBuilder::getNext(TypeIndex Prev) { in getNext()
44 CVType AppendingTypeTableBuilder::getType(TypeIndex Index){ in getType()
48 StringRef AppendingTypeTableBuilder::getTypeName(TypeIndex Index) { in getTypeName()
52 bool AppendingTypeTableBuilder::contains(TypeIndex Index) { in contains()
76 TypeIndex
78 TypeIndex NewTI = nextTypeIndex(); in insertRecordBytes()
[all …]
H A DLazyRandomTypeCollection.cpp79 uint32_t LazyRandomTypeCollection::getOffsetOfType(TypeIndex Index) { in getOffsetOfType()
86 CVType LazyRandomTypeCollection::getType(TypeIndex Index) { in getType()
96 std::optional<CVType> LazyRandomTypeCollection::tryGetType(TypeIndex Index) { in tryGetType()
109 StringRef LazyRandomTypeCollection::getTypeName(TypeIndex Index) { in getTypeName()
111 return TypeIndex::simpleTypeName(Index); in getTypeName()
131 bool LazyRandomTypeCollection::contains(TypeIndex Index) { in contains()
146 Error LazyRandomTypeCollection::ensureTypeExists(TypeIndex TI) { in ensureTypeExists()
153 void LazyRandomTypeCollection::ensureCapacityFor(TypeIndex Index) { in ensureCapacityFor()
166 Error LazyRandomTypeCollection::visitRangeForType(TypeIndex TI) { in visitRangeForType()
172 [](TypeIndex Value, const TypeIndexOffset &IO) { in visitRangeForType()
[all …]
H A DMergingTypeTableBuilder.cpp23 TypeIndex MergingTypeTableBuilder::nextTypeIndex() const { in nextTypeIndex()
24 return TypeIndex::fromArrayIndex(SeenRecords.size()); in nextTypeIndex()
34 std::optional<TypeIndex> MergingTypeTableBuilder::getFirst() { in getFirst()
38 return TypeIndex(TypeIndex::FirstNonSimpleIndex); in getFirst()
41 std::optional<TypeIndex> MergingTypeTableBuilder::getNext(TypeIndex Prev) { in getNext()
47 CVType MergingTypeTableBuilder::getType(TypeIndex Index) { in getType()
52 StringRef MergingTypeTableBuilder::getTypeName(TypeIndex Index) { in getTypeName()
56 bool MergingTypeTableBuilder::contains(TypeIndex Index) { in contains()
83 TypeIndex MergingTypeTableBuilder::insertRecordAs(hash_code Hash, in insertRecordAs()
100 TypeIndex ActualTI = Result.first->second; in insertRecordAs()
[all …]
H A DGlobalTypeTableBuilder.cpp22 TypeIndex GlobalTypeTableBuilder::nextTypeIndex() const { in nextTypeIndex()
23 return TypeIndex::fromArrayIndex(SeenRecords.size()); in nextTypeIndex()
33 std::optional<TypeIndex> GlobalTypeTableBuilder::getFirst() { in getFirst()
37 return TypeIndex(TypeIndex::FirstNonSimpleIndex); in getFirst()
40 std::optional<TypeIndex> GlobalTypeTableBuilder::getNext(TypeIndex Prev) { in getNext()
46 CVType GlobalTypeTableBuilder::getType(TypeIndex Index) { in getType()
51 StringRef GlobalTypeTableBuilder::getTypeName(TypeIndex Index) { in getTypeName()
55 bool GlobalTypeTableBuilder::contains(TypeIndex Index) { in contains()
86 TypeIndex GlobalTypeTableBuilder::insertRecordBytes(ArrayRef<uint8_t> Record) { in insertRecordBytes()
97 TypeIndex
[all …]
H A DTypeTableCollection.cpp23 std::optional<TypeIndex> TypeTableCollection::getFirst() { in getFirst()
26 return TypeIndex::fromArrayIndex(0); in getFirst()
29 std::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 = ArrayRef(IndexBytes, sizeof(TypeIndex)); in hashType()
72 Off = Ref.Offset + Ref.Count * sizeof(TypeIndex); in hashType()
H A DTypeIndex.cpp71 StringRef TypeIndex::simpleTypeName(TypeIndex TI) { in simpleTypeName()
77 if (TI == TypeIndex::NullptrT()) in simpleTypeName()
94 TypeIndex TI, TypeCollection &Types) { in printTypeIndex()
98 TypeName = TypeIndex::simpleTypeName(TI); in printTypeIndex()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Readers/
H A DLVCodeViewVisitor.h54 TypeIndex CurrentTypeIndex = TypeIndex::None();
56 void printTypeIndex(StringRef FieldName, TypeIndex TI,
69 Error visitTypeBegin(CVType &Record, TypeIndex TI) override;
151 void printTypeIndex(StringRef FieldName, TypeIndex TI) const;
268 using LVInlineeInfo = std::map<TypeIndex, LVInlineeEntry>;
271 Error visitFieldListMemberStream(TypeIndex TI, LVElement *Element,
274 LVType *createBaseType(TypeIndex TI, StringRef TypeName);
275 LVType *createPointerType(TypeIndex TI, StringRef TypeName);
276 LVSymbol *createParameter(TypeIndex T
[all...]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.h168 SmallSet<codeview::TypeIndex, 1> Inlinees;
267 codeview::TypeIndex getFuncIdForSubprogram(const DISubprogram *SP);
289 DenseMap<std::pair<const DINode *, const DIType *>, codeview::TypeIndex>
294 DenseMap<const DICompositeType *, codeview::TypeIndex> CompleteTypeIndices;
303 codeview::TypeIndex VBPType;
385 void emitInlinees(const SmallSet<codeview::TypeIndex, 1> &Inlinees);
425 codeview::TypeIndex getTypeIndex(const DIType *Ty,
428 codeview::TypeIndex
432 codeview::TypeIndex getTypeIndexForReferenceTo(const DIType *Ty);
434 codeview::TypeIndex getMemberFunctionType(const DISubprogram *SP,
[all …]
H A DCodeViewDebug.cpp97 std::string getTypeName(TypeIndex TI) override { in getTypeName()
101 TypeName = std::string(TypeIndex::simpleTypeName(TI)); in getTypeName()
341 TypeIndex CodeViewDebug::getScopeIndex(const DIScope *Scope) { in getScopeIndex()
353 return TypeIndex(); in getScopeIndex()
364 StringIdRecord SID(TypeIndex(), ScopeName); in getScopeIndex()
388 TypeIndex CodeViewDebug::getFuncIdForSubprogram(const DISubprogram *SP) { in getFuncIdForSubprogram()
402 TypeIndex TI; in getFuncIdForSubprogram()
407 TypeIndex ClassType = getTypeIndex(Class); in getFuncIdForSubprogram()
413 TypeIndex ParentScope = getScopeIndex(Scope); in getFuncIdForSubprogram()
452 TypeIndex CodeViewDebug::getMemberFunctionType(const DISubprogram *SP, in getMemberFunctionType()
[all …]
/freebsd/contrib/llvm-project/lld/COFF/
H A DDebugTypes.h31 using llvm::codeview::TypeIndex;
67 bool remapTypeIndex(TypeIndex &ti, llvm::codeview::TiRefKind refKind) const;
73 void mergeTypeRecord(TypeIndex curIndex, llvm::codeview::CVType ty);
80 TypeIndex beginIndex = TypeIndex(TypeIndex::FirstNonSimpleIndex));
129 llvm::SmallVector<TypeIndex, 0> indexMapStorage;
134 llvm::ArrayRef<TypeIndex> tpiMap;
135 llvm::ArrayRef<TypeIndex> ipiMap;
143 std::vector<std::pair<TypeIndex, TypeIndex>> funcIdToType;
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/
H A DLVCodeViewVisitor.cpp45 static TypeIndex getTrueType(TypeIndex &TI) { in getTrueType()
80 static StringRef getRecordName(LazyRandomTypeCollection &Types, TypeIndex TI) { in getRecordName()
115 using LVLineRecords = std::vector<TypeIndex>;
124 using RecordTable = std::map<TypeIndex, RecordEntry>;
128 using NameTable = std::map<StringRef, TypeIndex>;
135 void add(uint32_t StreamIdx, TypeIndex TI, TypeLeafKind Kind,
137 void add(uint32_t StreamIdx, TypeIndex TI, StringRef Name);
138 LVElement *find(uint32_t StreamIdx, TypeIndex TI, bool Create = true);
139 TypeIndex find(uint32_t StreamIdx, StringRef Name);
144 using ForwardEntry = std::pair<TypeIndex, TypeIndex>;
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegacyLegalizerInfo.h312 void setScalarAction(const unsigned Opcode, const unsigned TypeIndex, in setScalarAction() argument
316 setActions(TypeIndex, Actions, SizeAndActions); in setScalarAction()
318 void setPointerAction(const unsigned Opcode, const unsigned TypeIndex, in setPointerAction() argument
324 setActions(TypeIndex, Actions, SizeAndActions); in setPointerAction()
332 void setScalarInVectorAction(const unsigned Opcode, const unsigned TypeIndex, in setScalarInVectorAction() argument
337 setActions(TypeIndex, Actions, SizeAndActions); in setScalarInVectorAction()
344 const unsigned TypeIndex, in setVectorNumElementAction() argument
350 setActions(TypeIndex, Actions, SizeAndActions); in setVectorNumElementAction()
414 void setActions(unsigned TypeIndex, in setActions() argument
418 if (Actions.size() <= TypeIndex) in setActions()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DTpiStream.h24 class TypeIndex; variable
64 LLVM_ABI Expected<codeview::TypeIndex>
65 findFullDeclForForwardRef(codeview::TypeIndex ForwardRefTI) const;
67 LLVM_ABI std::vector<codeview::TypeIndex>
70 LLVM_ABI codeview::CVType getType(codeview::TypeIndex Index);
95 std::vector<std::vector<codeview::TypeIndex>> HashMap;
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DTpiStream.cpp151 TypeIndex TIB{Header->TypeIndexBegin}; in buildHashMap()
152 TypeIndex TIE{Header->TypeIndexEnd}; in buildHashMap()
159 std::vector<TypeIndex> TpiStream::findRecordsByName(StringRef Name) const { in findRecordsByName()
167 std::vector<TypeIndex> Result; in findRecordsByName()
168 for (TypeIndex TI : HashMap[Bucket]) { in findRecordsByName()
178 Expected<TypeIndex>
179 TpiStream::findFullDeclForForwardRef(TypeIndex ForwardRefTI) const { in findFullDeclForForwardRef()
193 for (TypeIndex TI : HashMap[BucketIdx]) { in findFullDeclForForwardRef()
220 codeview::CVType TpiStream::getType(codeview::TypeIndex Index) { in getType()

12345