/external/llvm/lib/CodeGen/AsmPrinter/ |
D | WinCodeViewLineTables.cpp | 96 MCSymbol *MCL = Asm->MMI->getContext().createTempSymbol(); in maybeRecordLocation() 97 Asm->OutStreamer->EmitLabel(MCL); in maybeRecordLocation() 103 : Asm(nullptr), CurFn(nullptr) { in WinCodeViewLineTables() 114 Asm = AP; in WinCodeViewLineTables() 121 assert(Asm != nullptr); in endModule() 122 Asm->OutStreamer->SwitchSection( in endModule() 123 Asm->getObjFileLowering().getCOFFDebugSymbolsSection()); in endModule() 124 Asm->EmitInt32(COFF::DEBUG_SECTION_MAGIC); in endModule() 137 Asm->OutStreamer->AddComment("File index to string table offset subsection"); in endModule() 138 Asm->EmitInt32(COFF::DEBUG_INDEX_SUBSECTION); in endModule() [all …]
|
D | DwarfAccelTable.cpp | 71 void DwarfAccelTable::FinalizeTable(AsmPrinter *Asm, StringRef Prefix) { in FinalizeTable() argument 99 Data[i]->Sym = Asm->createTempSymbol(Prefix); in FinalizeTable() 113 void DwarfAccelTable::EmitHeader(AsmPrinter *Asm) { in EmitHeader() argument 114 Asm->OutStreamer->AddComment("Header Magic"); in EmitHeader() 115 Asm->EmitInt32(Header.magic); in EmitHeader() 116 Asm->OutStreamer->AddComment("Header Version"); in EmitHeader() 117 Asm->EmitInt16(Header.version); in EmitHeader() 118 Asm->OutStreamer->AddComment("Header Hash Function"); in EmitHeader() 119 Asm->EmitInt16(Header.hash_function); in EmitHeader() 120 Asm->OutStreamer->AddComment("Header Bucket Count"); in EmitHeader() [all …]
|
D | EHStreamer.cpp | 28 EHStreamer::EHStreamer(AsmPrinter *A) : Asm(A), MMI(Asm->MMI) {} in EHStreamer() 231 bool IsSJLJ = Asm->MAI->getExceptionHandlingType() == ExceptionHandling::SjLj; in computeCallSiteTable() 234 for (const auto &MBB : *Asm->MF) { in computeCallSiteTable() 262 if (SawPotentiallyThrowing && Asm->MAI->usesCFIForEH()) { in computeCallSiteTable() 370 bool IsSJLJ = Asm->MAI->getExceptionHandlingType() == ExceptionHandling::SjLj; in emitExceptionTable() 391 MCSection *LSDASection = Asm->getObjFileLowering().getLSDASection(); in emitExceptionTable() 400 TypeFormatSize = Asm->getDataLayout().getPointerSize(); in emitExceptionTable() 429 TTypeEncoding = Asm->getObjFileLowering().getTTypeEncoding(); in emitExceptionTable() 430 TypeFormatSize = Asm->GetSizeOfEncodedValue(TTypeEncoding); in emitExceptionTable() 437 Asm->OutStreamer->SwitchSection(LSDASection); in emitExceptionTable() [all …]
|
D | ARMException.cpp | 44 MCTargetStreamer &TS = *Asm->OutStreamer->getTargetStreamer(); in getTargetStreamer() 52 Asm->OutStreamer->EmitCFISections(false, true); in endModule() 56 if (Asm->MAI->getExceptionHandlingType() == ExceptionHandling::ARM) in beginFunction() 59 AsmPrinter::CFIMoveType MoveType = Asm->needsCFIMoves(); in beginFunction() 64 Asm->OutStreamer->EmitCFIStartProc(false); in beginFunction() 81 if (!Asm->MF->getFunction()->needsUnwindTableEntry() && in endFunction() 87 MCSymbol *PerSym = Asm->getSymbol(Per); in endFunction() 88 Asm->OutStreamer->EmitSymbolAttribute(PerSym, MCSA_Global); in endFunction() 99 if (Asm->MAI->getExceptionHandlingType() == ExceptionHandling::ARM) in endFunction() 107 bool VerboseAsm = Asm->OutStreamer->isVerboseAsm(); in emitTypeInfos() [all …]
|
D | WinException.cpp | 55 auto &OS = *Asm->OutStreamer; in endModule() 59 OS.EmitCOFFSafeSEH(Asm->getSymbol(&F)); in endModule() 71 shouldEmitMoves = Asm->needsSEHMoves(); in beginFunction() 73 const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering(); in beginFunction() 93 if (!Asm->MAI->usesWindowsCFI()) { in beginFunction() 99 beginFunclet(MF->front(), Asm->CurrentFnSym); in beginFunction() 126 Asm->OutStreamer->PushSection(); in endFunction() 130 MCSection *XData = WinEH::UnwindEmitter::getXDataSection(Asm->CurrentFnSym, in endFunction() 131 Asm->OutContext); in endFunction() 132 Asm->OutStreamer->SwitchSection(XData); in endFunction() [all …]
|
D | DwarfDebug.cpp | 204 : Asm(A), MMI(Asm->MMI), DebugLocs(A->OutStreamer->isVerboseAsm()), in DwarfDebug() 218 Triple TT(Asm->getTargetTriple()); in DwarfDebug() 222 if (Asm->TM.Options.DebuggerTuning != DebuggerKind::Default) in DwarfDebug() 223 DebuggerTuning = Asm->TM.Options.DebuggerTuning; in DwarfDebug() 255 unsigned DwarfVersionNumber = Asm->TM.Options.MCOptions.DwarfVersion; in DwarfDebug() 268 Asm->OutStreamer->getContext().setDwarfVersion(DwarfVersion); in DwarfDebug() 391 InfoHolder.getUnits().size(), DIUnit, Asm, this, &InfoHolder); in constructDwarfCompileUnit() 402 if (!Asm->OutStreamer->hasRawTextSupport() || SingleCU) in constructDwarfCompileUnit() 403 Asm->OutStreamer->getContext().setMCLineTableCompilationDir( in constructDwarfCompileUnit() 434 NewCU.initSection(Asm->getObjFileLowering().getDwarfInfoDWOSection()); in constructDwarfCompileUnit() [all …]
|
D | DwarfCFIException.cpp | 47 Asm->OutStreamer->EmitCFIEndProc(); in markFunctionEnd() 67 Asm->OutStreamer->EmitCFISections(false, true); in endModule() 70 if (!Asm->MAI->usesCFIForEH()) in endModule() 73 const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering(); in endModule() 84 MCSymbol *Sym = Asm->getSymbol(Personality); in endModule() 85 TLOF.emitPersonalityValue(*Asm->OutStreamer, Asm->getDataLayout(), Sym); in endModule() 97 AsmPrinter::CFIMoveType MoveType = Asm->needsCFIMoves(); in beginFunction() 105 const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering(); in beginFunction() 133 Asm->OutStreamer->EmitCFIStartProc(/*IsSimple=*/false); in beginFunction() 145 TLOF.getCFIPersonalitySymbol(Per, *Asm->Mang, Asm->TM, MMI); in beginFunction() [all …]
|
D | DwarfStringPool.cpp | 17 DwarfStringPool::DwarfStringPool(BumpPtrAllocator &A, AsmPrinter &Asm, in DwarfStringPool() argument 20 ShouldCreateSymbols(Asm.MAI->doesDwarfUseRelocationsAcrossSections()) {} in DwarfStringPool() 22 DwarfStringPool::EntryRef DwarfStringPool::getEntry(AsmPrinter &Asm, in getEntry() argument 29 Entry.Symbol = ShouldCreateSymbols ? Asm.createTempSymbol(Prefix) : nullptr; in getEntry() 37 void DwarfStringPool::emit(AsmPrinter &Asm, MCSection *StrSection, in emit() argument 43 Asm.OutStreamer->SwitchSection(StrSection); in emit() 58 Asm.OutStreamer->EmitLabel(Entry->getValue().Symbol); in emit() 61 Asm.OutStreamer->AddComment("string offset=" + in emit() 63 Asm.OutStreamer->EmitBytes( in emit() 69 Asm.OutStreamer->SwitchSection(OffsetSection); in emit() [all …]
|
D | AddressPool.cpp | 27 void AddressPool::emit(AsmPrinter &Asm, MCSection *AddrSection) { in emit() argument 32 Asm.OutStreamer->SwitchSection(AddrSection); in emit() 40 ? Asm.getObjFileLowering().getDebugThreadLocalSymbol(I.first) in emit() 41 : MCSymbolRefExpr::create(I.first, Asm.OutContext); in emit() 44 Asm.OutStreamer->EmitValue(Entry, Asm.getDataLayout().getPointerSize()); in emit()
|
D | DIE.cpp | 242 void DIEInteger::EmitValue(const AsmPrinter *Asm, dwarf::Form Form) const { in EmitValue() argument 248 Asm->OutStreamer->AddBlankLine(); in EmitValue() 262 case dwarf::DW_FORM_GNU_str_index: Asm->EmitULEB128(Integer); return; in EmitValue() 263 case dwarf::DW_FORM_GNU_addr_index: Asm->EmitULEB128(Integer); return; in EmitValue() 264 case dwarf::DW_FORM_udata: Asm->EmitULEB128(Integer); return; in EmitValue() 265 case dwarf::DW_FORM_sdata: Asm->EmitSLEB128(Integer); return; in EmitValue() 267 Size = Asm->getPointerSize(); in EmitValue() 270 Size = SizeOf(Asm, dwarf::DW_FORM_ref_addr); in EmitValue() 274 Asm->OutStreamer->EmitIntValue(Integer, Size); in EmitValue() 484 void DIETypeSignature::EmitValue(const AsmPrinter *Asm, in EmitValue() argument [all …]
|
D | DwarfFile.cpp | 21 : Asm(AP), StrPool(DA, *Asm, Pref) {} in DwarfFile() 63 Asm->OutStreamer->SwitchSection(USection); in emitUnits() 67 Asm->emitDwarfDIE(Die); in emitUnits() 106 Offset += V.SizeOf(Asm); in computeSizeAndOffset() 128 Asm->OutStreamer->SwitchSection(Section); in emitAbbrevs() 129 Asm->emitDwarfAbbrevs(Abbreviations); in emitAbbrevs() 135 StrPool.emit(*Asm, StrSection, OffsetSection); in emitStrings()
|
/external/llvm/lib/Target/AArch64/MCTargetDesc/ |
D | AArch64MachObjectWriter.cpp | 30 unsigned &Log2Size, const MCAssembler &Asm); 36 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, 45 unsigned &Log2Size, const MCAssembler &Asm) { in getAArch64FixupKindMachOInfo() argument 94 Asm.getContext().reportError(Fixup.getLoc(), in getAArch64FixupKindMachOInfo() 145 MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, in recordRelocation() argument 148 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordRelocation() 175 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() 186 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() 192 Asm)) { in recordRelocation() 193 Asm.getContext().reportError(Fixup.getLoc(), "unknown AArch64 fixup kind!"); in recordRelocation() [all …]
|
D | AArch64MCExpr.cpp | 104 static void fixELFSymbolsInTLSFixupsImpl(const MCExpr *Expr, MCAssembler &Asm) { in fixELFSymbolsInTLSFixupsImpl() argument 114 fixELFSymbolsInTLSFixupsImpl(BE->getLHS(), Asm); in fixELFSymbolsInTLSFixupsImpl() 115 fixELFSymbolsInTLSFixupsImpl(BE->getRHS(), Asm); in fixELFSymbolsInTLSFixupsImpl() 128 fixELFSymbolsInTLSFixupsImpl(cast<MCUnaryExpr>(Expr)->getSubExpr(), Asm); in fixELFSymbolsInTLSFixupsImpl() 133 void AArch64MCExpr::fixELFSymbolsInTLSFixups(MCAssembler &Asm) const { in fixELFSymbolsInTLSFixups() 144 fixELFSymbolsInTLSFixupsImpl(getSubExpr(), Asm); in fixELFSymbolsInTLSFixups()
|
/external/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86MachObjectWriter.cpp | 29 const MCAssembler &Asm, 37 const MCAssembler &Asm, 45 const MCAssembler &Asm, 51 void RecordX86_64Relocation(MachObjectWriter *Writer, MCAssembler &Asm, 60 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, in recordRelocation() argument 65 RecordX86_64Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation() 68 RecordX86Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation() 98 MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, in RecordX86_64Relocation() argument 101 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation() 143 const MCSymbol *A_Base = Asm.getAtom(*A); in RecordX86_64Relocation() [all …]
|
/external/llvm/lib/MC/ |
D | MachObjectWriter.cpp | 60 bool MachObjectWriter::isFixupKindPCRel(const MCAssembler &Asm, unsigned Kind) { in isFixupKindPCRel() argument 61 const MCFixupKindInfo &FKI = Asm.getBackend().getFixupKindInfo( in isFixupKindPCRel() 433 void MachObjectWriter::recordRelocation(MCAssembler &Asm, in recordRelocation() argument 438 TargetObjectWriter->recordRelocation(this, Asm, Layout, Fragment, Fixup, in recordRelocation() 442 void MachObjectWriter::bindIndirectSymbols(MCAssembler &Asm) { in bindIndirectSymbols() argument 452 for (MCAssembler::indirect_symbol_iterator it = Asm.indirect_symbol_begin(), in bindIndirectSymbols() 453 ie = Asm.indirect_symbol_end(); it != ie; ++it) { in bindIndirectSymbols() 467 for (MCAssembler::indirect_symbol_iterator it = Asm.indirect_symbol_begin(), in bindIndirectSymbols() 468 ie = Asm.indirect_symbol_end(); it != ie; ++it, ++IndirectIndex) { in bindIndirectSymbols() 477 Asm.registerSymbol(*it->Symbol); in bindIndirectSymbols() [all …]
|
D | ELFObjectWriter.cpp | 73 static bool isFixupKindPCRel(const MCAssembler &Asm, unsigned Kind); 168 void writeHeader(const MCAssembler &Asm); 177 bool shouldRelocateWithSymbol(const MCAssembler &Asm, 182 void recordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout, 195 void computeSymbolTable(MCAssembler &Asm, const MCAsmLayout &Layout, 205 void executePostLayoutBinding(MCAssembler &Asm, 212 void writeSectionData(const MCAssembler &Asm, MCSection &Sec, 220 void writeRelocations(const MCAssembler &Asm, const MCSectionELF &Sec); 222 bool isSymbolRefDifferenceFullyResolvedImpl(const MCAssembler &Asm, 230 void writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) override; [all …]
|
D | MCExpr.cpp | 432 bool MCExpr::evaluateAsAbsolute(int64_t &Res, const MCAssembler &Asm) const { in evaluateAsAbsolute() 433 return evaluateAsAbsolute(Res, &Asm, nullptr, nullptr); in evaluateAsAbsolute() 442 bool MCExpr::evaluateAsAbsolute(int64_t &Res, const MCAssembler *Asm, in evaluateAsAbsolute() argument 448 return evaluateAsAbsolute(Res, Asm, Layout, Addrs, Addrs); in evaluateAsAbsolute() 451 bool MCExpr::evaluateAsAbsolute(int64_t &Res, const MCAssembler *Asm, in evaluateAsAbsolute() argument 463 evaluateAsRelocatableImpl(Value, Asm, Layout, nullptr, Addrs, InSet); in evaluateAsAbsolute() 473 const MCAssembler *Asm, const MCAsmLayout *Layout, in AttemptToFoldSymbolOffsetDifference() argument 485 if (!Asm->getWriter().isSymbolRefDifferenceFullyResolved(*Asm, A, B, InSet)) in AttemptToFoldSymbolOffsetDifference() 494 if (Asm->isThumbFunc(&SA)) in AttemptToFoldSymbolOffsetDifference() 520 if (Asm->isThumbFunc(&SA)) in AttemptToFoldSymbolOffsetDifference() [all …]
|
D | MCObjectWriter.cpp | 21 const MCAssembler &Asm, const MCSymbolRefExpr *A, const MCSymbolRefExpr *B, in isSymbolRefDifferenceFullyResolved() argument 36 return isSymbolRefDifferenceFullyResolvedImpl(Asm, SA, SB, InSet); in isSymbolRefDifferenceFullyResolved() 40 const MCAssembler &Asm, const MCSymbol &A, const MCSymbol &B, in isSymbolRefDifferenceFullyResolvedImpl() argument 42 return isSymbolRefDifferenceFullyResolvedImpl(Asm, A, *B.getFragment(), InSet, in isSymbolRefDifferenceFullyResolvedImpl() 47 const MCAssembler &Asm, const MCSymbol &SymA, const MCFragment &FB, in isSymbolRefDifferenceFullyResolvedImpl() argument
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMMachObjectWriter.cpp | 30 const MCAssembler &Asm, 39 const MCAssembler &Asm, 46 const MCAssembler &Asm, 54 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, 140 const MCAssembler &Asm, in RecordARMScatteredHalfRelocation() argument 147 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredHalfRelocation() 154 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation() 169 Asm.getContext().reportError(Fixup.getLoc(), in RecordARMScatteredHalfRelocation() 204 if (Asm.isThumbFunc(A)) in RecordARMScatteredHalfRelocation() 208 if (Asm.isThumbFunc(A)) in RecordARMScatteredHalfRelocation() [all …]
|
/external/llvm/lib/Target/AArch64/InstPrinter/ |
D | AArch64InstPrinter.cpp | 685 const char *Asm = nullptr; in printSysAlias() local 704 Asm = "ic\tialluis"; in printSysAlias() 708 Asm = "ic\tiallu"; in printSysAlias() 710 Asm = "ic\tivau"; in printSysAlias() 716 Asm = "dc\tzva"; in printSysAlias() 720 Asm = "dc\tivac"; in printSysAlias() 722 Asm = "dc\tisw"; in printSysAlias() 726 Asm = "dc\tcvac"; in printSysAlias() 728 Asm = "dc\tcsw"; in printSysAlias() 732 Asm = "dc\tcvau"; in printSysAlias() [all …]
|
/external/mesa3d/src/gallium/drivers/radeon/MCTargetDesc/ |
D | AMDGPUAsmBackend.cpp | 25 virtual void ExecutePostLayoutBinding(MCAssembler &Asm, in ExecutePostLayoutBinding() argument 29 virtual void RecordRelocation(const MCAssembler &Asm, in RecordRelocation() argument 37 virtual void WriteObject(MCAssembler &Asm, const MCAsmLayout &Layout); 66 void AMDGPUMCObjectWriter::WriteObject(MCAssembler &Asm, in WriteObject() argument 68 for (MCAssembler::iterator I = Asm.begin(), E = Asm.end(); I != E; ++I) { in WriteObject() 69 Asm.writeSectionData(I, Layout); in WriteObject()
|
/external/llvm/include/llvm/MC/ |
D | MCMachObjectWriter.h | 65 virtual void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, 133 bool isFixupKindPCRel(const MCAssembler &Asm, unsigned Kind); 221 void recordScatteredRelocation(const MCAssembler &Asm, 227 void recordTLVPRelocation(const MCAssembler &Asm, const MCAsmLayout &Layout, 231 void recordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout, 236 void bindIndirectSymbols(MCAssembler &Asm); 239 void computeSymbolTable(MCAssembler &Asm, 244 void computeSectionAddresses(const MCAssembler &Asm, 247 void executePostLayoutBinding(MCAssembler &Asm, 250 bool isSymbolRefDifferenceFullyResolvedImpl(const MCAssembler &Asm, [all …]
|
/external/llvm/lib/Target/Mips/MCTargetDesc/ |
D | MipsELFObjectWriter.cpp | 51 virtual void sortRelocs(const MCAssembler &Asm, 233 static unsigned getMatchingLoType(const MCAssembler &Asm, in getMatchingLoType() argument 258 static bool areMatchingHiAndLo(const MCAssembler &Asm, in areMatchingHiAndLo() argument 261 return getMatchingLoType(Asm, First) != ELF::R_MIPS_NONE && in areMatchingHiAndLo() 262 getMatchingLoType(Asm, First) == Second.Type && in areMatchingHiAndLo() 268 isPrecededByMatchingHi(const MCAssembler &Asm, uint32_t Index, in isPrecededByMatchingHi() argument 271 areMatchingHiAndLo(Asm, MipsRelocs[Index + 1].R, MipsRelocs[Index].R); in isPrecededByMatchingHi() 276 static bool isFreeLo(const MCAssembler &Asm, uint32_t Index, in isFreeLo() argument 279 !isPrecededByMatchingHi(Asm, Index, MipsRelocs); in isFreeLo() 341 void MipsELFObjectWriter::sortRelocs(const MCAssembler &Asm, in sortRelocs() argument [all …]
|
/external/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
D | AMDGPUAsmBackend.cpp | 28 void executePostLayoutBinding(MCAssembler &Asm, in executePostLayoutBinding() argument 32 void recordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout, in recordRelocation() argument 39 void writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) override; 67 void AMDGPUMCObjectWriter::writeObject(MCAssembler &Asm, in writeObject() argument 69 for (MCAssembler::iterator I = Asm.begin(), E = Asm.end(); I != E; ++I) { in writeObject() 70 Asm.writeSectionData(&*I, Layout); in writeObject()
|
/external/llvm/lib/Target/PowerPC/MCTargetDesc/ |
D | PPCMachObjectWriter.cpp | 28 const MCAssembler &Asm, 34 void RecordPPCRelocation(MachObjectWriter *Writer, const MCAssembler &Asm, 43 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, in recordRelocation() argument 50 RecordPPCRelocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation() 192 MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, in recordScatteredRelocation() argument 198 const unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, FK); in recordScatteredRelocation() 244 Asm.getContext().reportError(Fixup.getLoc(), in recordScatteredRelocation() 302 MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, in RecordPPCRelocation() argument 307 const bool IsPCRel = Writer->isFixupKindPCRel(Asm, FK); in RecordPPCRelocation() 317 recordScatteredRelocation(Writer, Asm, Layout, Fragment, Fixup, Target, in RecordPPCRelocation()
|