Home
last modified time | relevance | path

Searched refs:getContents (Results 1 – 25 of 89) sorted by relevance

1234

/llvm-project-15.0.7/llvm/lib/MC/
H A DMCObjectStreamer.cpp248 flushPendingLabels(DF, DF->getContents().size()); in emitValueImpl()
266 DF->getContents().resize(DF->getContents().size() + Size, 0); in emitValueImpl()
298 Symbol->setOffset(F->getContents().size()); in emitLabel()
640 flushPendingLabels(DF, DF->getContents().size()); in emitBytes()
675 flushPendingLabels(DF, DF->getContents().size()); in emitDTPRel32Value()
679 DF->getContents().resize(DF->getContents().size() + 4, 0); in emitDTPRel32Value()
689 DF->getContents().resize(DF->getContents().size() + 8, 0); in emitDTPRel64Value()
699 DF->getContents().resize(DF->getContents().size() + 4, 0); in emitTPRel32Value()
709 DF->getContents().resize(DF->getContents().size() + 8, 0); in emitTPRel64Value()
719 DF->getContents().resize(DF->getContents().size() + 4, 0); in emitGPRel32Value()
[all …]
H A DMCAssembler.cpp670 OS << LF.getContents(); in writeFragment()
700 OS << OF.getContents(); in writeFragment()
705 OS << CF.getContents(); in writeFragment()
710 OS << OF.getContents(); in writeFragment()
715 OS << DRF.getContents(); in writeFragment()
720 OS << PF.getContents(); in writeFragment()
753 if (DF.getContents()[i]) { in writeSectionData()
884 Contents = DF.getContents(); in layout()
892 Contents = RF.getContents(); in layout()
900 Contents = CF.getContents(); in layout()
[all …]
H A DMCWinCOFFStreamer.cpp61 Fixups[i].setOffset(Fixups[i].getOffset() + DF->getContents().size()); in emitInstToData()
65 DF->getContents().append(Code.begin(), Code.end()); in emitInstToData()
222 MCFixup Fixup = MCFixup::create(DF->getContents().size(), SRE, FK_SecRel_2); in emitCOFFSectionIndex()
224 DF->getContents().resize(DF->getContents().size() + 2, 0); in emitCOFFSectionIndex()
238 MCFixup Fixup = MCFixup::create(DF->getContents().size(), MCE, FK_SecRel_4); in emitCOFFSecRel32()
242 DF->getContents().resize(DF->getContents().size() + 4, 0); in emitCOFFSecRel32()
257 MCFixup Fixup = MCFixup::create(DF->getContents().size(), MCE, FK_Data_4); in emitCOFFImgRel32()
261 DF->getContents().resize(DF->getContents().size() + 4, 0); in emitCOFFImgRel32()
H A DMCWasmStreamer.cpp43 flushPendingLabels(DF, DF->getContents().size()); in mergeFragment()
47 DF->getContents().size()); in mergeFragment()
52 DF->getContents().append(EF->getContents().begin(), EF->getContents().end()); in mergeFragment()
211 Fixups[I].setOffset(Fixups[I].getOffset() + DF->getContents().size()); in emitInstToData()
215 DF->getContents().append(Code.begin(), Code.end()); in emitInstToData()
H A DMCELFStreamer.cpp58 uint64_t FSize = EF->getContents().size(); in mergeFragment()
64 Assembler, EF, DF->getContents().size(), FSize); in mergeFragment()
75 DF->getContents().append(Code.begin(), Code.end()); in mergeFragment()
79 flushPendingLabels(DF, DF->getContents().size()); in mergeFragment()
83 DF->getContents().size()); in mergeFragment()
88 DF->getContents().append(EF->getContents().begin(), EF->getContents().end()); in mergeFragment()
598 CEIF->getContents().append(Code.begin(), Code.end()); in emitInstToData()
622 Fixup.setOffset(Fixup.getOffset() + DF->getContents().size()); in emitInstToData()
627 DF->getContents().append(Code.begin(), Code.end()); in emitInstToData()
H A DMCXCOFFStreamer.cpp113 const size_t ContentsSize = DF->getContents().size(); in emitInstToData()
121 DF->getContents().append(Code.begin(), Code.end()); in emitInstToData()
H A DMCMachOStreamer.cpp495 Fixup.setOffset(Fixup.getOffset() + DF->getContents().size()); in emitInstToData()
499 DF->getContents().append(Code.begin(), Code.end()); in emitInstToData()
564 Frag->getContents().resize(SectionBytes); in finalizeCGProfile()
608 Frag->getContents().resize(8); in createAddrSigSection()
H A DMCCodeView.cpp143 StrTabFragment->getContents().push_back('\0'); in getStringTableFragment()
149 SmallVectorImpl<char> &Contents = getStringTableFragment()->getContents(); in addToStringTable()
360 ->getContents()[Files[CurFileNum - 1].StringTableOffset]) + in emitLineTableForFunction()
510 SmallVectorImpl<char> &Buffer = Frag.getContents(); in encodeInlineLineTable()
609 SmallVectorImpl<char> &Contents = Frag.getContents(); in encodeDefRange()
H A DMCSPIRVStreamer.cpp32 DF->getContents().append(Code.begin(), Code.end()); in emitInstToData()
H A DMCFragment.cpp388 const SmallVectorImpl<char> &Contents = DF->getContents(); in dump()
412 const SmallVectorImpl<char> &Contents = CEIF->getContents(); in dump()
438 OS << " (" << F->getContents().size() << " bytes)"; in dump()
/llvm-project-15.0.7/llvm/tools/llvm-cov/
H A DTestingSupport.cpp84 if (Expected<StringRef> E = CoverageMapping.getContents()) in convertForTestingMain()
90 if (Expected<StringRef> E = CoverageRecords.getContents()) in convertForTestingMain()
96 if (Expected<StringRef> E = ProfileNames.getContents()) in convertForTestingMain()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVELFStreamer.cpp266 flushPendingLabels(DF, DF->getContents().size()); in emitValueImpl()
273 DF->getContents().size(), A, static_cast<MCFixupKind>(Add), Loc)); in emitValueImpl()
275 DF->getContents().size(), B, static_cast<MCFixupKind>(Sub), Loc)); in emitValueImpl()
277 DF->getContents().resize(DF->getContents().size() + Size, 0); in emitValueImpl()
/llvm-project-15.0.7/bolt/include/bolt/Core/
H A DBinarySection.h108 static StringRef getContents(SectionRef Section) { in getContents() function
113 Expected<StringRef> ContentsOrErr = Section.getContents(); in getContents()
146 Contents(Section.getContents()), Address(Section.getAddress()), in BinarySection()
154 Contents(getContents(Section)), Address(Section.getAddress()), in BinarySection()
266 const_cast<char *>(getContents().data())); in getData()
269 return reinterpret_cast<const uint8_t *>(getContents().data()); in getData()
271 StringRef getContents() const { return Contents; } in getContents() function
/llvm-project-15.0.7/llvm/include/llvm/MC/
H A DMCFragment.h196 SmallVectorImpl<char> &getContents() { return Contents; } in getContents() function
197 const SmallVectorImpl<char> &getContents() const { return Contents; } in getContents() function
446 SmallString<8> &getContents() { return Contents; } in getContents() function
447 const SmallString<8> &getContents() const { return Contents; } in getContents() function
539 SmallString<8> &getContents() { return Contents; } in getContents() function
540 const SmallString<8> &getContents() const { return Contents; } in getContents() function
/llvm-project-15.0.7/llvm/lib/Target/X86/MCTargetDesc/
H A DX86AsmBackend.cpp414 if (cast<MCDataFragment>(F)->getContents().size() != 0) in isRightAfterData()
429 DF->getContents().size() != PrevInstPosition.second; in isRightAfterData()
443 return cast<MCDataFragment>(*F).getContents().size(); in getSizeForInstFragment()
445 return cast<MCRelaxableFragment>(*F).getContents().size(); in getSizeForInstFragment()
447 return cast<MCCompactEncodedInstFragment>(*F).getContents().size(); in getSizeForInstFragment()
793 const unsigned OldSize = RF.getContents().size(); in padInstructionViaPrefix()
823 Code.append(RF.getContents().begin(), RF.getContents().end()); in padInstructionViaPrefix()
824 RF.getContents() = Code; in padInstructionViaPrefix()
850 const unsigned OldSize = RF.getContents().size(); in padInstructionViaRelaxation()
857 RF.getContents() = Code; in padInstructionViaRelaxation()
/llvm-project-15.0.7/bolt/lib/Core/
H A DBinarySection.cpp46 const StringRef Contents = getContents(); in hash()
70 StringRef SectionContents = getContents(); in emitAsData()
172 OutputContents.data() != getContents(Section).data())) { in ~BinarySection()
/llvm-project-15.0.7/lld/COFF/
H A DICF.cpp178 a->checksum == b->checksum && a->getContents() == b->getContents() && in equalsConstant()
273 sc->eqClass[0] = xxHash64(sc->getContents()); in run()
H A DPDB.cpp589 ArrayRef<uint8_t> sectionContents = debugChunk->getContents(); in analyzeSymbolSubsection()
653 ArrayRef<uint8_t> sectionContents = debugChunk->getContents(); in writeAllModuleSymbolRecords()
726 ArrayRef<uint8_t> contents = secChunk->getContents(); in createSectionContrib()
756 ArrayRef<uint8_t> contents = debugChunk->getContents(); in handleDebugS()
828 ptrdiff_t vaBegin = subsec.data() - sc->getContents().data(); in advanceRelocIndex()
859 debugChunk->writeAndRelocateSubsection(debugChunk->getContents(), subsec, in commit()
949 debugChunk->writeAndRelocateSubsection(debugChunk->getContents(), in finish()
1722 SectionChunk::consumeDebugMagic(dbgC->getContents(), ".debug$S"); in findLineTable()
1744 size_t offsetInDbgC = bytes.data() - dbgC->getContents().data(); in findLineTable()
H A DChunks.cpp362 ArrayRef<uint8_t> a = getContents(); in writeTo()
647 ArrayRef<uint8_t> SectionChunk::getContents() const { in getContents() function in lld::coff::SectionChunk
655 return consumeDebugMagic(getContents(), getSectionName()); in consumeDebugMagic()
962 builder.add(toStringRef(c->getContents())); in finalizeContents()
971 size_t off = builder.getOffset(toStringRef(c->getContents())); in assignSubsectionRVAs()
/llvm-project-15.0.7/llvm/lib/ObjCopy/COFF/
H A DCOFFObjcopy.cpp68 Sec.Header.VirtualSize = NeedVA ? Sec.getContents().size() : 0u; in addSection()
73 : Sec.getContents().size(); in addSection()
256 size_t ContentSize = It->getContents().size(); in handleArgs()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXString.h102 static inline StringRef getContents(const CXUnsavedFile &UF) { in getContents() function
/llvm-project-15.0.7/llvm/tools/llvm-readobj/
H A DObjDumper.cpp157 unwrapOrError(Obj.getFileName(), Section.getContents()); in printSectionsAsString()
175 unwrapOrError(Obj.getFileName(), Section.getContents()); in printSectionsAsHex()
/llvm-project-15.0.7/llvm/unittests/MC/
H A DDwarfLineTableHeaders.cpp152 Expected<StringRef> ContentsOrErr = Section.getContents(); in verifyDebugLineContents()
172 Expected<StringRef> ContentsOrErr = Section.getContents(); in verifyDebugLineStrContents()
/llvm-project-15.0.7/clang/include/clang/Tooling/DependencyScanning/
H A DDependencyScanningFilesystem.h250 Stat = llvm::vfs::Status::copyWithNewSize(Stat, getContents().size()); in getStatus()
264 StringRef getContents() const { return Entry.getOriginalContents(); } in getContents() function
/llvm-project-15.0.7/llvm/tools/llvm-objdump/
H A DOffloadDump.cpp79 Expected<StringRef> Contents = Sec.getContents(); in dumpOffloadBinary()

1234