Home
last modified time | relevance | path

Searched refs:DwarfVersion (Results 1 – 25 of 37) sorted by relevance

12

/llvm-project-15.0.7/llvm/unittests/MC/
H A DDwarfLineTableHeaders.cpp185 ArrayRef<uint8_t> Expected, uint8_t DwarfVersion) { in readAndCheckDebugContents() argument
192 if (DwarfVersion >= 5) in readAndCheckDebugContents()
208 constexpr uint8_t DwarfVersion = 4; in TEST_F() local
209 C.Ctx->setDwarfVersion(DwarfVersion); in TEST_F()
215 /* DWARF version=*/DwarfVersion, 0, in TEST_F()
222 /* opcode_base=*/13}, DwarfVersion); in TEST_F()
232 constexpr uint8_t DwarfVersion = 5; in TEST_F() local
233 C.Ctx->setDwarfVersion(DwarfVersion); in TEST_F()
239 /* DWARF version=*/DwarfVersion, 0, in TEST_F()
248 /* opcode_base=*/13}, DwarfVersion); in TEST_F()
/llvm-project-15.0.7/llvm/unittests/CodeGen/
H A DTestAsmPrinter.cpp32 TestAsmPrinter::create(const std::string &TripleStr, uint16_t DwarfVersion, in create() argument
41 TestPrinter->init(TheTarget, TripleStr, DwarfVersion, DwarfFormat)) in create()
50 uint16_t DwarfVersion, in init() argument
73 MC->setDwarfVersion(DwarfVersion); in init()
74 Asm->setDwarfVersion(DwarfVersion); in init()
H A DAsmPrinterDwarfTest.cpp29 void setupTestPrinter(const std::string &TripleStr, unsigned DwarfVersion, in setupTestPrinter() argument
32 TestAsmPrinter::create(TripleStr, DwarfVersion, DwarfFormat); in setupTestPrinter()
38 bool init(const std::string &TripleStr, unsigned DwarfVersion, in init() argument
40 setupTestPrinter(TripleStr, DwarfVersion, DwarfFormat); in init()
49 bool init(const std::string &TripleStr, unsigned DwarfVersion, in init() argument
51 if (!AsmPrinterFixtureBase::init(TripleStr, DwarfVersion, DwarfFormat)) in init()
137 bool init(const std::string &TripleStr, unsigned DwarfVersion, in init() argument
139 if (!AsmPrinterFixtureBase::init(TripleStr, DwarfVersion, DwarfFormat)) in init()
201 bool init(const std::string &TripleStr, unsigned DwarfVersion, in init() argument
327 bool init(const std::string &TripleStr, unsigned DwarfVersion, in init() argument
[all …]
H A DTestAsmPrinter.h62 uint16_t DwarfVersion, dwarf::DwarfFormat DwarfFormat);
69 create(const std::string &TripleStr, uint16_t DwarfVersion,
/llvm-project-15.0.7/llvm/lib/MC/
H A DMCTargetOptionsCommandFlags.cpp39 MCOPT(int, DwarfVersion) in MCOPT_EXP()
67 static cl::opt<int> DwarfVersion("dwarf-version", cl::desc("Dwarf version"), in MCOPT_EXP() local
69 MCBINDOPT(DwarfVersion); in MCOPT_EXP()
125 Options.DwarfVersion = getDwarfVersion(); in InitMCTargetOptionsFromFlags()
H A DMCDwarf.cpp566 uint16_t DwarfVersion, in tryGetFile() argument
568 return Header.tryGetFile(Directory, FileName, Checksum, Source, DwarfVersion, in tryGetFile()
584 uint16_t DwarfVersion, in tryGetFile() argument
599 if (DwarfVersion >= 5 && isRootFile(RootFile, Directory, FileName, Checksum)) in tryGetFile()
1552 static unsigned getCIEVersion(bool IsEH, unsigned DwarfVersion) { in getCIEVersion() argument
1555 switch (DwarfVersion) { in getCIEVersion()
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfExpression.h153 unsigned DwarfVersion : 4; variable
286 DwarfExpression(unsigned DwarfVersion, DwarfCompileUnit &CU) in DwarfExpression() argument
289 LocationFlags(Unknown), DwarfVersion(DwarfVersion) {} in DwarfExpression()
400 DebugLocDwarfExpression(unsigned DwarfVersion, BufferByteStreamer &BS, in DebugLocDwarfExpression() argument
402 : DwarfExpression(DwarfVersion, CU), OutBS(BS) {} in DebugLocDwarfExpression()
H A DDwarfDebug.cpp339 if (DwarfVersion >= 5) in computeAccelTableKind()
389 DwarfVersion = in DwarfDebug()
390 TT.isNVPTX() ? 2 : (DwarfVersion ? DwarfVersion : dwarf::DWARF_VERSION); in DwarfDebug()
429 UseGNUTLSOpcode = tuneForGDB() || DwarfVersion < 3; in DwarfDebug()
432 UseDWARF2Bitfields = (DwarfVersion < 4) || tuneForGDB(); in DwarfDebug()
438 UseSegmentedStringOffsetsTable = DwarfVersion >= 5; in DwarfDebug()
455 if (DwarfVersion >= 5) { in DwarfDebug()
464 Asm->OutStreamer->getContext().setDwarfVersion(DwarfVersion); in DwarfDebug()
2106 uint16_t DwarfVersion, in recordSourceLine() argument
2113 if (Line != 0 && DwarfVersion >= 4) in recordSourceLine()
[all …]
H A DDwarfExpression.cpp186 if (DwarfVersion >= 4) in addStackValue()
308 DwarfVersion >= 4) in addMachineRegExpression()
323 if (DwarfVersion < 4) in addMachineRegExpression()
592 if (DwarfVersion >= 5 && CU.getDwarfDebug().useOpConvert()) { in addExpression()
/llvm-project-15.0.7/llvm/tools/llvm-mc/
H A Dllvm-mc.cpp439 unsigned DwarfVersion = MCOptions.DwarfVersion ? MCOptions.DwarfVersion : 4; in main() local
440 if (DwarfVersion < 2 || DwarfVersion > 5) { in main()
441 errs() << ProgName << ": Dwarf version " << DwarfVersion in main()
445 Ctx.setDwarfVersion(DwarfVersion); in main()
448 if (DwarfVersion < 3) { in main()
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFExpression.h57 enum DwarfVersion : uint8_t { enum
67 DwarfVersion Version; ///< Dwarf version where the Op was introduced.
70 Description(DwarfVersion Version = DwarfNA, Encoding Op1 = SizeNA,
/llvm-project-15.0.7/llvm/lib/DWARFLinker/
H A DDWARFStreamer.cpp118 void DwarfStreamer::switchToDebugInfoSection(unsigned DwarfVersion) { in switchToDebugInfoSection() argument
120 MC->setDwarfVersion(DwarfVersion); in switchToDebugInfoSection()
140 unsigned DwarfVersion) { in emitCompileUnitHeader() argument
141 switchToDebugInfoSection(DwarfVersion); in emitCompileUnitHeader()
151 Asm->emitInt16(DwarfVersion); in emitCompileUnitHeader()
153 if (DwarfVersion >= 5) { in emitCompileUnitHeader()
176 unsigned DwarfVersion) { in emitAbbrevs() argument
178 MC->setDwarfVersion(DwarfVersion); in emitAbbrevs()
233 if (DwarfVersion >= 5) { in emitStrings()
237 Asm->emitInt16(DwarfVersion); in emitStrings()
H A DDWARFLinkerCompileUnit.cpp70 uint64_t CompileUnit::computeNextUnitOffset(uint16_t DwarfVersion) { in computeNextUnitOffset() argument
73 NextUnitOffset += (DwarfVersion >= 5) ? 12 : 11; // Header size in computeNextUnitOffset()
/llvm-project-15.0.7/llvm/include/llvm/DWARFLinker/
H A DDWARFStreamer.h62 void switchToDebugInfoSection(unsigned DwarfVersion);
69 void emitCompileUnitHeader(CompileUnit &Unit, unsigned DwarfVersion) override;
76 unsigned DwarfVersion) override;
H A DDWARFLinker.h98 unsigned DwarfVersion) = 0;
175 unsigned DwarfVersion) = 0;
H A DDWARFLinkerCompileUnit.h161 uint64_t computeNextUnitOffset(uint16_t DwarfVersion);
/llvm-project-15.0.7/bolt/include/bolt/Core/
H A DDebugData.h482 DebugLocWriter(uint8_t DwarfVersion, LocWriterKind Kind) in DebugLocWriter() argument
483 : DwarfVersion(DwarfVersion), Kind(Kind) { in DebugLocWriter()
504 uint8_t getDwarfVersion() const { return DwarfVersion; } in getDwarfVersion()
523 uint8_t DwarfVersion{4};
550 if (DwarfVersion >= 5) { in DebugLoclistWriter()
1122 uint16_t DwarfVersion; variable
1135 uint16_t DwarfVersion,
1139 DwarfVersion, FileNumber);
1176 void setDwarfVersion(uint16_t V) { DwarfVersion = V; } in setDwarfVersion()
1179 uint16_t getDwarfVersion() const { return DwarfVersion; } in getDwarfVersion()
/llvm-project-15.0.7/llvm/include/llvm/MC/
H A DMCDwarf.h275 uint16_t DwarfVersion,
335 Optional<MD5::MD5Result> Checksum, uint16_t DwarfVersion, in getFile() argument
339 DwarfVersion)); in getFile()
366 uint16_t DwarfVersion,
370 uint16_t DwarfVersion, unsigned FileNumber = 0) {
372 DwarfVersion, FileNumber));
H A DMCTargetOptions.h67 int DwarfVersion = 0; variable
H A DMCContext.h232 uint16_t DwarfVersion = 4; variable
826 void setDwarfVersion(uint16_t v) { DwarfVersion = v; } in setDwarfVersion()
827 uint16_t getDwarfVersion() const { return DwarfVersion; } in getDwarfVersion()
/llvm-project-15.0.7/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugLine.cpp74 uint16_t DwarfVersion = getVersion(); in hasFileAtIndex() local
75 assert(DwarfVersion != 0 && in hasFileAtIndex()
77 if (DwarfVersion >= 5) in hasFileAtIndex()
85 uint16_t DwarfVersion = getVersion(); in getLastValidFileIndex() local
86 assert(DwarfVersion != 0 && in getLastValidFileIndex()
89 if (DwarfVersion >= 5) in getLastValidFileIndex()
96 uint16_t DwarfVersion = getVersion(); in getFileNameEntry() local
97 assert(DwarfVersion != 0 && in getFileNameEntry()
100 if (DwarfVersion >= 5) in getFileNameEntry()
/llvm-project-15.0.7/llvm/unittests/DebugInfo/DWARF/
H A DDwarfGenerator.h274 llvm::Error init(Triple TheTriple, uint16_t DwarfVersion);
286 create(Triple TheTriple, uint16_t DwarfVersion);
H A DDwarfGenerator.cpp406 dwarfgen::Generator::create(Triple TheTriple, uint16_t DwarfVersion) { in create() argument
408 llvm::Error error = GenUP->init(TheTriple, DwarfVersion); in create()
/llvm-project-15.0.7/clang/tools/driver/
H A Dcc1as_main.cpp95 unsigned DwarfVersion; member
171 DwarfVersion = 0; in AssemblerInvocation()
247 Opts.DwarfVersion = getLastArgIntValue(Args, OPT_dwarf_version_EQ, 2, Diags); in CreateFromArgs()
456 Ctx.setDwarfVersion(Opts.DwarfVersion); in ExecuteAssemblerImpl()
/llvm-project-15.0.7/bolt/lib/Core/
H A DBinaryContext.cpp1652 uint16_t DwarfVersion = LineTable->Prologue.getVersion(); in preprocessDebugInfo() local
1653 if (DwarfVersion >= 5) { in preprocessDebugInfo()
1669 BinaryLineTable.setDwarfVersion(DwarfVersion); in preprocessDebugInfo()
1675 getDwarfFile("", "<unknown>", 0, None, None, CUID, DwarfVersion)); in preprocessDebugInfo()
1678 const uint32_t Offset = DwarfVersion < 5 ? 1 : 0; in preprocessDebugInfo()
1683 if (FileNames[I].DirIdx != 0 || DwarfVersion >= 5) in preprocessDebugInfo()
1693 if (DwarfVersion >= 5 && LineTable->Prologue.ContentTypes.HasMD5) in preprocessDebugInfo()
1696 getDwarfFile(Dir, FileName, 0, Checksum, None, CUID, DwarfVersion)); in preprocessDebugInfo()

12