| /freebsd-12.1/contrib/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | TypeIndex.h | 96 class TypeIndex { 137 TypeIndex makeDirect() const { return TypeIndex{getSimpleKind()}; } in makeDirect() 139 static TypeIndex None() { return TypeIndex(SimpleTypeKind::None); } in None() 140 static TypeIndex Void() { return TypeIndex(SimpleTypeKind::Void); } in Void() 173 static TypeIndex Int32() { return TypeIndex(SimpleTypeKind::Int32); } in Int32() 179 static TypeIndex Int64() { return TypeIndex(SimpleTypeKind::Int64); } in Int64() 230 friend inline bool operator<(const TypeIndex &A, const TypeIndex &B) { 238 friend inline bool operator>(const TypeIndex &A, const TypeIndex &B) { 246 friend inline TypeIndex operator+(const TypeIndex &A, uint32_t N) { 252 friend inline TypeIndex operator-(const TypeIndex &A, uint32_t N) { [all …]
|
| H A D | TypeRecord.h | 182 MemberFunctionRecord(TypeIndex ReturnType, TypeIndex ClassType, in MemberFunctionRecord() 227 MemberFuncIdRecord(TypeIndex ClassType, TypeIndex FunctionType, in MemberFuncIdRecord() 386 TypeIndex Type; 476 TypeIndex FieldList, TypeIndex DerivationList, in ClassRecord() 553 TypeIndex Type; 611 TypeIndex Id; 646 TypeIndex UDT; 656 UdtModSourceLineRecord(TypeIndex UDT, TypeIndex SourceFile, in UdtModSourceLineRecord() 666 TypeIndex UDT; 751 TypeIndex Type; [all …]
|
| H A D | LazyRandomTypeCollection.h | 72 uint32_t getOffsetOfType(TypeIndex Index); 76 CVType getType(TypeIndex Index) override; 78 bool contains(TypeIndex Index) override; 81 Optional<TypeIndex> getFirst() override; 82 Optional<TypeIndex> getNext(TypeIndex Prev) override; 85 Error ensureTypeExists(TypeIndex Index); 86 void ensureCapacityFor(TypeIndex Index); 88 Error visitRangeForType(TypeIndex TI); 89 Error fullScanForType(TypeIndex TI); 90 void visitRange(TypeIndex Begin, uint32_t BeginOffset, TypeIndex End); [all …]
|
| H A D | MergingTypeTableBuilder.h | 42 DenseMap<LocallyHashedType, 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; 62 TypeIndex nextTypeIndex() const; 68 TypeIndex insertRecordAs(hash_code Hash, ArrayRef<uint8_t> &Record); 69 TypeIndex insertRecordBytes(ArrayRef<uint8_t> &Record); 70 TypeIndex insertRecord(ContinuationRecordBuilder &Builder); [all …]
|
| H A D | GlobalTypeTableBuilder.h | 42 DenseMap<GloballyHashedType, TypeIndex> HashedRecords; 55 Optional<TypeIndex> getFirst() override; 56 Optional<TypeIndex> getNext(TypeIndex Prev) override; 57 CVType getType(TypeIndex Index) override; 58 StringRef getTypeName(TypeIndex Index) override; 59 bool contains(TypeIndex Index) override; 65 TypeIndex nextTypeIndex() const; 73 TypeIndex insertRecordAs(GloballyHashedType Hash, size_t RecordSize, in insertRecordAs() 88 TypeIndex insertRecordBytes(ArrayRef<uint8_t> Data); 89 TypeIndex insertRecord(ContinuationRecordBuilder &Builder); [all …]
|
| H A D | AppendingTypeTableBuilder.h | 43 Optional<TypeIndex> getFirst() override; 44 Optional<TypeIndex> getNext(TypeIndex Prev) override; 45 CVType getType(TypeIndex Index) override; 46 StringRef getTypeName(TypeIndex Index) override; 47 bool contains(TypeIndex Index) override; 53 TypeIndex nextTypeIndex() const; 58 TypeIndex insertRecordBytes(ArrayRef<uint8_t> &Record); 59 TypeIndex insertRecord(ContinuationRecordBuilder &Builder); 61 template <typename T> TypeIndex writeLeafType(T &Record) { in writeLeafType()
|
| H A D | TypeStreamMerger.h | 21 class TypeIndex; variable 40 SmallVectorImpl<TypeIndex> &SourceToDest, 64 Error mergeIdRecords(MergingTypeTableBuilder &Dest, ArrayRef<TypeIndex> Types, 65 SmallVectorImpl<TypeIndex> &SourceToDest, 85 SmallVectorImpl<TypeIndex> &SourceToDest, 91 SmallVectorImpl<TypeIndex> &SourceToDest, 97 SmallVectorImpl<TypeIndex> &SourceToDest, 102 Error mergeIdRecords(GlobalTypeTableBuilder &Dest, ArrayRef<TypeIndex> Types, 103 SmallVectorImpl<TypeIndex> &SourceToDest,
|
| H A D | TypeCollection.h | 26 virtual Optional<TypeIndex> getFirst() = 0; 27 virtual Optional<TypeIndex> getNext(TypeIndex Prev) = 0; 29 virtual CVType getType(TypeIndex Index) = 0; 30 virtual StringRef getTypeName(TypeIndex Index) = 0; 31 virtual bool contains(TypeIndex Index) = 0; 36 Optional<TypeIndex> Next = getFirst(); in ForEachRecord() 39 TypeIndex N = *Next; in ForEachRecord()
|
| H A D | TypeTableCollection.h | 25 Optional<TypeIndex> getFirst() override; 26 Optional<TypeIndex> getNext(TypeIndex Prev) override; 28 CVType getType(TypeIndex Index) override; 29 StringRef getTypeName(TypeIndex Index) override; 30 bool contains(TypeIndex Index) override;
|
| /freebsd-12.1/contrib/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; 340 CurIndex = TypeIndex(TypeIndex::FirstNonSimpleIndex); in doit() 372 TypeIndex DestIdx = Untranslated; in remapType() 415 TypeIndex *DestTIs = in remapIndices() [all …]
|
| H A D | AppendingTypeTableBuilder.cpp | 31 TypeIndex AppendingTypeTableBuilder::nextTypeIndex() const { in nextTypeIndex() 32 return TypeIndex::fromArrayIndex(SeenRecords.size()); in nextTypeIndex() 40 Optional<TypeIndex> AppendingTypeTableBuilder::getFirst() { in getFirst() 44 return TypeIndex(TypeIndex::FirstNonSimpleIndex); in getFirst() 47 Optional<TypeIndex> AppendingTypeTableBuilder::getNext(TypeIndex Prev) { in getNext() 53 CVType AppendingTypeTableBuilder::getType(TypeIndex Index) { in getType() 66 bool AppendingTypeTableBuilder::contains(TypeIndex Index) { in contains() 83 TypeIndex 85 TypeIndex NewTI = nextTypeIndex(); in insertRecordBytes() 93 TypeIndex [all …]
|
| H A D | MergingTypeTableBuilder.cpp | 31 TypeIndex MergingTypeTableBuilder::nextTypeIndex() const { in nextTypeIndex() 32 return TypeIndex::fromArrayIndex(SeenRecords.size()); in nextTypeIndex() 42 Optional<TypeIndex> MergingTypeTableBuilder::getFirst() { in getFirst() 46 return TypeIndex(TypeIndex::FirstNonSimpleIndex); in getFirst() 49 Optional<TypeIndex> MergingTypeTableBuilder::getNext(TypeIndex Prev) { in getNext() 55 CVType MergingTypeTableBuilder::getType(TypeIndex Index) { in getType() 68 bool MergingTypeTableBuilder::contains(TypeIndex Index) { in contains() 110 TypeIndex ActualTI = Result.first->second; in insertRecordAs() 115 TypeIndex 120 TypeIndex [all …]
|
| H A D | LazyRandomTypeCollection.cpp | 91 CVType LazyRandomTypeCollection::getType(TypeIndex Index) { in getType() 116 return TypeIndex::simpleTypeName(Index); in getTypeName() 136 bool LazyRandomTypeCollection::contains(TypeIndex Index) { in contains() 184 TypeIndex TIB = Prev->Type; in visitRangeForType() 194 TypeIndex TIE; in visitRangeForType() 196 TIE = TypeIndex::fromArrayIndex(capacity()); in visitRangeForType() 205 Optional<TypeIndex> LazyRandomTypeCollection::getFirst() { in getFirst() 206 TypeIndex TI = TypeIndex::fromArrayIndex(0); in getFirst() 214 Optional<TypeIndex> LazyRandomTypeCollection::getNext(TypeIndex Prev) { in getNext() 230 TypeIndex CurrentTI = TypeIndex::fromArrayIndex(0); in fullScanForType() [all …]
|
| H A D | GlobalTypeTableBuilder.cpp | 31 TypeIndex GlobalTypeTableBuilder::nextTypeIndex() const { in nextTypeIndex() 32 return TypeIndex::fromArrayIndex(SeenRecords.size()); in nextTypeIndex() 42 Optional<TypeIndex> GlobalTypeTableBuilder::getFirst() { in getFirst() 46 return TypeIndex(TypeIndex::FirstNonSimpleIndex); in getFirst() 49 Optional<TypeIndex> GlobalTypeTableBuilder::getNext(TypeIndex Prev) { in getNext() 55 CVType GlobalTypeTableBuilder::getType(TypeIndex Index) { in getType() 67 StringRef GlobalTypeTableBuilder::getTypeName(TypeIndex Index) { in getTypeName() 71 bool GlobalTypeTableBuilder::contains(TypeIndex Index) { in contains() 95 TypeIndex GlobalTypeTableBuilder::insertRecordBytes(ArrayRef<uint8_t> Record) { in insertRecordBytes() 106 TypeIndex [all …]
|
| H A D | TypeTableCollection.cpp | 24 Optional<TypeIndex> TypeTableCollection::getFirst() { in getFirst() 27 return TypeIndex::fromArrayIndex(0); in getFirst() 30 Optional<TypeIndex> TypeTableCollection::getNext(TypeIndex Prev) { in getNext() 38 CVType TypeTableCollection::getType(TypeIndex Index) { in getType() 47 StringRef TypeTableCollection::getTypeName(TypeIndex Index) { in getTypeName() 49 return TypeIndex::simpleTypeName(Index); in getTypeName() 59 bool TypeTableCollection::contains(TypeIndex Index) { in contains()
|
| H A D | TypeHashing.cpp | 51 auto RefData = RecordData.slice(Ref.Offset, Ref.Count * sizeof(TypeIndex)); in hashType() 54 ArrayRef<TypeIndex> Indices( in hashType() 55 reinterpret_cast<const TypeIndex *>(RefData.data()), Ref.Count); in hashType() 56 for (TypeIndex TI : Indices) { in hashType() 60 BytesToHash = makeArrayRef(IndexBytes, sizeof(TypeIndex)); in hashType() 67 Off = Ref.Offset + Ref.Count * sizeof(TypeIndex); in hashType()
|
| H A D | TypeIndex.cpp | 71 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-12.1/contrib/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | CodeViewDebug.h | 263 codeview::TypeIndex VBPType; 376 codeview::TypeIndex getTypeIndex(DITypeRef TypeRef, 379 codeview::TypeIndex 388 codeview::TypeIndex getScopeIndex(const DIScope *Scope); 390 codeview::TypeIndex getVBPTypeIndex(); 397 codeview::TypeIndex lowerTypeAlias(const DIDerivedType *Ty); 399 codeview::TypeIndex lowerTypeBasic(const DIBasicType *Ty); 400 codeview::TypeIndex lowerTypePointer( 403 codeview::TypeIndex lowerTypeMemberPointer( 409 codeview::TypeIndex lowerTypeMemberFunction( [all …]
|
| H A D | CodeViewDebug.cpp | 348 TypeIndex TI; in getFuncIdForSubprogram() 658 TypeIndex TI(TypeIndex::FirstNonSimpleIndex); in emitTypeGlobalHashes() 1545 TypeIndex Index; in lowerTypeBasic() 1808 TypeIndex ReturnTypeIndex = TypeIndex::Void(); in lowerTypeFunction() 1839 TypeIndex ReturnTypeIndex = TypeIndex::Void(); in lowerTypeMemberFunction() 1994 TypeIndex FTI; in lowerTypeEnum() 2168 ClassRecord CR(Kind, 0, CO, TypeIndex(), TypeIndex(), TypeIndex(), 0, in lowerTypeClass() 2180 TypeIndex FieldTI; in lowerCompleteTypeClass() 2245 std::tuple<TypeIndex, TypeIndex, unsigned, bool> 2411 codeview::TypeIndex [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/DebugInfo/PDB/Native/ |
| H A D | SymbolCache.h | 41 DenseMap<codeview::TypeIndex, SymIndexId> TypeIndexToSymbolId; 46 DenseMap<std::pair<codeview::TypeIndex, uint32_t>, SymIndexId> 63 SymIndexId createSymbolForType(codeview::TypeIndex TI, codeview::CVType CVT, in createSymbolForType() 76 SymIndexId createSymbolForModifiedType(codeview::TypeIndex ModifierTI, 79 SymIndexId createSimpleType(codeview::TypeIndex TI, 113 SymIndexId findSymbolByTypeIndex(codeview::TypeIndex TI); 116 SymIndexId getOrCreateFieldListMember(codeview::TypeIndex FieldListTI, in getOrCreateFieldListMember() 120 std::pair<codeview::TypeIndex, uint32_t> Key{FieldListTI, Index}; in getOrCreateFieldListMember()
|
| H A D | TpiStream.h | 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 | NativeTypeFunctionSig.h | 31 codeview::TypeIndex TI, codeview::ProcedureRecord Proc); 34 codeview::TypeIndex TI, 58 void initializeArgList(codeview::TypeIndex ArgListTI); 66 codeview::TypeIndex Index;
|
| /freebsd-12.1/contrib/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | TpiStream.cpp | 154 TypeIndex TIB{Header->TypeIndexBegin}; in buildHashMap() 155 TypeIndex TIE{Header->TypeIndexEnd}; in buildHashMap() 162 std::vector<TypeIndex> TpiStream::findRecordsByName(StringRef Name) const { in findRecordsByName() 170 std::vector<TypeIndex> Result; in findRecordsByName() 171 for (TypeIndex TI : HashMap[Bucket]) { in findRecordsByName() 181 Expected<TypeIndex> 182 TpiStream::findFullDeclForForwardRef(TypeIndex ForwardRefTI) const { in findFullDeclForForwardRef() 196 for (TypeIndex TI : HashMap[BucketIdx]) { in findFullDeclForForwardRef() 223 codeview::CVType TpiStream::getType(codeview::TypeIndex Index) { in getType()
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/NativePDB/ |
| H A D | PdbAstBuilder.cpp | 277 llvm::DenseMap<TypeIndex, TypeIndex> forward_to_full; in BuildParentMap() 278 llvm::DenseMap<TypeIndex, TypeIndex> full_to_forward; in BuildParentMap() 281 TypeIndex forward; in BuildParentMap() 282 TypeIndex full; in BuildParentMap() 315 llvm::DenseMap<TypeIndex, TypeIndex> &parents) in BuildParentMap() 320 llvm::DenseMap<TypeIndex, TypeIndex> &parents; in BuildParentMap() 323 TypeIndex parent; in BuildParentMap() 358 std::vector<TypeIndex> fwd_keys; in BuildParentMap() 360 TypeIndex key = entry.first; in BuildParentMap() 373 for (TypeIndex fwd : fwd_keys) { in BuildParentMap() [all …]
|
| H A D | PdbAstBuilder.h | 94 using TypeIndex = llvm::codeview::TypeIndex; variable 125 CreateDeclInfoForType(const llvm::codeview::TagRecord &record, TypeIndex ti); 128 clang::QualType CreateSimpleType(TypeIndex ti); 135 llvm::DenseMap<TypeIndex, TypeIndex> m_parent_types;
|