| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | TypeIndex.h | 96 class TypeIndex { 146 TypeIndex makeDirect() const { return TypeIndex{getSimpleKind()}; } in makeDirect() 148 static TypeIndex None() { return TypeIndex(SimpleTypeKind::None); } in None() 149 static TypeIndex Void() { return TypeIndex(SimpleTypeKind::Void); } in Void() 182 static TypeIndex Int32() { return TypeIndex(SimpleTypeKind::Int32); } in Int32() 188 static TypeIndex Int64() { return TypeIndex(SimpleTypeKind::Int64); } in Int64() 239 friend inline bool operator<(const TypeIndex &A, const TypeIndex &B) { 247 friend inline bool operator>(const TypeIndex &A, const TypeIndex &B) { 255 friend inline TypeIndex operator+(const TypeIndex &A, uint32_t N) { 261 friend inline TypeIndex operator-(const TypeIndex &A, uint32_t N) { [all …]
|
| H A D | TypeRecord.h | 176 MemberFunctionRecord(TypeIndex ReturnType, TypeIndex ClassType, in MemberFunctionRecord() 221 MemberFuncIdRecord(TypeIndex ClassType, TypeIndex FunctionType, in MemberFuncIdRecord() 380 TypeIndex Type; 470 TypeIndex FieldList, TypeIndex DerivationList, in ClassRecord() 547 TypeIndex Type; 605 TypeIndex Id; 640 TypeIndex UDT; 650 UdtModSourceLineRecord(TypeIndex UDT, TypeIndex SourceFile, in UdtModSourceLineRecord() 660 TypeIndex UDT; 745 TypeIndex Type; [all …]
|
| H A D | LazyRandomTypeCollection.h | 69 uint32_t getOffsetOfType(TypeIndex Index); 73 CVType getType(TypeIndex Index) override; 75 bool contains(TypeIndex Index) override; 78 std::optional<TypeIndex> getFirst() override; 79 std::optional<TypeIndex> getNext(TypeIndex Prev) override; 83 Error ensureTypeExists(TypeIndex Index); 84 void ensureCapacityFor(TypeIndex Index); 86 Error visitRangeForType(TypeIndex TI); 87 Error fullScanForType(TypeIndex TI); 88 void visitRange(TypeIndex Begin, uint32_t BeginOffset, TypeIndex End); [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; 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 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; 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 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;
|
| H A D | TypeIndexDiscovery.h | 18 class TypeIndex; variable 31 SmallVectorImpl<TypeIndex> &Indices); 33 SmallVectorImpl<TypeIndex> &Indices); 42 SmallVectorImpl<TypeIndex> &Indices);
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | TypeStreamMerger.cpp | 75 static const TypeIndex Untranslated; 109 void addMapping(TypeIndex Idx); 139 inline bool remapIndex(TypeIndex &Idx, ArrayRef<TypeIndex> Map) { in remapIndex() 146 inline bool remapIndexSimple(TypeIndex &Idx, ArrayRef<TypeIndex> Map) const { in remapIndexSimple() 162 bool remapIndexFallback(TypeIndex &Idx, ArrayRef<TypeIndex> Map); 178 TypeIndex CurIndex{TypeIndex::FirstNonSimpleIndex}; 190 ArrayRef<TypeIndex> TypeLookup; 324 CurIndex = TypeIndex(TypeIndex::FirstNonSimpleIndex); in doit() 356 TypeIndex DestIdx = Untranslated; in remapType() 406 TypeIndex *DestTIs = in remapIndices() [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() 53 bool AppendingTypeTableBuilder::contains(TypeIndex Index) { in contains() 77 TypeIndex 79 TypeIndex NewTI = nextTypeIndex(); in insertRecordBytes() 85 TypeIndex [all …]
|
| H A D | LazyRandomTypeCollection.cpp | 88 CVType LazyRandomTypeCollection::getType(TypeIndex Index) { in getType() 113 return TypeIndex::simpleTypeName(Index); in getTypeName() 133 bool LazyRandomTypeCollection::contains(TypeIndex Index) { in contains() 181 TypeIndex TIB = Prev->Type; in visitRangeForType() 191 TypeIndex TIE; in visitRangeForType() 193 TIE = TypeIndex::fromArrayIndex(capacity()); in visitRangeForType() 202 std::optional<TypeIndex> LazyRandomTypeCollection::getFirst() { in getFirst() 203 TypeIndex TI = TypeIndex::fromArrayIndex(0); in getFirst() 211 std::optional<TypeIndex> LazyRandomTypeCollection::getNext(TypeIndex Prev) { in getNext() 227 TypeIndex CurrentTI = TypeIndex::fromArrayIndex(0); in fullScanForType() [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() 57 bool MergingTypeTableBuilder::contains(TypeIndex Index) { in contains() 101 TypeIndex ActualTI = Result.first->second; in insertRecordAs() 106 TypeIndex 111 TypeIndex [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() 98 TypeIndex 100 TypeIndex TI; in insertRecord() [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-14.2/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; 274 LVType *createBaseType(TypeIndex TI, StringRef TypeName); 348 LVElement *getElement(uint32_t StreamIdx, TypeIndex TI, 370 Error visitUnknownType(CVType &Record, TypeIndex TI); 384 TypeIndex TI, LVElement *Element); 396 TypeIndex TI, LVElement *Element); 408 TypeIndex TI, LVElement *Element); 410 TypeIndex TI, LVElement *Element); [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | CodeViewDebug.h | 163 SmallSet<codeview::TypeIndex, 1> Inlinees; 298 codeview::TypeIndex VBPType; 418 codeview::TypeIndex getTypeIndex(const DIType *Ty, 421 codeview::TypeIndex 430 codeview::TypeIndex getScopeIndex(const DIScope *Scope); 432 codeview::TypeIndex getVBPTypeIndex(); 442 codeview::TypeIndex lowerTypeBasic(const DIBasicType *Ty); 443 codeview::TypeIndex lowerTypePointer( 446 codeview::TypeIndex lowerTypeMemberPointer( 452 codeview::TypeIndex lowerTypeMemberFunction( [all …]
|
| H A D | CodeViewDebug.cpp | 400 TypeIndex TI; in getFuncIdForSubprogram() 770 TypeIndex TI(TypeIndex::FirstNonSimpleIndex); in emitTypeGlobalHashes() 1790 TypeIndex CharType = TypeIndex(SimpleTypeKind::NarrowCharacter); in lowerTypeString() 1805 TypeIndex Index; in lowerTypeBasic() 2077 TypeIndex ReturnTypeIndex = TypeIndex::Void(); in lowerTypeFunction() 2108 TypeIndex ReturnTypeIndex = TypeIndex::Void(); in lowerTypeMemberFunction() 2266 TypeIndex FTI; in lowerTypeEnum() 2451 ClassRecord CR(Kind, 0, CO, TypeIndex(), TypeIndex(), TypeIndex(), 0, in lowerTypeClass() 2536 std::tuple<TypeIndex, TypeIndex, unsigned, bool> 2699 codeview::TypeIndex [all …]
|
| /freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/ |
| H A D | LVCodeViewVisitor.cpp | 50 static TypeIndex getTrueType(TypeIndex &TI) { in getTrueType() 149 using ForwardEntry = std::pair<TypeIndex, TypeIndex>; 154 using ForwardType = std::map<TypeIndex, TypeIndex>; 158 void add(TypeIndex TIForward, TypeIndex TIReference) { in add() 198 TypeIndex find(TypeIndex TIForward) { in find() 212 TypeIndex remap(TypeIndex TI) { in remap() 289 StringRef find(TypeIndex TI) { in find() 551 TypeIndex TI; in visitKnownRecord() 1867 TypeIndex TIArrayType; in visitKnownRecord() 3213 TypeIndex TIR = (TypeIndex)SimpleKind; in createBaseType() [all …]
|
| /freebsd-14.2/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;
|
| /freebsd-14.2/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() 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() 424 Actions.resize(TypeIndex + 1); in setActions() [all …]
|
| /freebsd-14.2/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()
|