Lines Matching refs:Asm

170   void writeHeader(const MCAssembler &Asm);
187 void computeSymbolTable(MCAssembler &Asm, const MCAsmLayout &Layout,
197 void createMemtagRelocs(MCAssembler &Asm);
203 void writeSectionData(const MCAssembler &Asm, MCSection &Sec,
211 void writeRelocations(const MCAssembler &Asm, const MCSectionELF &Sec);
213 uint64_t writeObject(MCAssembler &Asm, const MCAsmLayout &Layout);
233 bool shouldRelocateWithSymbol(const MCAssembler &Asm, const MCValue &Val,
249 bool isSymbolRefDifferenceFullyResolvedImpl(const MCAssembler &Asm,
260 void recordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout,
264 void executePostLayoutBinding(MCAssembler &Asm,
287 uint64_t writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) override { in writeObject() argument
289 .writeObject(Asm, Layout); in writeObject()
319 uint64_t writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) override { in writeObject() argument
321 .writeObject(Asm, Layout); in writeObject()
323 .writeObject(Asm, Layout); in writeObject()
403 void ELFWriter::writeHeader(const MCAssembler &Asm) { in writeHeader() argument
443 W.write<uint32_t>(Asm.getELFHeaderEFlags()); in writeHeader()
624 void ELFWriter::createMemtagRelocs(MCAssembler &Asm) { in createMemtagRelocs() argument
626 for (const MCSymbol &Sym : Asm.symbols()) { in createMemtagRelocs()
631 MemtagRelocs = OWriter.TargetObjectWriter->getMemtagRelocsSection(Asm.getContext()); in createMemtagRelocs()
634 Asm.registerSection(*MemtagRelocs); in createMemtagRelocs()
642 MCAssembler &Asm, const MCAsmLayout &Layout, in computeSymbolTable() argument
645 MCContext &Ctx = Asm.getContext(); in computeSymbolTable()
663 Asm.getFileNames(); in computeSymbolTable()
669 for (auto It : llvm::enumerate(Asm.symbols())) { in computeSymbolTable()
874 void ELFWriter::writeSectionData(const MCAssembler &Asm, MCSection &Sec, in writeSectionData() argument
879 auto &MC = Asm.getContext(); in writeSectionData()
885 Asm.writeSectionData(W.OS, &Section, Layout); in writeSectionData()
891 Asm.writeSectionData(VecOS, &Section, Layout); in writeSectionData()
939 void ELFWriter::writeRelocations(const MCAssembler &Asm, in writeRelocations() argument
950 OWriter.TargetObjectWriter->sortRelocs(Asm, Relocs); in writeRelocations()
1092 uint64_t ELFWriter::writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) { in writeObject() argument
1095 MCContext &Ctx = Asm.getContext(); in writeObject()
1100 createMemtagRelocs(Asm); in writeObject()
1108 writeHeader(Asm); in writeObject()
1114 for (MCSection &Sec : Asm) { in writeObject()
1125 writeSectionData(Asm, Section, Layout); in writeObject()
1186 computeSymbolTable(Asm, Layout, SectionIndexMap, RevGroupMap, in writeObject()
1193 writeRelocations(Asm, in writeObject()
1249 void ELFObjectWriter::executePostLayoutBinding(MCAssembler &Asm, in executePostLayoutBinding() argument
1253 for (const MCAssembler::Symver &S : Asm.Symvers) { in executePostLayoutBinding()
1266 cast<MCSymbolELF>(Asm.getContext().getOrCreateSymbol(Prefix + Tail)); in executePostLayoutBinding()
1267 Asm.registerSymbol(*Alias); in executePostLayoutBinding()
1268 const MCExpr *Value = MCSymbolRefExpr::create(&Symbol, Asm.getContext()); in executePostLayoutBinding()
1282 Asm.getContext().reportError(S.Loc, "default version symbol " + in executePostLayoutBinding()
1288 Asm.getContext().reportError(S.Loc, Twine("multiple versions for ") + in executePostLayoutBinding()
1308 bool ELFObjectWriter::shouldRelocateWithSymbol(const MCAssembler &Asm, in shouldRelocateWithSymbol() argument
1429 if (Asm.isThumbFunc(Sym)) in shouldRelocateWithSymbol()
1437 void ELFObjectWriter::recordRelocation(MCAssembler &Asm, in recordRelocation() argument
1442 MCAsmBackend &Backend = Asm.getBackend(); in recordRelocation()
1448 MCContext &Ctx = Asm.getContext(); in recordRelocation()
1497 shouldRelocateWithSymbol(Asm, Target, SymA, C, Type) || in recordRelocation()
1534 const MCAssembler &Asm, const MCSymbol &SA, const MCFragment &FB, in isSymbolRefDifferenceFullyResolvedImpl() argument
1543 return MCObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(Asm, SymA, FB, in isSymbolRefDifferenceFullyResolvedImpl()