Home
last modified time | relevance | path

Searched refs:Asm (Results 1 – 25 of 173) sorted by relevance

1234567

/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DEHStreamer.cpp37 EHStreamer::EHStreamer(AsmPrinter *A) : Asm(A), MMI(Asm->MMI) {} in EHStreamer()
251 for (const auto &MBB : *Asm->MF) { in computeCallSiteTable()
429 MF->getFunction(), *Asm->CurrentFnSym, Asm->TM); in emitExceptionTable()
472 Asm->emitAlignment(Align(4)); in emitExceptionTable()
589 Asm->OutStreamer->emitLabel(Asm->getMBBExceptionSym(Asm->MF->front())); in emitExceptionTable()
605 Asm->emitULEB128(idx); in emitExceptionTable()
617 Asm->emitULEB128(S.Action); in emitExceptionTable()
758 Asm->emitULEB128(S.Action); in emitExceptionTable()
801 Asm->emitAlignment(Align(4)); in emitExceptionTable()
805 Asm->emitAlignment(Align(4)); in emitExceptionTable()
[all …]
H A DAccelTable.cpp111 : Asm(Asm), Contents(Contents), SkipIdenticalHashes(SkipIdenticalHashes) { in AccelTableWriter()
280 Asm->emitLabelDifference(Hash->Sym, Base, Asm->getDwarfOffsetByteSize()); in emitOffsets()
287 Asm->emitInt32(Magic); in emit()
352 V->emit(Asm); in emitData()
357 Asm->emitInt32(0); in emitData()
362 Header.emit(Asm); in emit()
363 HeaderData.emit(Asm); in emit()
378 AsmPrinter *Asm = Ctx.Asm; in emit() local
631 Asm->emitInt8(0); in emitData()
772 Asm->emitInt8(0); in emit()
[all …]
H A DAddressPool.cpp32 Asm.OutStreamer->AddComment("DWARF version number"); in emitHeader()
33 Asm.emitInt16(Asm.getDwarfVersion()); in emitHeader()
34 Asm.OutStreamer->AddComment("Address size"); in emitHeader()
35 Asm.emitInt8(AddrSize); in emitHeader()
36 Asm.OutStreamer->AddComment("Segment selector size"); in emitHeader()
48 Asm.OutStreamer->switchSection(AddrSection); in emit()
52 if (Asm.getDwarfVersion() >= 5) in emit()
53 EndLabel = emitHeader(Asm, AddrSection); in emit()
57 Asm.OutStreamer->emitLabel(AddressTableBaseSym); in emit()
69 Asm.OutStreamer->emitValue(Entry, Asm.MAI->getCodePointerSize()); in emit()
[all …]
H A DDwarfStringPool.cpp41 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 DARMException.cpp42 Asm->OutStreamer->emitCFISections(false, true); in beginFunction()
47 Asm->OutStreamer->emitCFIStartProc(false); in beginFunction()
53 Asm->OutStreamer->emitCFIEndProc(); in markFunctionEnd()
69 if (!Asm->MF->getFunction().needsUnwindTableEntry() && in endFunction()
75 MCSymbol *PerSym = Asm->getSymbol(Per); in endFunction()
92 const MachineFunction *MF = Asm->MF; in emitTypeInfos()
96 bool VerboseAsm = Asm->OutStreamer->isVerboseAsm(); in emitTypeInfos()
102 Asm->OutStreamer->addBlankLine(); in emitTypeInfos()
109 Asm->emitTTypeReference(GV, TTypeEncoding); in emitTypeInfos()
112 Asm->OutStreamer->emitLabel(TTBaseLabel); in emitTypeInfos()
[all …]
H A DDwarfDebug.cpp1774 if (Asm->MF->hasBBSections() && StartLabel == Asm->getFunctionBegin() && in buildLocationList()
2386 *Asm, Asm->getObjFileLowering().getDwarfStrOffSection(), in emitStringOffsetsTableHeader()
2771 Asm->emitInt16(0); in emitDebugLocEntryLocation()
3118 Asm->emitInt8(0); in emitDebugARanges()
3215 if (Asm->isDwarf64()) { in emitMacroHeader()
3258 Asm->emitULEB128( in emitMacro()
3279 Asm->emitInt8('\0'); in emitMacro()
3332 Asm->emitInt8(0); in emitDebugMacinfoImpl()
3406 *Asm, Asm->getObjFileLowering().getDwarfStrOffDWOSection(), in emitStringOffsetsTableHeaderDWO()
3424 AddrPool.emit(*Asm, Asm->getObjFileLowering().getDwarfAddrSection()); in emitDebugAddr()
[all …]
H A DDwarfCFIException.cpp39 if (!Asm->MAI->usesCFIForEH()) in endModule()
42 const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering(); in endModule()
51 MCSymbol *Sym = Asm->getSymbol(Personality); in endModule()
52 TLOF.emitPersonalityValue(*Asm->OutStreamer, Asm->getDataLayout(), Sym); in endModule()
97 shouldEmitCFI = Asm->usesCFIWithoutEH() && shouldEmitMoves; in beginFunction()
110 Asm->TM.Options.ForceDwarfFrameSection) in beginBasicBlockSection()
111 Asm->OutStreamer->emitCFISections( in beginBasicBlockSection()
116 Asm->OutStreamer->emitCFIStartProc(/*IsSimple=*/false); in beginBasicBlockSection()
131 Asm->OutStreamer->emitCFIPersonality(Sym, PerEncoding); in beginBasicBlockSection()
135 Asm->OutStreamer->emitCFILsda(Asm->getMBBExceptionSym(MBB), in beginBasicBlockSection()
[all …]
H A DAIXException.cpp41 if (Asm->TM.getFunctionSections()) { in emitExceptionInfoTable()
47 raw_svector_ostream(NameStr) << '.' << Asm->MF->getFunction().getName(); in emitExceptionInfoTable()
48 EHInfo = Asm->OutContext.getXCOFFSection(NameStr, EHInfo->getKind(), in emitExceptionInfoTable()
51 Asm->OutStreamer->switchSection(EHInfo); in emitExceptionInfoTable()
53 TargetLoweringObjectFileXCOFF::getEHInfoTableSymbol(Asm->MF); in emitExceptionInfoTable()
54 Asm->OutStreamer->emitLabel(EHInfoLabel); in emitExceptionInfoTable()
57 Asm->emitInt32(0); in emitExceptionInfoTable()
63 Asm->OutStreamer->emitValueToAlignment(Align(PointerSize)); in emitExceptionInfoTable()
66 Asm->OutStreamer->emitValue(MCSymbolRefExpr::create(LSDA, Asm->OutContext), in emitExceptionInfoTable()
70 Asm->OutStreamer->emitValue(MCSymbolRefExpr::create(PerSym, Asm->OutContext), in emitExceptionInfoTable()
[all …]
H A DWinException.cpp48 auto &OS = *Asm->OutStreamer; in endModule()
98 if (!Asm->MAI->usesWindowsCFI()) { in beginFunction()
140 Asm->OutStreamer->pushSection(); in endFunction()
160 Asm->OutStreamer->popSection(); in endFunction()
208 Asm->emitAlignment(std::max(Asm->MF->getAlignment(), MBB.getAlignment()), in beginFunclet()
334 MCSymbolRefExpr::create(OffsetFrom, Asm->OutContext), Asm->OutContext); in getOffset()
348 if (Asm->MAI->usesWindowsCFI()) { in getFrameIndexOffset()
353 Asm->MF->getSubtarget() in getFrameIndexOffset()
560 auto &OS = *Asm->OutStreamer; in emitCSpecificHandlerTable()
628 auto &OS = *Asm->OutStreamer; in emitSEHActionsForRange()
[all …]
H A DWasmException.cpp33 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()
61 MCSymbol *LSDAEndLabel = Asm->createTempSymbol("GCC_except_table_end"); in endFunction()
62 Asm->OutStreamer->emitLabel(LSDAEndLabel); in endFunction()
63 MCContext &OutContext = Asm->OutStreamer->getContext(); in endFunction()
67 Asm->OutStreamer->emitELFSize(LSDALabel, SizeExp); in endFunction()
83 MachineFunction &MF = *Asm->MF; in computeCallSiteTable()
H A DDwarfFile.cpp21 : 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()
125 RangeSpanList{Asm->createTempSymbol("debug_ranges"), &CU, std::move(R)}); in addRange()
H A DWinCFGuard.cpp27 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 DDwarfStringPool.h35 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 DDwarfCompileUnit.cpp266 const MCSymbol *Sym = Asm->getSymbol(Global); in addLocationAttribute()
282 if (Asm->TM.getTargetTriple().isWasm()) { in addLocationAttribute()
291 } else if (Asm->TM.useEmulatedTLS()) { in addLocationAttribute()
324 !Asm->getObjFileLowering() in addLocationAttribute()
504 for (const auto &R : Asm->MBBSectionRanges) in updateSubprogramScopeDIE()
518 TFI->getDwarfFrameBase(*Asm->MF); in updateSubprogramScopeDIE()
808 DIEDwarfExpression DwarfExpr(*Asm, *this, *Loc); in applyConcreteDbgVariableAttributes()
840 assert(Asm->TM.getTargetTriple().isWasm()); in applyConcreteDbgVariableAttributes()
877 DIEDwarfExpression DwarfExpr(*Asm, *this, *Loc); in applyConcreteDbgVariableAttributes()
1469 Asm->OutStreamer->emitLabel(LabelBegin); in emitHeader()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDWARFEmitterImpl.cpp112 if (!Asm) in init()
128 Asm->emitDwarfAbbrevs(Abbrevs); in emitAbbrevs()
138 Asm->emitInt32(Unit.getUnitSize() - 4); in emitCompileUnitHeader()
139 Asm->emitInt16(Unit.getVersion()); in emitCompileUnitHeader()
142 Asm->emitInt8(dwarf::DW_UT_compile); in emitCompileUnitHeader()
145 Asm->emitInt32(0); in emitCompileUnitHeader()
149 Asm->emitInt32(0); in emitCompileUnitHeader()
157 Asm->emitDwarfDIE(Die); in emitDIE()
173 Asm.get(), Table, CUOffsets, in emitDebugNames()
187 Asm->OutStreamer->emitLabel(SectionBegin); in emitAppleNamespaces()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/DWARFLinker/Classic/
H A DDWARFStreamer.cpp134 if (!Asm) in init()
195 Asm->emitInt32(0); in emitCompileUnitHeader()
200 Asm->emitInt32(0); in emitCompileUnitHeader()
222 Asm->emitDwarfDIE(Die); in emitDIE()
301 Asm->emitInt8(0); in emitStrings()
346 Asm->emitInt8(0); in emitLineStrings()
721 Asm->emitInt16(5); in emitDwarfDebugAddrsHeader()
725 Asm->emitInt8(AddrSize); in emitDwarfDebugAddrsHeader()
729 Asm->emitInt8(0); in emitDwarfDebugAddrsHeader()
983 Asm->emitInt8(0); in emitLineTableString()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MachObjectWriter.cpp165 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 …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MachObjectWriter.cpp53 unsigned &Log2Size, const MCAssembler &Asm) { in getAArch64FixupKindMachOInfo() argument
180 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
191 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
197 Asm)) { in recordRelocation()
219 const MCSymbol *A_Base = Asm.getAtom(*A); in recordRelocation()
222 const MCSymbol *B_Base = Asm.getAtom(*B); in recordRelocation()
262 Asm.getContext().reportError( in recordRelocation()
269 Asm.getContext().reportError( in recordRelocation()
277 Asm.getContext().reportError( in recordRelocation()
309 Asm.getContext().reportError( in recordRelocation()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMachObjectWriter.cpp31 const MCAssembler &Asm,
47 const MCAssembler &Asm,
141 const MCAssembler &Asm, in RecordARMScatteredHalfRelocation() argument
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()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/MC/
H A DMachObjectWriter.cpp515 Asm.registerSymbol(*it->Symbol); in bindIndirectSymbols()
534 if (Asm.registerSymbol(*it->Symbol)) in bindIndirectSymbols()
658 computeSectionAddresses(Asm, Layout); in executePostLayoutBinding()
661 bindIndirectSymbols(Asm); in executePostLayoutBinding()
761 populateAddrSigSection(Asm); in writeObject()
767 if (!Asm.CGProfile.empty()) { in writeObject()
784 unsigned NumSections = Asm.size(); in writeObject()
852 for (const MCSection &Sec : Asm) { in writeObject()
991 for (const MCSection &Sec : Asm) { in writeObject()
1002 for (const MCSection &Sec : Asm) { in writeObject()
[all …]
H A DSPIRVObjectWriter.cpp32 void recordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout, in recordRelocation() argument
36 void executePostLayoutBinding(MCAssembler &Asm, in executePostLayoutBinding() argument
39 uint64_t writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) override;
40 void writeHeader(const MCAssembler &Asm);
44 void SPIRVObjectWriter::writeHeader(const MCAssembler &Asm) { in writeHeader() argument
65 uint64_t SPIRVObjectWriter::writeObject(MCAssembler &Asm, in writeObject() argument
68 writeHeader(Asm); in writeObject()
69 for (const MCSection &S : Asm) in writeObject()
70 Asm.writeSectionData(W.OS, &S, Layout); in writeObject()
H A DWinCOFFObjectWriter.cpp200 void createFileSymbols(MCAssembler &Asm);
773 for (const auto &Section : Asm) { in assignFileOffsets()
841 for (const auto &Section : Asm) { in executePostLayoutBinding()
889 Asm.getContext().reportError( in recordRelocation()
947 Asm.getContext(), Target, Fixup, SymB, Asm.getBackend()); in recordRelocation()
1029 createFileSymbols(Asm); in writeObject()
1080 Asm.getContext().reportError( in writeObject()
1133 assignFileOffsets(Asm, Layout); in writeObject()
1152 MCAssembler::iterator JE = Asm.end(); in writeObject()
1163 writeSection(Asm, Layout, *Sec); in writeObject()
[all …]
H A DELFObjectWriter.cpp289 .writeObject(Asm, Layout); in writeObject()
645 MCContext &Ctx = Asm.getContext(); in computeSymbolTable()
663 Asm.getFileNames(); in computeSymbolTable()
879 auto &MC = Asm.getContext(); in writeSectionData()
1095 MCContext &Ctx = Asm.getContext(); in writeObject()
1100 createMemtagRelocs(Asm); in writeObject()
1108 writeHeader(Asm); in writeObject()
1114 for (MCSection &Sec : Asm) { in writeObject()
1193 writeRelocations(Asm, in writeObject()
1267 Asm.registerSymbol(*Alias); in executePostLayoutBinding()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCMachObjectWriter.h75 virtual void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm,
151 bool isFixupKindPCRel(const MCAssembler &Asm, unsigned Kind);
239 void recordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout,
243 void bindIndirectSymbols(MCAssembler &Asm);
246 void computeSymbolTable(MCAssembler &Asm,
251 void computeSectionAddresses(const MCAssembler &Asm,
254 void executePostLayoutBinding(MCAssembler &Asm,
257 bool isSymbolRefDifferenceFullyResolvedImpl(const MCAssembler &Asm,
262 bool isSymbolRefDifferenceFullyResolvedImpl(const MCAssembler &Asm,
267 void populateAddrSigSection(MCAssembler &Asm);
[all …]
H A DMCObjectWriter.h57 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,
124 virtual uint64_t writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) = 0;

1234567