/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
H A D | TypeIndex.h | 96 class TypeIndex { 104 TypeIndex() : Index(static_cast<uint32_t>(SimpleTypeKind::None)) {} in TypeIndex() function 105 explicit TypeIndex(uint32_t Index) : Index(Index) {} in TypeIndex() function 106 explicit TypeIndex(SimpleTypeKind Kind) in TypeIndex() function 108 TypeIndex(SimpleTypeKind Kind, SimpleTypeMode Mode) in TypeIndex() function 123 static TypeIndex fromArrayIndex(uint32_t Index) { in fromArrayIndex() 124 return TypeIndex(Index + FirstNonSimpleIndex); in fromArrayIndex() 127 static TypeIndex fromDecoratedArrayIndex(bool IsItem, uint32_t Index) { in fromDecoratedArrayIndex() 128 return TypeIndex((Index + FirstNonSimpleIndex) | in fromDecoratedArrayIndex() 132 TypeIndex removeDecoration() { in removeDecoration() [all …]
|
H A D | TypeRecord.h | 104 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 D | LazyRandomTypeCollection.h | 69 uint32_t getOffsetOfType(TypeIndex Index); 71 std::optional<CVType> tryGetType(TypeIndex Index); 73 CVType getType(TypeIndex Index) override; 74 StringRef getTypeName(TypeIndex Index) override; 75 bool contains(TypeIndex Index) override; 78 std::optional<TypeIndex> getFirst() override; 79 std::optional<TypeIndex> getNext(TypeIndex Prev) override; 80 bool replaceType(TypeIndex &Index, CVType Data, bool Stabilize) override; 83 Error ensureTypeExists(TypeIndex Index); 84 void ensureCapacityFor(TypeIndex Index); [all …]
|
H A D | MergingTypeTableBuilder.h | 38 DenseMap<LocallyHashedType, TypeIndex> HashedRecords; 48 std::optional<TypeIndex> getFirst() override; 49 std::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 D | GlobalTypeTableBuilder.h | 39 DenseMap<GloballyHashedType, TypeIndex> HashedRecords; 52 std::optional<TypeIndex> getFirst() override; 53 std::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 D | AppendingTypeTableBuilder.h | 39 std::optional<TypeIndex> getFirst() override; 40 std::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 D | TypeCollection.h | 24 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 D | TypeStreamMerger.h | 20 class TypeIndex; variable 46 SmallVectorImpl<TypeIndex> &SourceToDest, 70 Error mergeIdRecords(MergingTypeTableBuilder &Dest, ArrayRef<TypeIndex> Types, 71 SmallVectorImpl<TypeIndex> &SourceToDest, 91 SmallVectorImpl<TypeIndex> &SourceToDest, 97 SmallVectorImpl<TypeIndex> &SourceToDest, 103 SmallVectorImpl<TypeIndex> &SourceToDest, 108 Error mergeIdRecords(GlobalTypeTableBuilder &Dest, ArrayRef<TypeIndex> Types, 109 SmallVectorImpl<TypeIndex> &SourceToDest,
|
H A D | TypeTableCollection.h | 24 std::optional<TypeIndex> getFirst() override; 25 std::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;
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Readers/ |
H A D | LVCodeViewVisitor.h | 54 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/DebugInfo/CodeView/ |
H A D | TypeStreamMerger.cpp | 24 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 D | AppendingTypeTableBuilder.cpp | 23 TypeIndex AppendingTypeTableBuilder::nextTypeIndex() const { in nextTypeIndex() 24 return TypeIndex::fromArrayIndex(SeenRecords.size()); in nextTypeIndex() 32 std::optional<TypeIndex> AppendingTypeTableBuilder::getFirst() { in getFirst() 36 return TypeIndex(TypeIndex::FirstNonSimpleIndex); in getFirst() 39 std::optional<TypeIndex> AppendingTypeTableBuilder::getNext(TypeIndex Prev) { in getNext() 45 CVType AppendingTypeTableBuilder::getType(TypeIndex Index){ in getType() 49 StringRef AppendingTypeTableBuilder::getTypeName(TypeIndex Index) { in getTypeName() 53 bool AppendingTypeTableBuilder::contains(TypeIndex Index) { in contains() 77 TypeIndex 79 TypeIndex NewTI = nextTypeIndex(); in insertRecordBytes() [all …]
|
H A D | LazyRandomTypeCollection.cpp | 81 uint32_t LazyRandomTypeCollection::getOffsetOfType(TypeIndex Index) { 88 CVType LazyRandomTypeCollection::getType(TypeIndex Index) { 98 std::optional<CVType> LazyRandomTypeCollection::tryGetType(TypeIndex Index) { 111 StringRef LazyRandomTypeCollection::getTypeName(TypeIndex Index) { 113 return TypeIndex::simpleTypeName(Index); in getTypeName() 133 bool LazyRandomTypeCollection::contains(TypeIndex Index) { 148 Error LazyRandomTypeCollection::ensureTypeExists(TypeIndex TI) { 155 void LazyRandomTypeCollection::ensureCapacityFor(TypeIndex Index) { 168 Error LazyRandomTypeCollection::visitRangeForType(TypeIndex TI) { 174 [](TypeIndex Valu in visitRangeForType() [all...] |
H A D | MergingTypeTableBuilder.cpp | 24 TypeIndex MergingTypeTableBuilder::nextTypeIndex() const { in nextTypeIndex() 25 return TypeIndex::fromArrayIndex(SeenRecords.size()); in nextTypeIndex() 35 std::optional<TypeIndex> MergingTypeTableBuilder::getFirst() { in getFirst() 39 return TypeIndex(TypeIndex::FirstNonSimpleIndex); in getFirst() 42 std::optional<TypeIndex> MergingTypeTableBuilder::getNext(TypeIndex Prev) { in getNext() 48 CVType MergingTypeTableBuilder::getType(TypeIndex Index) { in getType() 53 StringRef MergingTypeTableBuilder::getTypeName(TypeIndex Index) { in getTypeName() 57 bool MergingTypeTableBuilder::contains(TypeIndex Index) { in contains() 84 TypeIndex MergingTypeTableBuilder::insertRecordAs(hash_code Hash, in insertRecordAs() 101 TypeIndex ActualTI = Result.first->second; in insertRecordAs() [all …]
|
H A D | GlobalTypeTableBuilder.cpp | 23 TypeIndex GlobalTypeTableBuilder::nextTypeIndex() const { in nextTypeIndex() 24 return TypeIndex::fromArrayIndex(SeenRecords.size()); in nextTypeIndex() 34 std::optional<TypeIndex> GlobalTypeTableBuilder::getFirst() { in getFirst() 38 return TypeIndex(TypeIndex::FirstNonSimpleIndex); in getFirst() 41 std::optional<TypeIndex> GlobalTypeTableBuilder::getNext(TypeIndex Prev) { in getNext() 47 CVType GlobalTypeTableBuilder::getType(TypeIndex Index) { in getType() 52 StringRef GlobalTypeTableBuilder::getTypeName(TypeIndex Index) { in getTypeName() 56 bool GlobalTypeTableBuilder::contains(TypeIndex Index) { in contains() 87 TypeIndex GlobalTypeTableBuilder::insertRecordBytes(ArrayRef<uint8_t> Record) { in insertRecordBytes() 98 TypeIndex [all …]
|
H A D | TypeTableCollection.cpp | 24 std::optional<TypeIndex> TypeTableCollection::getFirst() { in getFirst() 27 return TypeIndex::fromArrayIndex(0); in getFirst() 30 std::optional<TypeIndex> TypeTableCollection::getNext(TypeIndex Prev) { in getNext() 38 CVType TypeTableCollection::getType(TypeIndex Index) { in getType() 43 StringRef TypeTableCollection::getTypeName(TypeIndex Index) { in getTypeName() 45 return TypeIndex::simpleTypeName(Index); in getTypeName() 55 bool TypeTableCollection::contains(TypeIndex Index) { in contains() 63 bool TypeTableCollection::replaceType(TypeIndex &Index, CVType Data, in replaceType()
|
H A D | TypeHashing.cpp | 50 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()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | CodeViewDebug.h | 163 SmallSet<codeview::TypeIndex, 1> Inlinees; 262 codeview::TypeIndex getFuncIdForSubprogram(const DISubprogram *SP); 284 DenseMap<std::pair<const DINode *, const DIType *>, codeview::TypeIndex> 289 DenseMap<const DICompositeType *, codeview::TypeIndex> CompleteTypeIndices; 298 codeview::TypeIndex VBPType; 378 void emitInlinees(const SmallSet<codeview::TypeIndex, 1> &Inlinees); 418 codeview::TypeIndex getTypeIndex(const DIType *Ty, 421 codeview::TypeIndex 425 codeview::TypeIndex getTypeIndexForReferenceTo(const DIType *Ty); 427 codeview::TypeIndex getMemberFunctionType(const DISubprogram *SP, [all …]
|
H A D | CodeViewDebug.cpp | 99 std::string getTypeName(TypeIndex TI) override { in getTypeName() 103 TypeName = std::string(TypeIndex::simpleTypeName(TI)); in getTypeName() 339 TypeIndex CodeViewDebug::getScopeIndex(const DIScope *Scope) { in getScopeIndex() 351 return TypeIndex(); in getScopeIndex() 362 StringIdRecord SID(TypeIndex(), ScopeName); 386 TypeIndex CodeViewDebug::getFuncIdForSubprogram(const DISubprogram *SP) { in getFuncIdForSubprogram() 400 TypeIndex TI; in getFuncIdForSubprogram() 405 TypeIndex ClassType = getTypeIndex(Class); in getFuncIdForSubprogram() 411 TypeIndex ParentScope = getScopeIndex(Scope); in getFuncIdForSubprogram() 450 TypeIndex CodeViewDebu in getMemberFunctionType() [all...] |
/freebsd/contrib/llvm-project/lld/COFF/ |
H A D | DebugTypes.h | 31 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 D | LVCodeViewVisitor.cpp | 50 static TypeIndex getTrueType(TypeIndex &TI) { in getTrueType() 85 static StringRef getRecordName(LazyRandomTypeCollection &Types, TypeIndex TI) { in getRecordName() 120 using LVLineRecords = std::vector<TypeIndex>; 129 using RecordTable = std::map<TypeIndex, RecordEntry>; 133 using NameTable = std::map<StringRef, TypeIndex>; 140 void add(uint32_t StreamIdx, TypeIndex TI, TypeLeafKind Kind, 142 void add(uint32_t StreamIdx, TypeIndex TI, StringRef Name); 143 LVElement *find(uint32_t StreamIdx, TypeIndex TI, bool Create = true); 144 TypeIndex find(uint32_t StreamIdx, StringRef Name); 149 using ForwardEntry = std::pair<TypeIndex, TypeIndex>; [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | LegacyLegalizerInfo.h | 311 void setScalarAction(const unsigned Opcode, const unsigned TypeIndex, in setScalarAction() argument 315 setActions(TypeIndex, Actions, SizeAndActions); in setScalarAction() 317 void setPointerAction(const unsigned Opcode, const unsigned TypeIndex, in setPointerAction() argument 326 setActions(TypeIndex, Actions, SizeAndActions); in setPointerAction() 334 void setScalarInVectorAction(const unsigned Opcode, const unsigned TypeIndex, in setScalarInVectorAction() argument 339 setActions(TypeIndex, Actions, SizeAndActions); in setScalarInVectorAction() 346 const unsigned TypeIndex, in setVectorNumElementAction() argument 355 setActions(TypeIndex, Actions, SizeAndActions); in setVectorNumElementAction() 419 void setActions(unsigned TypeIndex, in setActions() argument 423 if (Actions.size() <= TypeIndex) in setActions() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/ |
H A D | TpiStream.h | 23 class TypeIndex; variable 61 Expected<codeview::TypeIndex> 62 findFullDeclForForwardRef(codeview::TypeIndex ForwardRefTI) const; 64 std::vector<codeview::TypeIndex> findRecordsByName(StringRef Name) const; 66 codeview::CVType getType(codeview::TypeIndex Index); 91 std::vector<std::vector<codeview::TypeIndex>> HashMap;
|
H A D | SymbolCache.h | 50 mutable DenseMap<codeview::TypeIndex, SymIndexId> TypeIndexToSymbolId; 55 mutable DenseMap<std::pair<codeview::TypeIndex, uint32_t>, SymIndexId> 99 SymIndexId createSymbolForType(codeview::TypeIndex TI, codeview::CVType CVT, in createSymbolForType() 112 SymIndexId createSymbolForModifiedType(codeview::TypeIndex ModifierTI, 115 SymIndexId createSimpleType(codeview::TypeIndex TI, 154 SymIndexId findSymbolByTypeIndex(codeview::TypeIndex TI) const; 157 SymIndexId getOrCreateFieldListMember(codeview::TypeIndex FieldListTI, in getOrCreateFieldListMember() 161 std::pair<codeview::TypeIndex, uint32_t> Key{FieldListTI, Index}; in getOrCreateFieldListMember()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
H A D | TpiStream.cpp | 152 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()
|