Home
last modified time | relevance | path

Searched refs:ContentSize (Results 1 – 13 of 13) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DEPCGenericJITLinkMemoryManager.cpp31 SegInfo() : WorkingMem(nullptr), ContentSize(0), ZeroFillSize(0) {} in SegInfo()
35 uint64_t ContentSize; member
48 assert(KV.second.ContentSize <= std::numeric_limits<size_t>::max()); in finalize()
52 alignTo(KV.second.ContentSize + KV.second.ZeroFillSize, in finalize()
54 {KV.second.WorkingMem, static_cast<size_t>(KV.second.ContentSize)}}); in finalize()
154 KV.second.WorkingMem = BL.getGraph().allocateBuffer(Seg.ContentSize).data(); in completeAllocation()
156 alignTo(Seg.ContentSize + Seg.ZeroFillSize, EPC.getPageSize())); in completeAllocation()
159 SegInfo.ContentSize = Seg.ContentSize; in completeAllocation()
H A DMemoryMapper.cpp62 char *InProcessMemoryMapper::prepare(ExecutorAddr Addr, size_t ContentSize) { in prepare() argument
74 auto Size = Segment.ContentSize + Segment.ZeroFillSize; in initialize()
82 std::memset((Base + Segment.ContentSize).toPtr<void *>(), 0, in initialize()
316 char *SharedMemoryMapper::prepare(ExecutorAddr Addr, size_t ContentSize) { in prepare() argument
343 std::memset(Base + Segment.ContentSize, 0, Segment.ZeroFillSize); in initialize()
349 SegReq.Size = Segment.ContentSize + Segment.ZeroFillSize; in initialize()
H A DMapperJITLinkMemoryManager.cpp91 auto TotalSize = Seg.ContentSize + Seg.ZeroFillSize; in allocate()
100 SI.ContentSize = Seg.ContentSize; in allocate()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DJITLinkMemoryManager.cpp58 Seg.ContentSize = alignToBlock(Seg.ContentSize, *B); in BasicLayout()
59 Seg.ContentSize += B->getSize(); in BasicLayout()
63 uint64_t SegEndOffset = Seg.ContentSize; in BasicLayout()
69 Seg.ZeroFillSize = SegEndOffset - Seg.ContentSize; in BasicLayout()
73 << ": content-size=" << formatv("{0:x}", Seg.ContentSize) in BasicLayout()
92 uint64_t SegSize = alignTo(Seg.ContentSize + Seg.ZeroFillSize, PageSize); in getContiguousPageBasedLayoutSizes()
177 if (Seg.ContentSize != 0) { in Create()
181 G->createMutableContentBlock(Sec, G->allocateBuffer(Seg.ContentSize), in Create()
184 NextAddr += Seg.ContentSize; in Create()
310 alignTo(Seg.ContentSize + Seg.ZeroFillSize, MemMgr.PageSize); in applyProtections()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DMemoryMapper.h34 size_t ContentSize; member
53 virtual char *prepare(ExecutorAddr Addr, size_t ContentSize) = 0;
94 char *prepare(ExecutorAddr Addr, size_t ContentSize) override;
144 char *prepare(ExecutorAddr Addr, size_t ContentSize) override;
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/
H A DJITLinkMemoryManager.h212 /// The Alignment, ContentSize and ZeroFillSize of each segment will be
225 : ContentSize(0), ZeroFillSize(0), Addr(0), WorkingMem(nullptr), in Segment()
228 size_t ContentSize; variable
302 Segment(size_t ContentSize, Align ContentAlign) in Segment()
303 : ContentSize(ContentSize), ContentAlign(ContentAlign) {} in Segment()
305 size_t ContentSize = 0; member
H A DJITLink.h1133 Block &createMutableContentBlock(Section &Parent, size_t ContentSize,
1137 auto Content = allocateBuffer(ContentSize);
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DXCOFFEmitter.cpp240 if (Obj.StrTbl.ContentSize && *Obj.StrTbl.ContentSize < RawSize) { in initStringTable()
241 ErrHandler("specified ContentSize (" + Twine(*Obj.StrTbl.ContentSize) + in initStringTable()
248 if (Obj.StrTbl.ContentSize && *Obj.StrTbl.ContentSize <= 3) { in initStringTable()
296 if (Obj.StrTbl.ContentSize && *Obj.StrTbl.ContentSize < StrTblSize) { in initStringTable()
297 ErrHandler("specified ContentSize (" + Twine(*Obj.StrTbl.ContentSize) + in initStringTable()
829 if (Obj.StrTbl.ContentSize) { in writeStringTable()
830 assert(*Obj.StrTbl.ContentSize >= Obj.StrTbl.RawContent->binary_size() && in writeStringTable()
832 W.OS.write_zeros(*Obj.StrTbl.ContentSize - in writeStringTable()
841 if (!Obj.StrTbl.Length && !Obj.StrTbl.ContentSize) { in writeStringTable()
857 : *Obj.StrTbl.ContentSize); in writeStringTable()
[all …]
H A DELFEmitter.cpp728 size_t ContentSize = 0; in writeContent() local
731 ContentSize = Content->binary_size(); in writeContent()
735 return ContentSize; in writeContent()
737 CBA.writeZeros(*Size - ContentSize); in writeContent()
H A DXCOFFYAML.cpp387 IO.mapOptional("ContentSize", Str.ContentSize); in mapping()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFObjcopy.cpp286 size_t ContentSize = It->getContents().size(); in handleArgs() local
287 if (!ContentSize) in handleArgs()
292 if (ContentSize < NewSection.SectionData->getBufferSize()) in handleArgs()
/freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DXCOFFYAML.h206 std::optional<uint32_t> ContentSize; // The total size of the string table. member
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfDebug.cpp3081 unsigned ContentSize = in emitDebugARanges() local
3092 Asm->getUnitLengthFieldByteSize() + ContentSize, Align(TupleSize)); in emitDebugARanges()
3094 ContentSize += Padding; in emitDebugARanges()
3095 ContentSize += (List.size() + 1) * TupleSize; in emitDebugARanges()
3098 Asm->emitDwarfUnitLength(ContentSize, "Length of ARange Set"); in emitDebugARanges()