| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | TypeIndex.h | 95 class TypeIndex { 145 TypeIndex makeDirect() const { return TypeIndex{getSimpleKind()}; } in makeDirect() 147 static TypeIndex None() { return TypeIndex(SimpleTypeKind::None); } in None() 148 static TypeIndex Void() { return TypeIndex(SimpleTypeKind::Void); } in Void() 181 static TypeIndex Int32() { return TypeIndex(SimpleTypeKind::Int32); } in Int32() 187 static TypeIndex Int64() { return TypeIndex(SimpleTypeKind::Int64); } in Int64() 238 friend inline bool operator<(const TypeIndex &A, const TypeIndex &B) { 246 friend inline bool operator>(const TypeIndex &A, const TypeIndex &B) { 254 friend inline TypeIndex operator+(const TypeIndex &A, uint32_t N) { 260 friend inline TypeIndex operator-(const TypeIndex &A, uint32_t N) { [all …]
|
| H A D | TypeRecord.h | 175 MemberFunctionRecord(TypeIndex ReturnType, TypeIndex ClassType, in MemberFunctionRecord() 220 MemberFuncIdRecord(TypeIndex ClassType, TypeIndex FunctionType, in MemberFuncIdRecord() 379 TypeIndex Type; 469 TypeIndex FieldList, TypeIndex DerivationList, in ClassRecord() 546 TypeIndex Type; 604 TypeIndex Id; 639 TypeIndex UDT; 649 UdtModSourceLineRecord(TypeIndex UDT, TypeIndex SourceFile, in UdtModSourceLineRecord() 659 TypeIndex UDT; 744 TypeIndex Type; [all …]
|
| H A D | LazyRandomTypeCollection.h | 70 uint32_t getOffsetOfType(TypeIndex Index); 74 CVType getType(TypeIndex Index) override; 76 bool contains(TypeIndex Index) override; 79 Optional<TypeIndex> getFirst() override; 80 Optional<TypeIndex> getNext(TypeIndex Prev) override; 84 Error ensureTypeExists(TypeIndex Index); 85 void ensureCapacityFor(TypeIndex Index); 87 Error visitRangeForType(TypeIndex TI); 88 Error fullScanForType(TypeIndex TI); 89 void visitRange(TypeIndex Begin, uint32_t BeginOffset, TypeIndex End); [all …]
|
| H A D | MergingTypeTableBuilder.h | 38 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; 59 TypeIndex nextTypeIndex() const; 65 TypeIndex insertRecordAs(hash_code Hash, ArrayRef<uint8_t> &Record); 66 TypeIndex insertRecordBytes(ArrayRef<uint8_t> &Record); 67 TypeIndex insertRecord(ContinuationRecordBuilder &Builder); [all …]
|
| H A D | GlobalTypeTableBuilder.h | 39 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; 63 TypeIndex nextTypeIndex() const; 89 return TypeIndex(SimpleTypeKind::NotTranslated); in insertRecordAs() 107 TypeIndex insertRecordBytes(ArrayRef<uint8_t> Data); 108 TypeIndex insertRecord(ContinuationRecordBuilder &Builder); [all …]
|
| H A D | AppendingTypeTableBuilder.h | 39 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 D | TypeCollection.h | 24 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 D | TypeStreamMerger.h | 20 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 D | TypeTableCollection.h | 24 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;
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | TypeStreamMerger.cpp | 75 static const TypeIndex Untranslated; 108 void addMapping(TypeIndex Idx); 138 inline bool remapIndex(TypeIndex &Idx, ArrayRef<TypeIndex> Map) { in remapIndex() 145 inline bool remapIndexSimple(TypeIndex &Idx, ArrayRef<TypeIndex> Map) const { in remapIndexSimple() 161 bool remapIndexFallback(TypeIndex &Idx, ArrayRef<TypeIndex> Map); 177 TypeIndex CurIndex{TypeIndex::FirstNonSimpleIndex}; 189 ArrayRef<TypeIndex> TypeLookup; 325 CurIndex = TypeIndex(TypeIndex::FirstNonSimpleIndex); in doit() 357 TypeIndex DestIdx = Untranslated; in remapType() 407 TypeIndex *DestTIs = in remapIndices() [all …]
|
| H A D | AppendingTypeTableBuilder.cpp | 30 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() 60 bool AppendingTypeTableBuilder::contains(TypeIndex Index) { in contains() 84 TypeIndex 86 TypeIndex NewTI = nextTypeIndex(); in insertRecordBytes() 92 TypeIndex [all …]
|
| H A D | LazyRandomTypeCollection.cpp | 90 CVType LazyRandomTypeCollection::getType(TypeIndex Index) { in getType() 115 return TypeIndex::simpleTypeName(Index); in getTypeName() 135 bool LazyRandomTypeCollection::contains(TypeIndex Index) { in contains() 183 TypeIndex TIB = Prev->Type; in visitRangeForType() 193 TypeIndex TIE; in visitRangeForType() 195 TIE = TypeIndex::fromArrayIndex(capacity()); in visitRangeForType() 204 Optional<TypeIndex> LazyRandomTypeCollection::getFirst() { in getFirst() 205 TypeIndex TI = TypeIndex::fromArrayIndex(0); in getFirst() 213 Optional<TypeIndex> LazyRandomTypeCollection::getNext(TypeIndex Prev) { in getNext() 229 TypeIndex CurrentTI = TypeIndex::fromArrayIndex(0); in fullScanForType() [all …]
|
| H A D | MergingTypeTableBuilder.cpp | 30 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() 63 bool MergingTypeTableBuilder::contains(TypeIndex Index) { in contains() 107 TypeIndex ActualTI = Result.first->second; in insertRecordAs() 112 TypeIndex 117 TypeIndex [all …]
|
| H A D | GlobalTypeTableBuilder.cpp | 30 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() 105 TypeIndex 107 TypeIndex TI; in insertRecord() [all …]
|
| H A D | TypeTableCollection.cpp | 23 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 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 = makeArrayRef(IndexBytes, sizeof(TypeIndex)); in hashType() 72 Off = Ref.Offset + Ref.Count * sizeof(TypeIndex); in hashType()
|
| H A D | TypeIndex.cpp | 70 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()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | CodeViewDebug.h | 264 codeview::TypeIndex VBPType; 380 codeview::TypeIndex getTypeIndex(const DIType *Ty, 383 codeview::TypeIndex 392 codeview::TypeIndex getScopeIndex(const DIScope *Scope); 394 codeview::TypeIndex getVBPTypeIndex(); 403 codeview::TypeIndex lowerTypeBasic(const DIBasicType *Ty); 404 codeview::TypeIndex lowerTypePointer( 407 codeview::TypeIndex lowerTypeMemberPointer( 413 codeview::TypeIndex lowerTypeMemberFunction( 426 codeview::TypeIndex getCompleteTypeIndex(const DIType *Ty); [all …]
|
| H A D | CodeViewDebug.cpp | 394 TypeIndex TI; in getFuncIdForSubprogram() 716 TypeIndex TI(TypeIndex::FirstNonSimpleIndex); in emitTypeGlobalHashes() 1654 TypeIndex Index; in lowerTypeBasic() 1918 TypeIndex ReturnTypeIndex = TypeIndex::Void(); in lowerTypeFunction() 1949 TypeIndex ReturnTypeIndex = TypeIndex::Void(); in lowerTypeMemberFunction() 2107 TypeIndex FTI; in lowerTypeEnum() 2291 ClassRecord CR(Kind, 0, CO, TypeIndex(), TypeIndex(), TypeIndex(), 0, in lowerTypeClass() 2303 TypeIndex FieldTI; in lowerCompleteTypeClass() 2376 std::tuple<TypeIndex, TypeIndex, unsigned, bool> 2539 codeview::TypeIndex [all …]
|
| /freebsd-13.1/contrib/llvm-project/lld/COFF/ |
| H A D | DebugTypes.h | 34 using llvm::codeview::TypeIndex; 69 bool remapTypeIndex(TypeIndex &ti, llvm::codeview::TiRefKind refKind) const; 75 void mergeTypeRecord(TypeIndex curIndex, llvm::codeview::CVType ty); 82 TypeIndex beginIndex = TypeIndex(TypeIndex::FirstNonSimpleIndex)); 152 llvm::SmallVector<TypeIndex, 0> indexMapStorage; 157 llvm::ArrayRef<TypeIndex> tpiMap; 158 llvm::ArrayRef<TypeIndex> ipiMap; 166 std::vector<std::pair<TypeIndex, TypeIndex>> funcIdToType;
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | LegacyLegalizerInfo.h | 320 void setScalarAction(const unsigned Opcode, const unsigned TypeIndex, in setScalarAction() argument 324 setActions(TypeIndex, Actions, SizeAndActions); in setScalarAction() 326 void setPointerAction(const unsigned Opcode, const unsigned TypeIndex, in setPointerAction() argument 335 setActions(TypeIndex, Actions, SizeAndActions); in setPointerAction() 348 setActions(TypeIndex, Actions, SizeAndActions); in setScalarInVectorAction() 355 const unsigned TypeIndex, in setVectorNumElementAction() argument 364 setActions(TypeIndex, Actions, SizeAndActions); in setVectorNumElementAction() 428 void setActions(unsigned TypeIndex, in setActions() argument 432 if (Actions.size() <= TypeIndex) in setActions() 433 Actions.resize(TypeIndex + 1); in setActions() [all …]
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/ |
| H A D | PdbAstBuilder.h | 91 using TypeIndex = llvm::codeview::TypeIndex; variable 103 CreateFunctionType(TypeIndex args_type_idx, TypeIndex return_type_idx, 126 CreateDeclInfoForType(const llvm::codeview::TagRecord &record, TypeIndex ti); 129 clang::QualType CreateSimpleType(TypeIndex ti); 136 llvm::DenseMap<TypeIndex, TypeIndex> m_parent_types;
|
| /freebsd-13.1/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()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/ |
| H A D | TpiStream.h | 60 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 D | SymbolCache.h | 44 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()
|