/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/CodeView/ |
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() 137 static TypeIndex None() { return TypeIndex(SimpleTypeKind::None); } in None() 138 static TypeIndex Void() { return TypeIndex(SimpleTypeKind::Void); } in Void() 139 static TypeIndex VoidPointer32() { in VoidPointer32() [all …]
|
D | TypeRecord.h | 106 MemberPointerInfo(TypeIndex ContainingType, in MemberPointerInfo() 110 TypeIndex getContainingType() const { return ContainingType; } in getContainingType() 115 TypeIndex ContainingType; 135 ModifierRecord(TypeIndex ModifiedType, ModifierOptions Modifiers) in ModifierRecord() 139 TypeIndex getModifiedType() const { return ModifiedType; } in getModifiedType() 142 TypeIndex ModifiedType; 151 ProcedureRecord(TypeIndex ReturnType, CallingConvention CallConv, in ProcedureRecord() 153 TypeIndex ArgumentList) in ProcedureRecord() 158 TypeIndex getReturnType() const { return ReturnType; } in getReturnType() 162 TypeIndex getArgumentList() const { return ArgumentList; } in getArgumentList() [all …]
|
D | LazyRandomTypeCollection.h | 72 uint32_t getOffsetOfType(TypeIndex Index); 74 Optional<CVType> tryGetType(TypeIndex Index); 76 CVType getType(TypeIndex Index) override; 77 StringRef getTypeName(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); [all …]
|
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 …]
|
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 …]
|
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()
|
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, 90 SmallVectorImpl<TypeIndex> &SourceToDest, 95 SmallVectorImpl<TypeIndex> &SourceToDest, 99 Error mergeIdRecords(GlobalTypeTableBuilder &Dest, ArrayRef<TypeIndex> Types, 100 SmallVectorImpl<TypeIndex> &SourceToDest,
|
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()
|
/external/llvm/include/llvm/DebugInfo/CodeView/ |
D | TypeIndex.h | 89 class TypeIndex { 96 TypeIndex() : Index(0) {} in TypeIndex() function 97 explicit TypeIndex(uint32_t Index) : Index(Index) {} in TypeIndex() function 98 explicit TypeIndex(SimpleTypeKind Kind) in TypeIndex() function 100 TypeIndex(SimpleTypeKind Kind, SimpleTypeMode Mode) in TypeIndex() function 118 static TypeIndex None() { return TypeIndex(SimpleTypeKind::None); } in None() 119 static TypeIndex Void() { return TypeIndex(SimpleTypeKind::Void); } in Void() 120 static TypeIndex VoidPointer32() { in VoidPointer32() 121 return TypeIndex(SimpleTypeKind::Void, SimpleTypeMode::NearPointer32); in VoidPointer32() 123 static TypeIndex VoidPointer64() { in VoidPointer64() [all …]
|
D | TypeRecord.h | 78 MemberPointerInfo(TypeIndex ContainingType, in MemberPointerInfo() 84 bool remapTypeIndices(ArrayRef<TypeIndex> IndexMap); 88 TypeIndex getContainingType() const { return ContainingType; } in getContainingType() 95 TypeIndex ClassType; 99 TypeIndex ContainingType; 117 ModifierRecord(TypeIndex ModifiedType, ModifierOptions Modifiers) in ModifierRecord() 123 bool remapTypeIndices(ArrayRef<TypeIndex> IndexMap); 128 TypeIndex getModifiedType() const { return ModifiedType; } in getModifiedType() 133 TypeIndex ModifiedType; 137 TypeIndex ModifiedType; [all …]
|
D | TypeTableBuilder.h | 40 TypeIndex writeModifier(const ModifierRecord &Record); 41 TypeIndex writeProcedure(const ProcedureRecord &Record); 42 TypeIndex writeMemberFunction(const MemberFunctionRecord &Record); 43 TypeIndex writeArgList(const ArgListRecord &Record); 44 TypeIndex writePointer(const PointerRecord &Record); 45 TypeIndex writeArray(const ArrayRecord &Record); 46 TypeIndex writeClass(const ClassRecord &Record); 47 TypeIndex writeUnion(const UnionRecord &Record); 48 TypeIndex writeEnum(const EnumRecord &Record); 49 TypeIndex writeBitField(const BitFieldRecord &Record); [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/DebugInfo/CodeView/ |
D | TypeIndexDiscoveryTest.cpp | 92 TypeIndex TI) const { in checkOneTypeReference() 98 ArrayRef<TypeIndex> Indices( in checkOneTypeReference() 99 reinterpret_cast<const TypeIndex *>(Loc.data()), Ref.Count); in checkOneTypeReference() 101 [TI](const TypeIndex &Other) { return Other == TI; })) in checkOneTypeReference() 116 TypeIndex TI, Indices &&... Rest) const { in checkTypeReferencesImpl() 174 static FuncIdRecord FuncId(TypeIndex(1), TypeIndex(2), "FuncId"); 175 static MemberFuncIdRecord MemFuncId(TypeIndex(3), TypeIndex(4), "FuncId"); 176 static StringIdRecord StringId(TypeIndex(5), "TheString"); 178 std::vector<TypeIndex> Ids = {TypeIndex(6), TypeIndex(7), TypeIndex(8)}; 182 std::vector<TypeIndex> Ids = {TypeIndex(9), TypeIndex(10), TypeIndex(11)}; [all …]
|
D | TypeHashingTest.cpp | 18 static TypeIndex createPointerRecord(AppendingTypeTableBuilder &Builder, in createPointerRecord() 19 TypeIndex TI) { in createPointerRecord() 27 static TypeIndex createArgListRecord(AppendingTypeTableBuilder &Builder, in createArgListRecord() 28 TypeIndex Q, TypeIndex R) { in createArgListRecord() 35 static TypeIndex createProcedureRecord(AppendingTypeTableBuilder &Builder, in createProcedureRecord() 36 uint32_t ParamCount, TypeIndex Return, in createProcedureRecord() 37 TypeIndex ArgList) { in createProcedureRecord() 48 TypeIndex TI) { in hash_of() 65 TypeIndex CharStar(SimpleTypeKind::SignedCharacter, in TEST() 72 TypeIndex CharP(SimpleTypeKind::SignedCharacter, SimpleTypeMode::NearPointer); in TEST() [all …]
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | CodeViewDebug.h | 124 codeview::TypeIndex getFuncIdForSubprogram(const DISubprogram *SP); 146 DenseMap<std::pair<const DINode *, const DIType *>, codeview::TypeIndex> 151 DenseMap<const DICompositeType *, codeview::TypeIndex> CompleteTypeIndices; 160 codeview::TypeIndex VBPType; 166 std::vector<std::pair<std::string, codeview::TypeIndex>> LocalUDTs, 199 ArrayRef<std::pair<std::string, codeview::TypeIndex>> UDTs); 231 codeview::TypeIndex getTypeIndex(DITypeRef TypeRef, 234 codeview::TypeIndex getMemberFunctionType(const DISubprogram *SP, 237 codeview::TypeIndex getScopeIndex(const DIScope *Scope); 239 codeview::TypeIndex getVBPTypeIndex(); [all …]
|
D | CodeViewDebug.cpp | 197 TypeIndex CodeViewDebug::getScopeIndex(const DIScope *Scope) { in getScopeIndex() 200 return TypeIndex(); in getScopeIndex() 211 TypeIndex TI = in getScopeIndex() 212 TypeTable.writeStringId(StringIdRecord(TypeIndex(), ScopeName)); in getScopeIndex() 216 TypeIndex CodeViewDebug::getFuncIdForSubprogram(const DISubprogram *SP) { in getFuncIdForSubprogram() 220 return TypeIndex::None(); in getFuncIdForSubprogram() 232 TypeIndex TI; in getFuncIdForSubprogram() 237 TypeIndex ClassType = getTypeIndex(Class); in getFuncIdForSubprogram() 243 TypeIndex ParentScope = getScopeIndex(Scope); in getFuncIdForSubprogram() 251 TypeIndex CodeViewDebug::getMemberFunctionType(const DISubprogram *SP, in getMemberFunctionType() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/CodeView/ |
D | TypeStreamMerger.cpp | 23 static inline size_t slotForIndex(TypeIndex Idx) { in slotForIndex() 25 return Idx.getIndex() - TypeIndex::FirstNonSimpleIndex; in slotForIndex() 64 explicit TypeStreamMerger(SmallVectorImpl<TypeIndex> &SourceToDest) in TypeStreamMerger() 69 static const TypeIndex Untranslated; 76 ArrayRef<TypeIndex> TypeSourceToDest, 87 ArrayRef<TypeIndex> TypeSourceToDest, 100 void addMapping(TypeIndex Idx); 102 inline bool remapTypeIndex(TypeIndex &Idx) { in remapTypeIndex() 114 inline bool remapItemIndex(TypeIndex &Idx) { in remapItemIndex() 130 inline bool remapIndex(TypeIndex &Idx, ArrayRef<TypeIndex> Map) { in remapIndex() [all …]
|
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() 62 StringRef AppendingTypeTableBuilder::getTypeName(TypeIndex Index) { in getTypeName() 66 bool AppendingTypeTableBuilder::contains(TypeIndex Index) { in contains() 83 TypeIndex 85 TypeIndex NewTI = nextTypeIndex(); in insertRecordBytes() [all …]
|
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() 64 StringRef MergingTypeTableBuilder::getTypeName(TypeIndex Index) { in getTypeName() 68 bool MergingTypeTableBuilder::contains(TypeIndex Index) { in contains() 95 TypeIndex MergingTypeTableBuilder::insertRecordAs(hash_code Hash, in insertRecordAs() 110 TypeIndex ActualTI = Result.first->second; in insertRecordAs() [all …]
|
D | LazyRandomTypeCollection.cpp | 84 uint32_t LazyRandomTypeCollection::getOffsetOfType(TypeIndex Index) { in getOffsetOfType() 91 CVType LazyRandomTypeCollection::getType(TypeIndex Index) { in getType() 99 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() 165 Error LazyRandomTypeCollection::visitRangeForType(TypeIndex TI) { in visitRangeForType() 170 [](TypeIndex Value, const TypeIndexOffset &IO) { in visitRangeForType() [all …]
|
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 …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | type_index.h | 38 class TypeIndex { 40 TypeIndex(const TypeIndex& src) : hash_(src.hash_), name_(src.name_) {} in TypeIndex() function 41 TypeIndex& operator=(const TypeIndex& src) { 46 bool operator==(const TypeIndex& rhs) const { return (hash_ == rhs.hash_); } 47 bool operator!=(const TypeIndex& rhs) const { return (hash_ != rhs.hash_); } 48 ~TypeIndex() {} in ~TypeIndex() 56 static TypeIndex Make(const char* name) { in Make() 58 return TypeIndex(static_cast<uint64>(reinterpret_cast<intptr_t>(hash_bit)), in Make() 65 explicit TypeIndex(const uint64 hash, const char* name) in TypeIndex() function 72 inline TypeIndex MakeTypeIndex() { in MakeTypeIndex() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/AsmPrinter/ |
D | CodeViewDebug.h | 176 codeview::TypeIndex getFuncIdForSubprogram(const DISubprogram *SP); 202 DenseMap<std::pair<const DINode *, const DIType *>, codeview::TypeIndex> 207 DenseMap<const DICompositeType *, codeview::TypeIndex> CompleteTypeIndices; 216 codeview::TypeIndex VBPType; 314 codeview::TypeIndex getTypeIndex(DITypeRef TypeRef, 317 codeview::TypeIndex getTypeIndexForReferenceTo(DITypeRef TypeRef); 319 codeview::TypeIndex getMemberFunctionType(const DISubprogram *SP, 322 codeview::TypeIndex getScopeIndex(const DIScope *Scope); 324 codeview::TypeIndex getVBPTypeIndex(); 328 void addUDTSrcLine(const DIType *Ty, codeview::TypeIndex TI); [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | sparse_utils.cc | 140 #define REGISTER_SPARSE_UTIL_FUNCTIONS(TypeIndex) \ argument 141 template TypeIndex FindNextDenseRowStartIndex<TypeIndex>( \ 142 const TypeIndex sparse_index_begin, \ 143 const TTypes<TypeIndex>::ConstMatrix& indices_mat); \ 144 template std::vector<TypeIndex> GetStartIndicesOfEachDenseRow<TypeIndex>( \ 145 const TTypes<TypeIndex>::ConstMatrix& indices_mat, \ 147 template bool ContainsEmptyRows<TypeIndex>( \ 148 const std::vector<TypeIndex>& row_start_indices); \ 149 template std::vector<TypeIndex> ParseRowStartIndices<TypeIndex>( \ 151 const TypeIndex num_nonzero_entries_in_sparse_mat);
|
/external/llvm/lib/DebugInfo/CodeView/ |
D | TypeTableBuilder.cpp | 24 TypeIndex TypeTableBuilder::writeModifier(const ModifierRecord &Record) { in writeModifier() 33 TypeIndex TypeTableBuilder::writeProcedure(const ProcedureRecord &Record) { in writeProcedure() 45 TypeIndex 61 TypeIndex TypeTableBuilder::writeArgList(const ArgListRecord &Record) { in writeArgList() 65 for (TypeIndex TI : Record.getIndices()) { in writeArgList() 72 TypeIndex TypeTableBuilder::writePointer(const PointerRecord &Record) { in writePointer() 93 TypeIndex TypeTableBuilder::writeArray(const ArrayRecord &Record) { in writeArray() 104 TypeIndex TypeTableBuilder::writeClass(const ClassRecord &Record) { in writeClass() 131 TypeIndex TypeTableBuilder::writeUnion(const UnionRecord &Record) { in writeUnion() 148 TypeIndex TypeTableBuilder::writeEnum(const EnumRecord &Record) { in writeEnum() [all …]
|
D | TypeRecord.cpp | 27 TypeIndex T = L->ClassType; in deserialize() 40 TypeIndex M = L->ModifiedType; in deserialize() 79 ArrayRef<TypeIndex> Indices; in deserialize() 246 ArrayRef<TypeIndex> Indices; in deserialize() 382 static bool remapIndex(ArrayRef<TypeIndex> IndexMap, TypeIndex &Idx) { in remapIndex() 386 unsigned MapPos = Idx.getIndex() - TypeIndex::FirstNonSimpleIndex; in remapIndex() 394 Idx = TypeIndex(SimpleTypeKind::NotTranslated, SimpleTypeMode::Direct); in remapIndex() 398 bool ModifierRecord::remapTypeIndices(ArrayRef<TypeIndex> IndexMap) { in remapTypeIndices() 402 bool ProcedureRecord::remapTypeIndices(ArrayRef<TypeIndex> IndexMap) { in remapTypeIndices() 409 bool MemberFunctionRecord::remapTypeIndices(ArrayRef<TypeIndex> IndexMap) { in remapTypeIndices() [all …]
|