Searched refs:Asm (Results 1 - 25 of 149) sorted by relevance

123456

/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAddressPool.cpp27 MCSymbol *AddressPool::emitHeader(AsmPrinter &Asm, MCSection *Section) { argument
28 static const uint8_t AddrSize = Asm.MAI->getCodePointerSize();
31 Asm.emitDwarfUnitLength("debug_addr", "Length of contribution");
32 Asm.OutStreamer->AddComment("DWARF version number");
33 Asm.emitInt16(Asm.getDwarfVersion());
34 Asm.OutStreamer->AddComment("Address size");
35 Asm.emitInt8(AddrSize);
36 Asm.OutStreamer->AddComment("Segment selector size");
37 Asm
43 emit(AsmPrinter &Asm, MCSection *AddrSection) argument
[all...]
H A DAIXException.cpp40 cast<MCSectionXCOFF>(Asm->getObjFileLowering().getCompactUnwindSection());
41 if (Asm->TM.getFunctionSections()) {
47 raw_svector_ostream(NameStr) << '.' << Asm->MF->getFunction().getName();
48 EHInfo = Asm->OutContext.getXCOFFSection(NameStr, EHInfo->getKind(),
51 Asm->OutStreamer->switchSection(EHInfo);
53 TargetLoweringObjectFileXCOFF::getEHInfoTableSymbol(Asm->MF);
54 Asm->OutStreamer->emitLabel(EHInfoLabel);
57 Asm->emitInt32(0);
63 Asm->OutStreamer->emitValueToAlignment(Align(PointerSize));
66 Asm
[all...]
H A DARMException.cpp27 MCTargetStreamer &TS = *Asm->OutStreamer->getTargetStreamer();
32 if (Asm->MAI->getExceptionHandlingType() == ExceptionHandling::ARM)
35 AsmPrinter::CFISection CFISecType = Asm->getFunctionCFISectionType(*MF);
41 if (Asm->getModuleCFISectionType() == AsmPrinter::CFISection::Debug)
42 Asm->OutStreamer->emitCFISections(false, true);
47 Asm->OutStreamer->emitCFIStartProc(false);
53 Asm->OutStreamer->emitCFIEndProc();
69 if (!Asm->MF->getFunction().needsUnwindTableEntry() &&
75 MCSymbol *PerSym = Asm->getSymbol(Per);
86 if (Asm
[all...]
H A DDwarfCFIException.cpp39 if (!Asm->MAI->usesCFIForEH())
42 const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering();
51 MCSymbol *Sym = Asm->getSymbol(Personality);
52 TLOF.emitPersonalityValue(*Asm->OutStreamer, Asm->getDataLayout(), Sym);
66 Asm->getFunctionCFISectionType(*MF) != AsmPrinter::CFISection::None;
68 const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering();
97 shouldEmitCFI = Asm->usesCFIWithoutEH() && shouldEmitMoves;
105 AsmPrinter::CFISection CFISecType = Asm->getModuleCFISectionType();
110 Asm
[all...]
H A DDwarfStringPool.cpp20 DwarfStringPool::DwarfStringPool(BumpPtrAllocator &A, AsmPrinter &Asm, argument
23 ShouldCreateSymbols(Asm.doesDwarfUseRelocationsAcrossSections()) {}
26 DwarfStringPool::getEntryImpl(AsmPrinter &Asm, StringRef Str) { argument
32 Entry.Symbol = ShouldCreateSymbols ? Asm.createTempSymbol(Prefix) : nullptr;
39 DwarfStringPool::EntryRef DwarfStringPool::getEntry(AsmPrinter &Asm, argument
41 auto &MapEntry = getEntryImpl(Asm, Str);
45 DwarfStringPool::EntryRef DwarfStringPool::getIndexedEntry(AsmPrinter &Asm, argument
47 auto &MapEntry = getEntryImpl(Asm, Str);
53 void DwarfStringPool::emitStringOffsetsTableHeader(AsmPrinter &Asm, argument
58 Asm
75 emit(AsmPrinter &Asm, MCSection *StrSection, MCSection *OffsetSection, bool UseRelativeOffsets) argument
[all...]
H A DEHStreamer.cpp37 EHStreamer::EHStreamer(AsmPrinter *A) : Asm(A), MMI(Asm->MMI) {}
79 const std::vector<unsigned> &FilterIds = Asm->MF->getFilterIds();
239 MCSymbol *LastLabel = Asm->getFunctionBegin();
248 bool IsSJLJ = Asm->MAI->getExceptionHandlingType() == ExceptionHandling::SjLj;
251 for (const auto &MBB : *Asm->MF) {
252 if (&MBB == &Asm->MF->front() || MBB.isBeginSection()) {
256 {Asm->MBBSectionRanges[MBB.getSectionIDNum()].BeginLabel,
257 Asm->MBBSectionRanges[MBB.getSectionIDNum()].EndLabel,
258 Asm
[all...]
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 DAccelTable.cpp54 void AccelTableBase::finalize(AsmPrinter *Asm, StringRef Prefix) { argument
78 E.second.Sym = Asm->createTempSymbol(Prefix);
94 AsmPrinter *const Asm; ///< Destination. member in class:__anon1826::AccelTableWriter
109 AccelTableWriter(AsmPrinter *Asm, const AccelTableBase &Contents, argument
111 : Asm(Asm), Contents(Contents), SkipIdenticalHashes(SkipIdenticalHashes) {
134 void emit(AsmPrinter *Asm) const;
153 void emit(AsmPrinter *Asm) const;
168 AppleAccelTableWriter(AsmPrinter *Asm, const AccelTableBase &Contents, argument
170 : AccelTableWriter(Asm, Content
378 AsmPrinter *Asm = Ctx.Asm; local
636 Dwarf5AccelTableWriter( AsmPrinter *Asm, const AccelTableBase &Contents, ArrayRef<std::variant<MCSymbol *, uint64_t>> CompUnits, ArrayRef<std::variant<MCSymbol *, uint64_t>> TypeUnits, llvm::function_ref<std::optional<DWARF5AccelTable::UnitIndexAndEncoding>( const DWARF5AccelTableData &)> getIndexForEntry, bool IsSplitDwarf) argument
674 emitAppleAccelTableImpl(AsmPrinter *Asm, AccelTableBase &Contents, StringRef Prefix, const MCSymbol *SecBegin, ArrayRef<AppleAccelTableData::Atom> Atoms) argument
681 emitDWARF5AccelTable( AsmPrinter *Asm, DWARF5AccelTable &Contents, const DwarfDebug &DD, ArrayRef<std::unique_ptr<DwarfCompileUnit>> CUs) argument
749 emitDWARF5AccelTable( AsmPrinter *Asm, DWARF5AccelTable &Contents, ArrayRef<std::variant<MCSymbol *, uint64_t>> CUs, llvm::function_ref<std::optional<DWARF5AccelTable::UnitIndexAndEncoding>( const DWARF5AccelTableData &)> getIndexForEntry) argument
[all...]
H A DWasmException.cpp33 if (!Asm->isPositionIndependent()) {
36 Mangler::getNameWithPrefix(NameStr, SymName, Asm->getDataLayout());
37 if (Asm->OutContext.lookupSymbol(NameStr)) {
38 MCSymbol *ExceptionSym = Asm->GetExternalSymbolSymbol(SymName);
39 Asm->OutStreamer->emitLabel(ExceptionSym);
61 MCSymbol *LSDAEndLabel = Asm->createTempSymbol("GCC_except_table_end");
62 Asm->OutStreamer->emitLabel(LSDAEndLabel);
63 MCContext &OutContext = Asm->OutStreamer->getContext();
67 Asm->OutStreamer->emitELFSize(LSDALabel, SizeExp);
83 MachineFunction &MF = *Asm
[all...]
H A DWinCFGuard.cpp27 WinCFGuard::WinCFGuard(AsmPrinter *A) : Asm(A) {}
80 return Asm->OutContext.lookupSymbol(Twine("__imp_") + Sym->getName());
84 const Module *M = Asm->MMI->getModule();
92 if (MCSymbol *impSym = lookupImpSymbol(Asm->getSymbol(&F))) {
101 GFIDsEntries.push_back(Asm->getSymbol(&F));
109 auto &OS = *Asm->OutStreamer;
110 OS.switchSection(Asm->OutContext.getObjectFileInfo()->getGFIDsSection());
115 OS.switchSection(Asm->OutContext.getObjectFileInfo()->getGIATsSection());
121 OS.switchSection(Asm->OutContext.getObjectFileInfo()->getGLJMPSection());
H A DDebugLocStream.cpp15 bool DebugLocStream::finalizeList(AsmPrinter &Asm) { argument
23 Lists.back().Label = Asm.createTempSymbol("debug_loc");
41 if (!Locs.finalizeList(Asm))
H A DDwarfFile.cpp21 : Asm(AP), Abbrevs(AbbrevAllocator), StrPool(DA, *Asm, Pref) {}
48 Asm->OutStreamer->switchSection(S);
50 Asm->emitDwarfDIE(TheU->getUnitDie());
53 Asm->OutStreamer->emitLabel(EndLabel);
75 if (SecOffset > UINT32_MAX && !Asm->isDwarf64())
82 unsigned Offset = Asm->getUnitLengthFieldByteSize() + // Length of Unit Info
93 return Die.computeOffsetsAndAbbrevs(Asm->getDwarfFormParams(), Abbrevs,
97 void DwarfFile::emitAbbrevs(MCSection *Section) { Abbrevs.Emit(Asm, Section); }
102 StrPool.emit(*Asm, StrSectio
[all...]
H A DWinException.cpp39 isAArch64 = Asm->TM.getTargetTriple().isAArch64();
40 isThumb = Asm->TM.getTargetTriple().isThumb();
48 auto &OS = *Asm->OutStreamer;
52 OS.emitCOFFSafeSEH(Asm->getSymbol(&F));
56 OS.switchSection(Asm->OutContext.getObjectFileInfo()->getGEHContSection());
72 shouldEmitMoves = Asm->needsSEHMoves() && MF->hasWinCFI();
74 const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering();
98 if (!Asm->MAI->usesWindowsCFI()) {
113 beginFunclet(MF->front(), Asm->CurrentFnSym);
119 Asm
171 getMCSymbolForMBB(AsmPrinter *Asm, const MachineBasicBlock *MBB) argument
[all...]
H A DDwarfDebug.cpp335 const Triple &TT = Asm->TM.getTargetTriple();
339 if (Asm->TM.Options.DebuggerTuning != DebuggerKind::Default)
340 DebuggerTuning = Asm->TM.Options.DebuggerTuning;
360 HasSplitDwarf = !Asm->TM.Options.MCOptions.SplitDwarfFile.empty();
368 unsigned DwarfVersionNumber = Asm->TM.Options.MCOptions.DwarfVersion;
384 ((Asm->TM.Options.MCOptions.Dwarf64 || MMI->getModule()->isDwarf64()) &&
424 EmitDebugEntryValues = Asm->TM.Options.ShouldEmitDebugEntryValues();
440 Asm->OutStreamer->getContext().setDwarfVersion(DwarfVersion);
441 Asm->OutStreamer->getContext().setDwarfFormat(Dwarf64 ? dwarf::DWARF64
1089 InfoHolder.getUnits().size(), DIUnit, Asm, thi
[all...]
H A DAddressPool.h45 void emit(AsmPrinter &Asm, MCSection *AddrSection);
57 MCSymbol *emitHeader(AsmPrinter &Asm, MCSection *Section);
/freebsd-current/contrib/llvm-project/llvm/lib/MC/
H A DMCObjectWriter.cpp22 const MCAssembler &Asm, const MCSymbolRefExpr *A, const MCSymbolRefExpr *B,
35 return isSymbolRefDifferenceFullyResolvedImpl(Asm, SA, SB, InSet);
39 const MCAssembler &Asm, const MCSymbol &A, const MCSymbol &B,
41 return isSymbolRefDifferenceFullyResolvedImpl(Asm, A, *B.getFragment(), InSet,
46 const MCAssembler &Asm, const MCSymbol &SymA, const MCFragment &FB,
21 isSymbolRefDifferenceFullyResolved( const MCAssembler &Asm, const MCSymbolRefExpr *A, const MCSymbolRefExpr *B, bool InSet) const argument
38 isSymbolRefDifferenceFullyResolvedImpl( const MCAssembler &Asm, const MCSymbol &A, const MCSymbol &B, bool InSet) const argument
45 isSymbolRefDifferenceFullyResolvedImpl( const MCAssembler &Asm, const MCSymbol &SymA, const MCFragment &FB, bool InSet, bool IsPCRel) const argument
H A DSPIRVObjectWriter.cpp32 void recordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout,
36 void executePostLayoutBinding(MCAssembler &Asm,
39 uint64_t writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) override;
40 void writeHeader(const MCAssembler &Asm);
44 void SPIRVObjectWriter::writeHeader(const MCAssembler &Asm) { argument
65 uint64_t SPIRVObjectWriter::writeObject(MCAssembler &Asm, argument
68 writeHeader(Asm);
69 for (const MCSection &S : Asm)
70 Asm.writeSectionData(W.OS, &S, Layout);
/freebsd-current/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDWARFEmitterImpl.cpp111 Asm.reset(TheTarget->createAsmPrinter(*TM, std::unique_ptr<MCStreamer>(MS)));
112 if (!Asm)
116 Asm->setDwarfUsesRelocationsAcrossSections(false);
128 Asm->emitDwarfAbbrevs(Abbrevs);
138 Asm->emitInt32(Unit.getUnitSize() - 4);
139 Asm->emitInt16(Unit.getVersion());
142 Asm->emitInt8(dwarf::DW_UT_compile);
143 Asm->emitInt8(Unit.getFormParams().AddrSize);
145 Asm->emitInt32(0);
149 Asm
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYMCExpr.cpp70 static void fixELFSymbolsInTLSFixupsImpl(const MCExpr *Expr, MCAssembler &Asm) { argument
80 fixELFSymbolsInTLSFixupsImpl(BE->getLHS(), Asm);
81 fixELFSymbolsInTLSFixupsImpl(BE->getRHS(), Asm);
94 fixELFSymbolsInTLSFixupsImpl(cast<MCUnaryExpr>(Expr)->getSubExpr(), Asm);
99 void CSKYMCExpr::fixELFSymbolsInTLSFixups(MCAssembler &Asm) const {
109 fixELFSymbolsInTLSFixupsImpl(getSubExpr(), Asm); local
/freebsd-current/contrib/llvm-project/llvm/include/llvm/MC/
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;
/freebsd-current/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MachObjectWriter.cpp37 unsigned &Log2Size, const MCAssembler &Asm);
43 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm,
53 unsigned &Log2Size, const MCAssembler &Asm) {
102 Asm.getContext().reportError(Fixup.getLoc(),
150 MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout,
153 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind());
180 Asm.getContext().reportError(Fixup.getLoc(),
191 Asm.getContext().reportError(Fixup.getLoc(),
197 Asm)) {
198 Asm
51 getAArch64FixupKindMachOInfo( const MCFixup &Fixup, unsigned &RelocType, const MCSymbolRefExpr *Sym, unsigned &Log2Size, const MCAssembler &Asm) argument
149 recordRelocation( MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) argument
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/DWARFLinker/Classic/
H A DDWARFStreamer.cpp133 Asm.reset(TheTarget->createAsmPrinter(*TM, std::unique_ptr<MCStreamer>(MS)));
134 if (!Asm)
138 Asm->setDwarfUsesRelocationsAcrossSections(false);
181 Unit.setLabelBegin(Asm->createTempSymbol("cu_begin"));
182 Asm->OutStreamer->emitLabel(Unit.getLabelBegin());
187 Asm->emitInt32(Unit.getNextUnitOffset() - Unit.getStartOffset() - 4);
188 Asm->emitInt16(DwarfVersion);
191 Asm->emitInt8(dwarf::DW_UT_compile);
192 Asm->emitInt8(Unit.getOrigUnit().getAddressByteSize());
195 Asm
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MachObjectWriter.cpp28 const MCAssembler &Asm,
36 const MCAssembler &Asm,
44 const MCAssembler &Asm,
50 void RecordX86_64Relocation(MachObjectWriter *Writer, MCAssembler &Asm,
59 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm,
64 RecordX86_64Relocation(Writer, Asm, Layout, Fragment, Fixup, Target,
67 RecordX86Relocation(Writer, Asm, Layout, Fragment, Fixup, Target,
103 MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout,
106 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind());
148 const MCSymbol *A_Base = Asm
102 RecordX86_64Relocation( MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) argument
363 recordScatteredRelocation(MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, unsigned Log2Size, uint64_t &FixedValue) argument
463 recordTLVPRelocation(MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) argument
503 RecordX86Relocation(MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) argument
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMachObjectWriter.cpp31 const MCAssembler &Asm,
40 const MCAssembler &Asm,
47 const MCAssembler &Asm,
55 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm,
141 const MCAssembler &Asm,
150 Asm.getContext().reportError(Fixup.getLoc(),
157 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind());
164 Asm.getContext().reportError(Fixup.getLoc(),
179 Asm.getContext().reportError(Fixup.getLoc(),
214 if (Asm
140 RecordARMScatteredHalfRelocation(MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) argument
253 RecordARMScatteredRelocation(MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, unsigned Type, unsigned Log2Size, uint64_t &FixedValue) argument
329 requiresExternRelocation(MachObjectWriter *Writer, const MCAssembler &Asm, const MCFragment &Fragment, unsigned RelocType, const MCSymbol &S, uint64_t FixedValue) argument
375 recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) argument
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonMCExpr.cpp41 static void fixELFSymbolsInTLSFixupsImpl(const MCExpr *Expr, MCAssembler &Asm) { argument
51 fixELFSymbolsInTLSFixupsImpl(be->getLHS(), Asm);
52 fixELFSymbolsInTLSFixupsImpl(be->getRHS(), Asm);
73 fixELFSymbolsInTLSFixupsImpl(cast<MCUnaryExpr>(Expr)->getSubExpr(), Asm);
78 void HexagonMCExpr::fixELFSymbolsInTLSFixups(MCAssembler &Asm) const {
80 fixELFSymbolsInTLSFixupsImpl(expr, Asm);

Completed in 210 milliseconds

123456