| /llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | AccelTable.cpp | 110 : Asm(Asm), Contents(Contents), SkipIdenticalHashes(SkipIdenticalHashes) { in AccelTableWriter() 271 Asm->emitLabelDifference(Hash->Sym, Base, Asm->getDwarfOffsetByteSize()); in emitOffsets() 278 Asm->emitInt32(Magic); in emit() 280 Asm->emitInt16(Version); in emit() 348 Asm->emitInt32(0); in emitData() 353 Header.emit(Asm); in emit() 354 HeaderData.emit(Asm); in emit() 365 AsmPrinter *Asm = Ctx.Asm; in emit() local 503 Asm->emitInt8(0); in emitData() 600 Asm->emitInt8(0); in emit() [all …]
|
| H A D | EHStreamer.cpp | 38 EHStreamer::EHStreamer(AsmPrinter *A) : Asm(A), MMI(Asm->MMI) {} in EHStreamer() 246 for (const auto &MBB : *Asm->MF) { in computeCallSiteTable() 418 MF->getFunction(), *Asm->CurrentFnSym, Asm->TM); in emitExceptionTable() 461 Asm->emitAlignment(Align(4)); in emitExceptionTable() 578 Asm->OutStreamer->emitLabel(Asm->getMBBExceptionSym(Asm->MF->front())); in emitExceptionTable() 594 Asm->emitULEB128(idx); in emitExceptionTable() 606 Asm->emitULEB128(S.Action); in emitExceptionTable() 746 Asm->emitULEB128(S.Action); in emitExceptionTable() 789 Asm->emitAlignment(Align(4)); in emitExceptionTable() 793 Asm->emitAlignment(Align(4)); in emitExceptionTable() [all …]
|
| H A D | AddressPool.cpp | 31 Asm.OutStreamer->AddComment("DWARF version number"); in emitHeader() 32 Asm.emitInt16(Asm.getDwarfVersion()); in emitHeader() 33 Asm.OutStreamer->AddComment("Address size"); in emitHeader() 34 Asm.emitInt8(AddrSize); in emitHeader() 35 Asm.OutStreamer->AddComment("Segment selector size"); in emitHeader() 47 Asm.OutStreamer->switchSection(AddrSection); in emit() 51 if (Asm.getDwarfVersion() >= 5) in emit() 52 EndLabel = emitHeader(Asm, AddrSection); in emit() 56 Asm.OutStreamer->emitLabel(AddressTableBaseSym); in emit() 68 Asm.OutStreamer->emitValue(Entry, Asm.getDataLayout().getPointerSize()); in emit() [all …]
|
| H A D | DwarfStringPool.cpp | 41 auto &MapEntry = getEntryImpl(Asm, Str); in getEntry() 47 auto &MapEntry = getEntryImpl(Asm, Str); in getIndexedEntry() 58 Asm.OutStreamer->switchSection(Section); in emitStringOffsetsTableHeader() 66 Asm.emitInt16(Asm.getDwarfVersion()); in emitStringOffsetsTableHeader() 67 Asm.emitInt16(0); in emitStringOffsetsTableHeader() 72 Asm.OutStreamer->emitLabel(StartSym); in emitStringOffsetsTableHeader() 81 Asm.OutStreamer->switchSection(StrSection); in emit() 104 Asm.OutStreamer->AddComment("string offset=" + in emit() 106 Asm.OutStreamer->emitBytes( in emit() 120 Asm.OutStreamer->switchSection(OffsetSection); in emit() [all …]
|
| H A D | DwarfCFIException.cpp | 32 if (!Asm->MF->getLandingPads().empty()) { in markFunctionEnd() 39 if (shouldEmitCFI && !Asm->MF->hasBBSections()) in endFragment() 40 Asm->OutStreamer->emitCFIEndProc(); in endFragment() 52 if (!Asm->MAI->usesCFIForEH()) in endModule() 66 MCSymbol *Sym = Asm->getSymbol(Personality); in endModule() 67 TLOF.emitPersonalityValue(*Asm->OutStreamer, Asm->getDataLayout(), Sym); in endModule() 73 return Asm->getMBBExceptionSym(*MBB); in getExceptionSym() 132 Asm->TM.Options.ForceDwarfFrameSection) in beginFragment() 133 Asm->OutStreamer->emitCFISections( in beginFragment() 160 Asm->OutStreamer->emitCFILsda(ESP(Asm, MBB), TLOF.getLSDAEncoding()); in beginFragment() [all …]
|
| H A D | ARMException.cpp | 42 Asm->OutStreamer->emitCFISections(false, true); in beginFunction() 47 Asm->OutStreamer->emitCFIStartProc(false); in beginFunction() 64 if (!Asm->MF->getFunction().needsUnwindTableEntry() && in endFunction() 70 MCSymbol *PerSym = Asm->getSymbol(Per); in endFunction() 87 const MachineFunction *MF = Asm->MF; in emitTypeInfos() 91 bool VerboseAsm = Asm->OutStreamer->isVerboseAsm(); in emitTypeInfos() 96 Asm->OutStreamer->AddComment(">> Catch TypeInfos <<"); in emitTypeInfos() 97 Asm->OutStreamer->addBlankLine(); in emitTypeInfos() 104 Asm->emitTTypeReference(GV, TTypeEncoding); in emitTypeInfos() 107 Asm->OutStreamer->emitLabel(TTBaseLabel); in emitTypeInfos() [all …]
|
| H A D | DwarfDebug.cpp | 1731 if (Asm->MF->hasBBSections() && StartLabel == Asm->getFunctionBegin() && in buildLocationList() 2308 *Asm, Asm->getObjFileLowering().getDwarfStrOffSection(), in emitStringOffsetsTableHeader() 2691 Asm->emitInt16(0); in emitDebugLocEntryLocation() 3038 Asm->emitInt8(0); in emitDebugARanges() 3135 if (Asm->isDwarf64()) { in emitMacroHeader() 3178 Asm->emitULEB128( in emitMacro() 3199 Asm->emitInt8('\0'); in emitMacro() 3252 Asm->emitInt8(0); in emitDebugMacinfoImpl() 3326 *Asm, Asm->getObjFileLowering().getDwarfStrOffDWOSection(), in emitStringOffsetsTableHeaderDWO() 3344 AddrPool.emit(*Asm, Asm->getObjFileLowering().getDwarfAddrSection()); in emitDebugAddr() [all …]
|
| H A D | AIXException.cpp | 43 if (Asm->TM.getFunctionSections()) { in emitExceptionInfoTable() 49 raw_svector_ostream(NameStr) << '.' << Asm->MF->getFunction().getName(); in emitExceptionInfoTable() 50 EHInfo = Asm->OutContext.getXCOFFSection(NameStr, EHInfo->getKind(), in emitExceptionInfoTable() 53 Asm->OutStreamer->switchSection(EHInfo); in emitExceptionInfoTable() 55 TargetLoweringObjectFileXCOFF::getEHInfoTableSymbol(Asm->MF); in emitExceptionInfoTable() 56 Asm->OutStreamer->emitLabel(EHInfoLabel); in emitExceptionInfoTable() 59 Asm->emitInt32(0); in emitExceptionInfoTable() 65 Asm->OutStreamer->emitValueToAlignment(PointerSize); in emitExceptionInfoTable() 68 Asm->OutStreamer->emitValue(MCSymbolRefExpr::create(LSDA, Asm->OutContext), in emitExceptionInfoTable() 72 Asm->OutStreamer->emitValue(MCSymbolRefExpr::create(PerSym, Asm->OutContext), in emitExceptionInfoTable() [all …]
|
| H A D | WinException.cpp | 48 auto &OS = *Asm->OutStreamer; in endModule() 98 if (!Asm->MAI->usesWindowsCFI()) { in beginFunction() 148 Asm->OutStreamer->pushSection(); in endFunction() 168 Asm->OutStreamer->popSection(); in endFunction() 216 Asm->emitAlignment(std::max(Asm->MF->getAlignment(), MBB.getAlignment()), in beginFunclet() 342 MCSymbolRefExpr::create(OffsetFrom, Asm->OutContext), Asm->OutContext); in getOffset() 356 if (Asm->MAI->usesWindowsCFI()) { in getFrameIndexOffset() 361 Asm->MF->getSubtarget() in getFrameIndexOffset() 568 auto &OS = *Asm->OutStreamer; in emitCSpecificHandlerTable() 636 auto &OS = *Asm->OutStreamer; in emitSEHActionsForRange() [all …]
|
| H A D | WasmException.cpp | 33 if (!Asm->isPositionIndependent()) { in endModule() 36 Mangler::getNameWithPrefix(NameStr, SymName, Asm->getDataLayout()); in endModule() 37 if (Asm->OutContext.lookupSymbol(NameStr)) { in endModule() 38 MCSymbol *ExceptionSym = Asm->GetExternalSymbolSymbol(SymName); in endModule() 39 Asm->OutStreamer->emitLabel(ExceptionSym); in endModule() 47 if (!Asm->MF->getLandingPads().empty()) { in markFunctionEnd() 48 auto *NonConstMF = const_cast<MachineFunction *>(Asm->MF); in markFunctionEnd() 72 Asm->OutStreamer->emitLabel(LSDAEndLabel); in endFunction() 73 MCContext &OutContext = Asm->OutStreamer->getContext(); in endFunction() 77 Asm->OutStreamer->emitELFSize(LSDALabel, SizeExp); in endFunction() [all …]
|
| H A D | DwarfFile.cpp | 21 : Asm(AP), Abbrevs(AbbrevAllocator), StrPool(DA, *Asm, Pref) {} in DwarfFile() 48 Asm->OutStreamer->switchSection(S); in emitUnit() 50 Asm->emitDwarfDIE(TheU->getUnitDie()); in emitUnit() 53 Asm->OutStreamer->emitLabel(EndLabel); in emitUnit() 75 if (SecOffset > UINT32_MAX && !Asm->isDwarf64()) in computeSizeAndOffsets() 82 unsigned Offset = Asm->getUnitLengthFieldByteSize() + // Length of Unit Info in computeSizeAndOffsetsForUnit() 93 return Die.computeOffsetsAndAbbrevs(Asm->getDwarfFormParams(), Abbrevs, in computeSizeAndOffset() 97 void DwarfFile::emitAbbrevs(MCSection *Section) { Abbrevs.Emit(Asm, Section); } in emitAbbrevs() 102 StrPool.emit(*Asm, StrSection, OffsetSection, UseRelativeOffsets); in emitStrings() 130 RangeSpanList{Asm->createTempSymbol("debug_ranges"), &CU, std::move(R)}); in addRange()
|
| H A D | WinCFGuard.cpp | 27 WinCFGuard::WinCFGuard(AsmPrinter *A) : Asm(A) {} in WinCFGuard() 80 return Asm->OutContext.lookupSymbol(Twine("__imp_") + Sym->getName()); in lookupImpSymbol() 84 const Module *M = Asm->MMI->getModule(); in endModule() 92 if (MCSymbol *impSym = lookupImpSymbol(Asm->getSymbol(&F))) { in endModule() 101 GFIDsEntries.push_back(Asm->getSymbol(&F)); in endModule() 109 auto &OS = *Asm->OutStreamer; in endModule() 110 OS.switchSection(Asm->OutContext.getObjectFileInfo()->getGFIDsSection()); in endModule() 115 OS.switchSection(Asm->OutContext.getObjectFileInfo()->getGIATsSection()); in endModule() 121 OS.switchSection(Asm->OutContext.getObjectFileInfo()->getGLJMPSection()); in endModule()
|
| H A D | DwarfStringPool.h | 35 StringMapEntry<EntryTy> &getEntryImpl(AsmPrinter &Asm, StringRef Str); 40 DwarfStringPool(BumpPtrAllocator &A, AsmPrinter &Asm, StringRef Prefix); 42 void emitStringOffsetsTableHeader(AsmPrinter &Asm, MCSection *OffsetSection, 45 void emit(AsmPrinter &Asm, MCSection *StrSection, 56 EntryRef getEntry(AsmPrinter &Asm, StringRef Str); 61 EntryRef getIndexedEntry(AsmPrinter &Asm, StringRef Str);
|
| H A D | DwarfCompileUnit.cpp | 265 const MCSymbol *Sym = Asm->getSymbol(Global); in addLocationAttribute() 281 if (Asm->TM.useEmulatedTLS()) { in addLocationAttribute() 306 !Asm->getObjFileLowering() in addLocationAttribute() 452 for (const auto &R : Asm->MBBSectionRanges) in updateSubprogramScopeDIE() 466 TFI->getDwarfFrameBase(*Asm->MF); in updateSubprogramScopeDIE() 820 assert(Asm->TM.getTargetTriple().isWasm()); in constructVariableDIEImpl() 850 DIEDwarfExpression DwarfExpr(*Asm, *this, *Loc); in constructVariableDIEImpl() 1368 Asm->OutStreamer->emitLabel(LabelBegin); in emitHeader() 1376 Asm->emitInt64(getDWOId()); in emitHeader() 1450 DIEDwarfExpression DwarfExpr(*Asm, *this, *Loc); in addAddress() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/DebugInfo/DWARF/ |
| H A D | DwarfGenerator.cpp | 237 writePrologue(Asm); in generate() 240 writeData(Contents, Asm); in generate() 294 Asm.emitInt16(Version); in writeDefaultPrologue() 297 Asm.emitInt8(SegSize); in writeDefaultPrologue() 334 Asm.emitInt8(0); in writeCString() 342 Asm.emitInt8(0); in writeV2IncludeAndFileTable() 350 Asm.emitInt8(0); in writeV2IncludeAndFileTable() 386 Asm.emitInt8(Length); in writeProloguePayload() 487 if (!Asm) in init() 533 Asm->emitInt32(0); in generate() [all …]
|
| /llvm-project-15.0.7/llvm/lib/DWARFLinker/ |
| H A D | DWARFStreamer.cpp | 104 if (!Asm) in init() 158 Asm->emitInt32(0); in emitCompileUnitHeader() 163 Asm->emitInt32(0); in emitCompileUnitHeader() 214 Asm.emitInt16(2); in emitPaperTrailWarningsDie() 215 Asm.emitInt32(0); in emitPaperTrailWarningsDie() 229 Asm->emitInt8(0); in emitStrings() 238 Asm->emitInt16(0); in emitStrings() 699 Asm->emitInt8(0); in translateLineTable() 702 Asm->emitInt8(0); in translateLineTable() 711 Asm->emitInt8(0); in translateLineTable() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86MachObjectWriter.cpp | 165 Asm.getContext().reportError( in RecordX86_64Relocation() 181 Asm.getContext().reportError( in RecordX86_64Relocation() 223 RelSymbol = Asm.getAtom(*Symbol); in RecordX86_64Relocation() 266 Asm.getContext().reportError( in RecordX86_64Relocation() 286 Asm.getContext().reportError( in RecordX86_64Relocation() 314 Asm.getContext().reportError( in RecordX86_64Relocation() 333 Asm.getContext().reportError( in RecordX86_64Relocation() 337 Asm.getContext().reportError( in RecordX86_64Relocation() 343 Asm.getContext().reportError( in RecordX86_64Relocation() 380 Asm.getContext().reportError( in recordScatteredRelocation() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/MCTargetDesc/ |
| H A D | AArch64MachObjectWriter.cpp | 53 unsigned &Log2Size, const MCAssembler &Asm) { in getAArch64FixupKindMachOInfo() argument 182 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() 193 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() 199 Asm)) { in recordRelocation() 221 const MCSymbol *A_Base = Asm.getAtom(*A); in recordRelocation() 224 const MCSymbol *B_Base = Asm.getAtom(*B); in recordRelocation() 264 Asm.getContext().reportError( in recordRelocation() 271 Asm.getContext().reportError( in recordRelocation() 279 Asm.getContext().reportError( in recordRelocation() 311 Asm.getContext().reportError( in recordRelocation() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/MCTargetDesc/ |
| H A D | ARMMachObjectWriter.cpp | 31 const MCAssembler &Asm, 47 const MCAssembler &Asm, 150 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation() 164 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation() 179 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation() 214 if (Asm.isThumbFunc(A)) in RecordARMScatteredHalfRelocation() 218 if (Asm.isThumbFunc(A)) in RecordARMScatteredHalfRelocation() 265 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredRelocation() 278 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredRelocation() 294 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredRelocation() [all …]
|
| /llvm-project-15.0.7/llvm/lib/MC/ |
| H A D | MachObjectWriter.cpp | 516 Asm.registerSymbol(*it->Symbol); in bindIndirectSymbols() 628 for (const MCSection &Section : Asm) { in computeSymbolTable() 661 computeSectionAddresses(Asm, Layout); in executePostLayoutBinding() 664 bindIndirectSymbols(Asm); in executePostLayoutBinding() 772 populateAddrSigSection(Asm); in writeObject() 778 if (!Asm.CGProfile.empty()) { in writeObject() 795 unsigned NumSections = Asm.size(); in writeObject() 863 for (const MCSection &Sec : Asm) { in writeObject() 1002 for (const MCSection &Sec : Asm) { in writeObject() 1013 for (const MCSection &Sec : Asm) { in writeObject() [all …]
|
| H A D | SPIRVObjectWriter.cpp | 31 void recordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout, in recordRelocation() argument 35 void executePostLayoutBinding(MCAssembler &Asm, in executePostLayoutBinding() argument 38 uint64_t writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) override; 39 void writeHeader(const MCAssembler &Asm); 42 void SPIRVObjectWriter::writeHeader(const MCAssembler &Asm) { in writeHeader() argument 63 uint64_t SPIRVObjectWriter::writeObject(MCAssembler &Asm, in writeObject() argument 66 writeHeader(Asm); in writeObject() 67 for (const MCSection &S : Asm) in writeObject() 68 Asm.writeSectionData(W.OS, &S, Layout); in writeObject()
|
| H A D | WinCOFFObjectWriter.cpp | 662 if (!Asm.CGProfile.empty()) { in executePostLayoutBinding() 671 for (const auto &Section : Asm) in executePostLayoutBinding() 676 DefineSymbol(Symbol, Asm, Layout); in executePostLayoutBinding() 728 Asm.getContext().reportError( in recordRelocation() 786 Asm.getContext(), Target, Fixup, SymB, Asm.getBackend()); in recordRelocation() 959 for (const auto &Section : Asm) { in assignFileOffsets() 1026 createFileSymbols(Asm); in writeObject() 1077 Asm.getContext().reportError( in writeObject() 1128 assignFileOffsets(Asm, Layout); in writeObject() 1147 MCAssembler::iterator JE = Asm.end(); in writeObject() [all …]
|
| H A D | MCObjectWriter.cpp | 22 const MCAssembler &Asm, const MCSymbolRefExpr *A, const MCSymbolRefExpr *B, in isSymbolRefDifferenceFullyResolved() argument 37 return isSymbolRefDifferenceFullyResolvedImpl(Asm, SA, SB, InSet); in isSymbolRefDifferenceFullyResolved() 41 const MCAssembler &Asm, const MCSymbol &A, const MCSymbol &B, in isSymbolRefDifferenceFullyResolvedImpl() argument 43 return isSymbolRefDifferenceFullyResolvedImpl(Asm, A, *B.getFragment(), InSet, in isSymbolRefDifferenceFullyResolvedImpl() 48 const MCAssembler &Asm, const MCSymbol &SymA, const MCFragment &FB, in isSymbolRefDifferenceFullyResolvedImpl() argument
|
| /llvm-project-15.0.7/llvm/include/llvm/MC/ |
| H A D | MCMachObjectWriter.h | 75 virtual void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, 150 bool isFixupKindPCRel(const MCAssembler &Asm, unsigned Kind); 238 void recordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout, 242 void bindIndirectSymbols(MCAssembler &Asm); 245 void computeSymbolTable(MCAssembler &Asm, 250 void computeSectionAddresses(const MCAssembler &Asm, 253 void executePostLayoutBinding(MCAssembler &Asm, 256 bool isSymbolRefDifferenceFullyResolvedImpl(const MCAssembler &Asm, 261 bool isSymbolRefDifferenceFullyResolvedImpl(const MCAssembler &Asm, 266 void populateAddrSigSection(MCAssembler &Asm); [all …]
|
| H A D | MCObjectWriter.h | 57 virtual void executePostLayoutBinding(MCAssembler &Asm, 66 virtual void recordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout, 76 bool isSymbolRefDifferenceFullyResolved(const MCAssembler &Asm, 81 virtual bool isSymbolRefDifferenceFullyResolvedImpl(const MCAssembler &Asm, 86 virtual bool isSymbolRefDifferenceFullyResolvedImpl(const MCAssembler &Asm, 113 virtual uint64_t writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) = 0;
|