/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/ |
H A D | AArch64MCTargetDesc.cpp | 20 #include "llvm/DebugInfo/CodeView/CodeView.h" 70 // Mapping from CodeView to MC register id. in initLLVMToCVRegMapping() 72 codeview::RegisterId CVReg; in initLLVMToCVRegMapping() 75 {codeview::RegisterId::ARM64_W0, AArch64::W0}, in initLLVMToCVRegMapping() 76 {codeview::RegisterId::ARM64_W1, AArch64::W1}, in initLLVMToCVRegMapping() 77 {codeview::RegisterId::ARM64_W2, AArch64::W2}, in initLLVMToCVRegMapping() 78 {codeview::RegisterId::ARM64_W3, AArch64::W3}, in initLLVMToCVRegMapping() 79 {codeview::RegisterId::ARM64_W4, AArch64::W4}, in initLLVMToCVRegMapping() 80 {codeview in initLLVMToCVRegMapping() [all...] |
/llvm-project/llvm/test/DebugInfo/COFF/ |
H A D | vframe-fpo.ll | 2 ; RUN: llc < %s -filetype=obj | llvm-readobj --codeview - | FileCheck %s --check-prefix=CODEVIEW 62 ; CODEVIEW: CodeViewDebugInfo [ 63 ; CODEVIEW-NEXT: Section: .debug$S (4) 64 ; CODEVIEW-NEXT: Magic: 0x4 65 ; CODEVIEW-NEXT: Subsection [ 66 ; CODEVIEW-NEXT: SubSectionType: Symbols (0xF1) 67 ; CODEVIEW-NEXT: SubSectionSize: 68 ; CODEVIEW-NEXT: ObjNameSym { 69 ; CODEVIEW-NEXT: Kind: S_OBJNAME (0x1101) 70 ; CODEVIEW: Compile3Sym { [all …]
|
H A D | language.ll | 2 ; RUN: llc -filetype=obj -o - %t | llvm-readobj --codeview - | FileCheck %t 5 ; RUN: llc -filetype=obj -o - %t | llvm-readobj --codeview - | FileCheck %t 8 ; RUN: llc -filetype=obj -o - %t | llvm-readobj --codeview - | FileCheck %t 11 ; RUN: llc -filetype=obj -o - %t | llvm-readobj --codeview - | FileCheck %t 14 ; RUN: llc -filetype=obj -o - %t | llvm-readobj --codeview - | FileCheck %t 17 ; RUN: llc -filetype=obj -o - %t | llvm-readobj --codeview - | FileCheck %t 20 ; RUN: llc -filetype=obj -o - %t | llvm-readobj --codeview - | FileCheck %t 23 ; RUN: llc -filetype=obj -o - %t | llvm-readobj --codeview - | FileCheck %t 26 ; RUN: llc -filetype=obj -o - %t | llvm-readobj --codeview - | FileCheck %t 29 ; RUN: llc -filetype=obj -o - %t | llvm-readobj --codeview - | FileCheck %t [all …]
|
/llvm-project/llvm/lib/Target/X86/MCTargetDesc/ |
H A D | X86MCTargetDesc.cpp | 21 #include "llvm/DebugInfo/CodeView/CodeView.h" 174 // Mapping from CodeView to MC register id. in initLLVMToSEHAndCVRegMapping() 176 codeview::RegisterId CVReg; in initLLVMToSEHAndCVRegMapping() 179 {codeview::RegisterId::AL, X86::AL}, in initLLVMToSEHAndCVRegMapping() 180 {codeview::RegisterId::CL, X86::CL}, in initLLVMToSEHAndCVRegMapping() 181 {codeview::RegisterId::DL, X86::DL}, in initLLVMToSEHAndCVRegMapping() 182 {codeview::RegisterId::BL, X86::BL}, in initLLVMToSEHAndCVRegMapping() 183 {codeview::RegisterId::AH, X86::AH}, in initLLVMToSEHAndCVRegMapping() 184 {codeview in initLLVMToSEHAndCVRegMapping() [all...] |
/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/ |
H A D | PdbUtil.h | 16 #include "llvm/DebugInfo/CodeView/CodeView.h" 17 #include "llvm/DebugInfo/CodeView/SymbolRecord.h" 18 #include "llvm/DebugInfo/CodeView/TypeRecord.h" 40 static CVTagRecord create(llvm::codeview::CVType type); 44 const llvm::codeview::TagRecord &asTag() const { in asTag() 52 const llvm::codeview::ClassRecord &asClass() const { in asClass() 57 const llvm::codeview::EnumRecord &asEnum() const { in asEnum() 62 const llvm::codeview::UnionRecord &asUnion() const { in asUnion() 76 CVTagRecord(llvm::codeview::ClassRecord &&c); 77 CVTagRecord(llvm::codeview::UnionRecord &&u); [all …]
|
H A D | CodeViewRegisterMapping.cpp | 611 llvm::Triple::ArchType arch_type, llvm::codeview::RegisterId register_id) { in GetLLDBRegisterNumber() 629 case llvm::codeview::RegisterId::MXCSR: in GetLLDBRegisterNumber() 631 case llvm::codeview::RegisterId::BND0: in GetLLDBRegisterNumber() 633 case llvm::codeview::RegisterId::BND1: in GetLLDBRegisterNumber() 635 case llvm::codeview::RegisterId::BND2: in GetLLDBRegisterNumber() 654 lldb_private::npdb::GetRegisterSize(llvm::codeview::RegisterId register_id) { in GetRegisterSize() 656 case llvm::codeview::RegisterId::AL: in GetRegisterSize() 657 case llvm::codeview::RegisterId::BL: in GetRegisterSize() 658 case llvm::codeview::RegisterId::CL: in GetRegisterSize() 659 case llvm::codeview::RegisterId::DL: in GetRegisterSize() [all …]
|
H A D | UdtRecordCompleter.h | 15 #include "llvm/DebugInfo/CodeView/CVRecord.h" 16 #include "llvm/DebugInfo/CodeView/TypeRecord.h" 17 #include "llvm/DebugInfo/CodeView/TypeVisitorCallbacks.h" 40 class UdtRecordCompleter : public llvm::codeview::TypeVisitorCallbacks { 46 llvm::codeview::UnionRecord ur; 47 llvm::codeview::ClassRecord cr; 48 llvm::codeview::EnumRecord er; 73 llvm::Error visitKnownMember(llvm::codeview::CVMemberRecord &CVR, \ 74 llvm::codeview::Name##Record &Record) override; 76 #include "llvm/DebugInfo/CodeView/CodeViewTypes.def" [all …]
|
H A D | SymbolFileNativePDB.h | 16 #include "llvm/DebugInfo/CodeView/CVRecord.h" 17 #include "llvm/DebugInfo/CodeView/SymbolRecord.h" 30 namespace codeview { 36 } // namespace codeview 162 std::optional<llvm::codeview::TypeIndex> 163 GetParentType(llvm::codeview::TypeIndex ti); 195 const llvm::codeview::ModifierRecord &mr, 198 const llvm::codeview::PointerRecord &pr, 200 lldb::TypeSP CreateSimpleType(llvm::codeview::TypeIndex ti, CompilerType ct); 202 const llvm::codeview [all...] |
/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/ |
H A D | ARMMCTargetDesc.cpp | 19 #include "llvm/DebugInfo/CodeView/CodeView.h" 224 // Mapping from CodeView to MC register id. in initLLVMToCVRegMapping() 226 codeview::RegisterId CVReg; in initLLVMToCVRegMapping() 229 {codeview::RegisterId::ARM_R0, ARM::R0}, in initLLVMToCVRegMapping() 230 {codeview::RegisterId::ARM_R1, ARM::R1}, in initLLVMToCVRegMapping() 231 {codeview::RegisterId::ARM_R2, ARM::R2}, in initLLVMToCVRegMapping() 232 {codeview::RegisterId::ARM_R3, ARM::R3}, in initLLVMToCVRegMapping() 233 {codeview::RegisterId::ARM_R4, ARM::R4}, in initLLVMToCVRegMapping() 234 {codeview in initLLVMToCVRegMapping() [all...] |
/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | CodeViewDebug.h | 9 // This file contains support for writing Microsoft CodeView debug info. 28 #include "llvm/DebugInfo/CodeView/CodeView.h" 29 #include "llvm/DebugInfo/CodeView/GlobalTypeTableBuilder.h" 30 #include "llvm/DebugInfo/CodeView/TypeIndex.h" 54 /// Collects and handles line tables information in a CodeView format. 93 codeview::GlobalTypeTableBuilder TypeTable; 98 /// The codeview CPU type used by the translation unit. 99 codeview::CPUType TheCPU; 139 codeview::JumpTableEntrySize EntrySize; 163 SmallSet<codeview::TypeIndex, 1> Inlinees; [all …]
|
/llvm-project/llvm/tools/llvm-pdbutil/ |
H A D | MinimalSymbolDumper.h | 12 #include "llvm/DebugInfo/CodeView/SymbolVisitorCallbacks.h" 15 namespace codeview { 23 class MinimalSymbolDumper : public codeview::SymbolVisitorCallbacks { 26 codeview::LazyRandomTypeCollection &Ids, in MinimalSymbolDumper() 27 codeview::LazyRandomTypeCollection &Types) in MinimalSymbolDumper() 31 codeview::LazyRandomTypeCollection &Ids, in MinimalSymbolDumper() 32 codeview::LazyRandomTypeCollection &Types) in MinimalSymbolDumper() 36 Error visitSymbolBegin(codeview::CVSymbol &Record) override; 37 Error visitSymbolBegin(codeview::CVSymbol &Record, uint32_t Offset) override; 38 Error visitSymbolEnd(codeview::CVSymbol &Record) override; [all …]
|
H A D | MinimalTypeDumper.h | 12 #include "llvm/DebugInfo/CodeView/TypeVisitorCallbacks.h" 16 namespace codeview { 25 class MinimalTypeDumpVisitor : public codeview::TypeVisitorCallbacks { 28 bool Hashes, codeview::LazyRandomTypeCollection &Types, in MinimalTypeDumpVisitor() 37 Error visitTypeBegin(codeview::CVType &Record, 38 codeview::TypeIndex Index) override; 39 Error visitTypeEnd(codeview::CVType &Record) override; 40 Error visitMemberBegin(codeview::CVMemberRecord &Record) override; 41 Error visitMemberEnd(codeview::CVMemberRecord &Record) override; 44 Error visitKnownRecord(codeview::CVType &CVR, \ [all …]
|
H A D | TypeReferenceTracker.h | 14 #include "llvm/DebugInfo/CodeView/CVRecord.h" 15 #include "llvm/DebugInfo/CodeView/TypeIndex.h" 16 #include "llvm/DebugInfo/CodeView/TypeIndexDiscovery.h" 35 bool isTypeReferenced(codeview::TypeIndex TI) { in isTypeReferenced() 41 void addTypeRefsFromSymbol(const codeview::CVSymbol &Sym); 45 ArrayRef<codeview::TiReference> Refs); 50 void addOneTypeRef(codeview::TiRefKind RefKind, codeview::TypeIndex RefTI); 53 codeview::LazyRandomTypeCollection &Types; 54 codeview::LazyRandomTypeCollection *Ids = nullptr; 58 SmallVector<std::pair<codeview::TiRefKind, codeview::TypeIndex>, 10>
|
/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/ |
H A D | SymbolCache.h | 13 #include "llvm/DebugInfo/CodeView/CVRecord.h" 14 #include "llvm/DebugInfo/CodeView/CodeView.h" 15 #include "llvm/DebugInfo/CodeView/Line.h" 16 #include "llvm/DebugInfo/CodeView/TypeDeserializer.h" 17 #include "llvm/DebugInfo/CodeView/TypeIndex.h" 26 namespace codeview { 29 } // namespace codeview 50 mutable DenseMap<codeview::TypeIndex, SymIndexId> TypeIndexToSymbolId; 55 mutable DenseMap<std::pair<codeview::TypeIndex, uint32_t>, SymIndexId> 83 codeview::LineInfo Line; [all …]
|
H A D | TpiStream.h | 12 #include "llvm/DebugInfo/CodeView/CVRecord.h" 22 namespace codeview { 53 FixedStreamArray<codeview::TypeIndexOffset> getTypeIndexOffsets() const; 56 codeview::CVTypeRange types(bool *HadError) const; 57 const codeview::CVTypeArray &typeArray() const { return TypeRecords; } in typeArray() 59 codeview::LazyRandomTypeCollection &typeCollection() { return *Types; } in typeCollection() 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); [all …]
|
H A D | GSIStreamBuilder.h | 13 #include "llvm/DebugInfo/CodeView/CVRecord.h" 14 #include "llvm/DebugInfo/CodeView/CodeView.h" 21 namespace codeview { 25 } // namespace codeview 28 template <> struct BinaryItemTraits<codeview::CVSymbol> { 29 static size_t length(const codeview::CVSymbol &Item) { 32 static ArrayRef<uint8_t> bytes(const codeview::CVSymbol &Item) { 66 void addGlobalSymbol(const codeview::ProcRefSym &Sym); 67 void addGlobalSymbol(const codeview::DataSym &Sym); 68 void addGlobalSymbol(const codeview::ConstantSym &Sym); [all …]
|
H A D | ModuleDebugStream.h | 13 #include "llvm/DebugInfo/CodeView/CVRecord.h" 14 #include "llvm/DebugInfo/CodeView/DebugSubsectionRecord.h" 23 namespace codeview { 32 using DebugSubsectionIterator = codeview::DebugSubsectionArray::Iterator; 45 iterator_range<codeview::CVSymbolArray::Iterator> 48 const codeview::CVSymbolArray &getSymbolArray() const { return SymbolArray; } in getSymbolArray() 49 const codeview::CVSymbolArray 59 codeview::CVSymbol readSymbolAtOffset(uint32_t Offset) const; 62 codeview::DebugSubsectionArray getSubsectionsArray() const { in getSubsectionsArray() 70 Expected<codeview::DebugChecksumsSubsectionRef> [all …]
|
H A D | NativeTypeUDT.h | 12 #include "llvm/DebugInfo/CodeView/TypeIndex.h" 13 #include "llvm/DebugInfo/CodeView/TypeRecord.h" 26 NativeTypeUDT(NativeSession &Session, SymIndexId Id, codeview::TypeIndex TI, 27 codeview::ClassRecord Class); 29 NativeTypeUDT(NativeSession &Session, SymIndexId Id, codeview::TypeIndex TI, 30 codeview::UnionRecord Union); 34 codeview::ModifierRecord Modifier); 64 codeview::TypeIndex Index; 66 std::optional<codeview::ClassRecord> Class; 67 std::optional<codeview::UnionRecord> Union; [all …]
|
H A D | NativeTypeFunctionSig.h | 12 #include "llvm/DebugInfo/CodeView/TypeIndex.h" 13 #include "llvm/DebugInfo/CodeView/TypeRecord.h" 27 codeview::TypeIndex TI, codeview::ProcedureRecord Proc); 30 codeview::TypeIndex TI, 31 codeview::MemberFunctionRecord MemberFunc); 54 void initializeArgList(codeview::TypeIndex ArgListTI); 57 codeview::MemberFunctionRecord MemberFunc; 58 codeview::ProcedureRecord Proc; 62 codeview::TypeIndex Index; 63 codeview::ArgListRecord ArgList;
|
/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
H A D | SymbolCache.cpp | 3 #include "llvm/DebugInfo/CodeView/DebugChecksumsSubsection.h" 4 #include "llvm/DebugInfo/CodeView/DebugLinesSubsection.h" 5 #include "llvm/DebugInfo/CodeView/DebugSubsectionRecord.h" 6 #include "llvm/DebugInfo/CodeView/LazyRandomTypeCollection.h" 7 #include "llvm/DebugInfo/CodeView/SymbolDeserializer.h" 8 #include "llvm/DebugInfo/CodeView/SymbolRecord.h" 9 #include "llvm/DebugInfo/CodeView/TypeDeserializer.h" 10 #include "llvm/DebugInfo/CodeView/TypeRecord.h" 11 #include "llvm/DebugInfo/CodeView/TypeRecordHelpers.h" 42 using namespace llvm::codeview; [all...] |
H A D | NativeExeSymbol.cpp | 11 #include "llvm/DebugInfo/CodeView/CodeView.h" 43 return Session.getSymbolCache().createTypeEnumerator(codeview::LF_ARRAY); in findChildren() 45 return Session.getSymbolCache().createTypeEnumerator(codeview::LF_ENUM); in findChildren() 47 return Session.getSymbolCache().createTypeEnumerator(codeview::LF_POINTER); in findChildren() 50 {codeview::LF_STRUCTURE, codeview::LF_CLASS, codeview::LF_UNION, in findChildren() 51 codeview::LF_INTERFACE}); in findChildren() 53 return Session.getSymbolCache().createTypeEnumerator(codeview in findChildren() [all...] |
/llvm-project/llvm/include/llvm/ObjectYAML/ |
H A D | CodeViewYAMLDebugSections.h | 1 //=- CodeViewYAMLDebugSections.h - CodeView YAMLIO debug sections -*- C++ -*-=// 9 // This file defines classes for handling the YAML representation of CodeView 19 #include "llvm/DebugInfo/CodeView/CodeView.h" 20 #include "llvm/DebugInfo/CodeView/DebugSubsection.h" 21 #include "llvm/DebugInfo/CodeView/DebugSubsectionRecord.h" 30 namespace codeview { 35 } // end namespace codeview 86 codeview::FileChecksumKind Kind; 93 codeview::LineFlags Flags; 112 fromCodeViewSubection(const codeview::StringsAndChecksumsRef &SC, [all …]
|
/llvm-project/llvm/lib/DebugInfo/CodeView/ |
H A D | DebugSubsectionVisitor.cpp | 9 #include "llvm/DebugInfo/CodeView/DebugSubsectionVisitor.h" 11 #include "llvm/DebugInfo/CodeView/CodeView.h" 12 #include "llvm/DebugInfo/CodeView/DebugChecksumsSubsection.h" 13 #include "llvm/DebugInfo/CodeView/DebugCrossExSubsection.h" 14 #include "llvm/DebugInfo/CodeView/DebugCrossImpSubsection.h" 15 #include "llvm/DebugInfo/CodeView/DebugFrameDataSubsection.h" 16 #include "llvm/DebugInfo/CodeView/DebugInlineeLinesSubsection.h" 17 #include "llvm/DebugInfo/CodeView/DebugLinesSubsection.h" 18 #include "llvm/DebugInfo/CodeView/DebugStringTableSubsectio [all...] |
H A D | RecordSerialization.cpp | 9 // Utilities for serializing and deserializing CodeView records. 13 #include "llvm/DebugInfo/CodeView/RecordSerialization.h" 16 #include "llvm/DebugInfo/CodeView/CVRecord.h" 17 #include "llvm/DebugInfo/CodeView/CodeViewError.h" 18 #include "llvm/DebugInfo/CodeView/SymbolRecord.h" 22 using namespace llvm::codeview; 27 StringRef llvm::codeview::getBytesAsCharacters(ArrayRef<uint8_t> LeafData) { in getBytesAsCharacters() 32 StringRef llvm::codeview::getBytesAsCString(ArrayRef<uint8_t> LeafData) { in getBytesAsCString() 36 Error llvm::codeview::consume(BinaryStreamReader &Reader, APSInt &Num) { in consume() 104 Error llvm::codeview::consume(StringRef &Data, APSInt &Num) { in consume() [all …]
|
/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
H A D | TypeHashing.h | 16 #include "llvm/DebugInfo/CodeView/CVRecord.h" 17 #include "llvm/DebugInfo/CodeView/TypeCollection.h" 18 #include "llvm/DebugInfo/CodeView/TypeIndex.h" 26 namespace codeview { 181 } // namespace codeview 183 template <> struct DenseMapInfo<codeview::LocallyHashedType> { 184 static codeview::LocallyHashedType Empty; 185 static codeview::LocallyHashedType Tombstone; 187 static codeview::LocallyHashedType getEmptyKey() { return Empty; } 189 static codeview::LocallyHashedType getTombstoneKey() { return Tombstone; } [all …]
|