| /src/external/apache2/llvm/dist/llvm/lib/CodeGen/AsmPrinter/ |
| AddressPool.cpp | 26 MCSymbol *AddressPool::emitHeader(AsmPrinter &Asm, MCSection *Section) { 27 static const uint8_t AddrSize = Asm.getDataLayout().getPointerSize(); 30 Asm.emitDwarfUnitLength("debug_addr", "Length of contribution"); 31 Asm.OutStreamer->AddComment("DWARF version number"); 32 Asm.emitInt16(Asm.getDwarfVersion()); 33 Asm.OutStreamer->AddComment("Address size"); 34 Asm.emitInt8(AddrSize); 35 Asm.OutStreamer->AddComment("Segment selector size"); 36 Asm.emitInt8(0); // TODO: Support non-zero segment_selector_size [all...] |
| ARMException.cpp | 9 // This file contains support for writing DWARF exception info into asm files. 34 MCTargetStreamer &TS = *Asm->OutStreamer->getTargetStreamer(); 39 if (Asm->MAI->getExceptionHandlingType() == ExceptionHandling::ARM) 42 AsmPrinter::CFISection CFISecType = Asm->getFunctionCFISectionType(*MF); 48 if (Asm->getModuleCFISectionType() == AsmPrinter::CFISection::Debug) 49 Asm->OutStreamer->emitCFISections(false, true); 54 Asm->OutStreamer->emitCFIStartProc(false); 71 if (!Asm->MF->getFunction().needsUnwindTableEntry() && 77 MCSymbol *PerSym = Asm->getSymbol(Per); 78 Asm->OutStreamer->emitSymbolAttribute(PerSym, MCSA_Global) [all...] |
| AIXException.cpp | 9 // This file contains support for writing AIX exception info into asm files. 39 Asm->OutStreamer->SwitchSection( 40 Asm->getObjFileLowering().getCompactUnwindSection()); 42 TargetLoweringObjectFileXCOFF::getEHInfoTableSymbol(Asm->MF); 43 Asm->OutStreamer->emitLabel(EHInfoLabel); 46 Asm->emitInt32(0); 52 Asm->OutStreamer->emitValueToAlignment(PointerSize); 55 Asm->OutStreamer->emitValue(MCSymbolRefExpr::create(LSDA, Asm->OutContext), 59 Asm->OutStreamer->emitValue(MCSymbolRefExpr::create(PerSym, Asm->OutContext) [all...] |
| DwarfStringPool.cpp | 20 DwarfStringPool::DwarfStringPool(BumpPtrAllocator &A, AsmPrinter &Asm, 23 ShouldCreateSymbols(Asm.MAI->doesDwarfUseRelocationsAcrossSections()) {} 26 DwarfStringPool::getEntryImpl(AsmPrinter &Asm, StringRef Str) { 32 Entry.Symbol = ShouldCreateSymbols ? Asm.createTempSymbol(Prefix) : nullptr; 39 DwarfStringPool::EntryRef DwarfStringPool::getEntry(AsmPrinter &Asm, 41 auto &MapEntry = getEntryImpl(Asm, Str); 45 DwarfStringPool::EntryRef DwarfStringPool::getIndexedEntry(AsmPrinter &Asm, 47 auto &MapEntry = getEntryImpl(Asm, Str); 53 void DwarfStringPool::emitStringOffsetsTableHeader(AsmPrinter &Asm, 58 Asm.OutStreamer->SwitchSection(Section) [all...] |
| EHStreamer.cpp | 39 EHStreamer::EHStreamer(AsmPrinter *A) : Asm(A), MMI(Asm->MMI) {} 81 const std::vector<unsigned> &FilterIds = Asm->MF->getFilterIds(); 237 MCSymbol *LastLabel = Asm->getFunctionBegin(); 246 bool IsSJLJ = Asm->MAI->getExceptionHandlingType() == ExceptionHandling::SjLj; 249 for (const auto &MBB : *Asm->MF) { 250 if (&MBB == &Asm->MF->front() || MBB.isBeginSection()) { 254 {Asm->MBBSectionRanges[MBB.getSectionIDNum()].BeginLabel, 255 Asm->MBBSectionRanges[MBB.getSectionIDNum()].EndLabel, 256 Asm->getMBBExceptionSym(MBB), CallSites.size()}) [all...] |
| DwarfCFIException.cpp | 9 // This file contains support for writing DWARF exception info into asm files. 43 if (!Asm->MF->getLandingPads().empty()) { 44 MachineFunction *NonConstMF = const_cast<MachineFunction*>(Asm->MF); 50 if (shouldEmitCFI && !Asm->MF->hasBBSections()) 51 Asm->OutStreamer->emitCFIEndProc(); 64 if (!Asm->MAI->usesCFIForEH()) 67 const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering(); 78 MCSymbol *Sym = Asm->getSymbol(Personality); 79 TLOF.emitPersonalityValue(*Asm->OutStreamer, Asm->getDataLayout(), Sym) [all...] |
| 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);
|
| WasmException.cpp | 9 // This file contains support for writing WebAssembly exception info into asm 27 Mangler::getNameWithPrefix(NameStr, "__cpp_exception", Asm->getDataLayout()); 28 if (Asm->OutContext.lookupSymbol(NameStr)) { 29 MCSymbol *ExceptionSym = Asm->GetExternalSymbolSymbol("__cpp_exception"); 30 Asm->OutStreamer->emitLabel(ExceptionSym); 36 if (!Asm->MF->getLandingPads().empty()) { 37 auto *NonConstMF = const_cast<MachineFunction *>(Asm->MF); 60 MCSymbol *LSDAEndLabel = Asm->createTempSymbol("GCC_except_table_end"); 61 Asm->OutStreamer->emitLabel(LSDAEndLabel); 62 MCContext &OutContext = Asm->OutStreamer->getContext() [all...] |
| AccelTable.cpp | 54 void AccelTableBase::finalize(AsmPrinter *Asm, StringRef Prefix) { 78 E.second.Sym = Asm->createTempSymbol(Prefix); 94 AsmPrinter *const Asm; ///< Destination. 109 AccelTableWriter(AsmPrinter *Asm, const AccelTableBase &Contents, 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, 170 : AccelTableWriter(Asm, Contents, true) [all...] |
| WinCFGuard.cpp | 30 WinCFGuard::WinCFGuard(AsmPrinter *A) : AsmPrinterHandler(), Asm(A) {} 83 return Asm->OutContext.lookupSymbol(Twine("__imp_") + Sym->getName()); 87 const Module *M = Asm->MMI->getModule(); 95 if (MCSymbol *impSym = lookupImpSymbol(Asm->getSymbol(&F))) { 104 GFIDsEntries.push_back(Asm->getSymbol(&F)); 112 auto &OS = *Asm->OutStreamer; 113 OS.SwitchSection(Asm->OutContext.getObjectFileInfo()->getGFIDsSection()); 118 OS.SwitchSection(Asm->OutContext.getObjectFileInfo()->getGIATsSection()); 124 OS.SwitchSection(Asm->OutContext.getObjectFileInfo()->getGLJMPSection());
|
| DwarfFile.cpp | 23 : Asm(AP), Abbrevs(AbbrevAllocator), StrPool(DA, *Asm, Pref) {} 50 Asm->OutStreamer->SwitchSection(S); 52 Asm->emitDwarfDIE(TheU->getUnitDie()); 55 Asm->OutStreamer->emitLabel(EndLabel); 77 if (SecOffset > UINT32_MAX && !Asm->isDwarf64()) 84 unsigned Offset = Asm->getUnitLengthFieldByteSize() + // Length of Unit Info 95 return Die.computeOffsetsAndAbbrevs(Asm, Abbrevs, Offset); 98 void DwarfFile::emitAbbrevs(MCSection *Section) { Abbrevs.Emit(Asm, Section); } 103 StrPool.emit(*Asm, StrSection, OffsetSection, UseRelativeOffsets) [all...] |
| DebugLocStream.cpp | 15 bool DebugLocStream::finalizeList(AsmPrinter &Asm) { 23 Lists.back().Label = Asm.createTempSymbol("debug_loc"); 41 if (!Locs.finalizeList(Asm))
|
| WinException.cpp | 9 // This file contains support for writing Win64 exception info into asm files. 45 isAArch64 = Asm->TM.getTargetTriple().isAArch64(); 53 auto &OS = *Asm->OutStreamer; 57 OS.EmitCOFFSafeSEH(Asm->getSymbol(&F)); 61 OS.SwitchSection(Asm->OutContext.getObjectFileInfo()->getGEHContSection()); 77 shouldEmitMoves = Asm->needsSEHMoves() && MF->hasWinCFI(); 79 const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering(); 103 if (!Asm->MAI->usesWindowsCFI()) { 118 beginFunclet(MF->front(), Asm->CurrentFnSym); 124 Asm->OutStreamer->EmitWinCFIFuncletOrFuncEnd() [all...] |
| DwarfDebug.cpp | 9 // This file contains support for writing dwarf debug info into asm files. 355 const Triple &TT = Asm->TM.getTargetTriple(); 359 if (Asm->TM.Options.DebuggerTuning != DebuggerKind::Default) 360 DebuggerTuning = Asm->TM.Options.DebuggerTuning; 380 HasSplitDwarf = !Asm->TM.Options.MCOptions.SplitDwarfFile.empty(); 388 unsigned DwarfVersionNumber = Asm->TM.Options.MCOptions.DwarfVersion; 404 ((Asm->TM.Options.MCOptions.Dwarf64 || MMI->getModule()->isDwarf64()) && 445 EmitDebugEntryValues = Asm->TM.Options.ShouldEmitDebugEntryValues(); 467 Asm->OutStreamer->getContext().setDwarfVersion(DwarfVersion); 468 Asm->OutStreamer->getContext().setDwarfFormat(Dwarf64 ? dwarf::DWARF6 [all...] |
| AddressPool.h | 45 void emit(AsmPrinter &Asm, MCSection *AddrSection); 57 MCSymbol *emitHeader(AsmPrinter &Asm, MCSection *Section);
|
| /src/external/apache2/llvm/dist/llvm/lib/MC/ |
| MCObjectWriter.cpp | 20 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,
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/MC/ |
| MCObjectWriter.h | 53 virtual void executePostLayoutBinding(MCAssembler &Asm, 62 virtual void recordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout, 72 bool isSymbolRefDifferenceFullyResolved(const MCAssembler &Asm, 77 virtual bool isSymbolRefDifferenceFullyResolvedImpl(const MCAssembler &Asm, 82 virtual bool isSymbolRefDifferenceFullyResolvedImpl(const MCAssembler &Asm, 105 virtual uint64_t writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) = 0;
|
| /src/external/apache2/llvm/dist/llvm/lib/DWARFLinker/ |
| DWARFStreamer.cpp | 51 return error("no asm info for target " + TripleName, Context), false; 63 return error("no asm backend for target " + TripleName, Context), false; 102 Asm.reset(TheTarget->createAsmPrinter(*TM, std::unique_ptr<MCStreamer>(MS))); 103 if (!Asm) 104 return error("no asm printer for target " + TripleName, Context), false; 143 Unit.setLabelBegin(Asm->createTempSymbol("cu_begin")); 144 Asm->OutStreamer->emitLabel(Unit.getLabelBegin()); 149 Asm->emitInt32(Unit.getNextUnitOffset() - Unit.getStartOffset() - 4); 150 Asm->emitInt16(DwarfVersion); 153 Asm->emitInt8(dwarf::DW_UT_compile) [all...] |
| /src/sys/arch/sparc/sparc/ |
| cpu_in_cksum.c | 144 #define Asm asm volatile 145 #define ADD64 Asm(" ld [%4+ 0],%1; ld [%4+ 4],%2; \ 164 #define ADD32 Asm(" ld [%4+ 0],%1; ld [%4+ 4],%2; \ 175 #define ADD16 Asm(" ld [%4+ 0],%1; ld [%4+ 4],%2; \ 182 #define ADD8 Asm(" ld [%4+ 0],%1; ld [%4+ 4],%2; \ 187 #define ADD4 Asm(" ld [%3+ 0],%1; \ 208 * Declare two temporary registers for use by the asm code. We 210 * use, instead of hard-coding this in the asm code above.
|
| /src/external/apache2/llvm/dist/llvm/lib/Target/CSKY/MCTargetDesc/ |
| CSKYMCExpr.cpp | 57 static void fixELFSymbolsInTLSFixupsImpl(const MCExpr *Expr, MCAssembler &Asm) { 67 fixELFSymbolsInTLSFixupsImpl(BE->getLHS(), Asm); 68 fixELFSymbolsInTLSFixupsImpl(BE->getRHS(), Asm); 81 fixELFSymbolsInTLSFixupsImpl(cast<MCUnaryExpr>(Expr)->getSubExpr(), Asm); 86 void CSKYMCExpr::fixELFSymbolsInTLSFixups(MCAssembler &Asm) const { 95 fixELFSymbolsInTLSFixupsImpl(getSubExpr(), Asm);
|
| /src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/MCTargetDesc/ |
| AArch64MachObjectWriter.cpp | 37 unsigned &Log2Size, const MCAssembler &Asm); 43 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, 53 unsigned &Log2Size, const MCAssembler &Asm) { 102 Asm.getContext().reportError(Fixup.getLoc(), 152 MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, 155 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); 182 Asm.getContext().reportError(Fixup.getLoc(), 193 Asm.getContext().reportError(Fixup.getLoc(), 199 Asm)) { 200 Asm.getContext().reportError(Fixup.getLoc(), "unknown AArch64 fixup kind!") [all...] |
| AArch64MCExpr.cpp | 114 static void fixELFSymbolsInTLSFixupsImpl(const MCExpr *Expr, MCAssembler &Asm) { 124 fixELFSymbolsInTLSFixupsImpl(BE->getLHS(), Asm); 125 fixELFSymbolsInTLSFixupsImpl(BE->getRHS(), Asm); 138 fixELFSymbolsInTLSFixupsImpl(cast<MCUnaryExpr>(Expr)->getSubExpr(), Asm); 143 void AArch64MCExpr::fixELFSymbolsInTLSFixups(MCAssembler &Asm) const { 154 fixELFSymbolsInTLSFixupsImpl(getSubExpr(), Asm);
|
| /src/external/apache2/llvm/dist/llvm/lib/Target/X86/MCTargetDesc/ |
| X86MachObjectWriter.cpp | 28 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.getAtom(*A) [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/ARM/MCTargetDesc/ |
| ARMMachObjectWriter.cpp | 31 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.isThumbFunc(A) [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/MCTargetDesc/ |
| HexagonMCExpr.cpp | 40 static void fixELFSymbolsInTLSFixupsImpl(const MCExpr *Expr, MCAssembler &Asm) { 50 fixELFSymbolsInTLSFixupsImpl(be->getLHS(), Asm); 51 fixELFSymbolsInTLSFixupsImpl(be->getRHS(), Asm); 72 fixELFSymbolsInTLSFixupsImpl(cast<MCUnaryExpr>(Expr)->getSubExpr(), Asm); 77 void HexagonMCExpr::fixELFSymbolsInTLSFixups(MCAssembler &Asm) const { 79 fixELFSymbolsInTLSFixupsImpl(expr, Asm);
|