| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | EPCGenericJITLinkMemoryManager.cpp | 30 SegInfo() : WorkingMem(nullptr), ContentSize(0), ZeroFillSize(0) {} in SegInfo() 34 uint64_t ContentSize; member 47 assert(KV.second.ContentSize <= std::numeric_limits<size_t>::max()); in finalize() 51 alignTo(KV.second.ContentSize + KV.second.ZeroFillSize, in finalize() 53 {KV.second.WorkingMem, static_cast<size_t>(KV.second.ContentSize)}}); in finalize() 153 KV.second.WorkingMem = BL.getGraph().allocateBuffer(Seg.ContentSize).data(); in completeAllocation() 155 alignTo(Seg.ContentSize + Seg.ZeroFillSize, EPC.getPageSize())); in completeAllocation() 158 SegInfo.ContentSize = Seg.ContentSize; in completeAllocation()
|
| H A D | MapperJITLinkMemoryManager.cpp | 90 auto TotalSize = Seg.ContentSize + Seg.ZeroFillSize; in allocate() 99 SI.ContentSize = Seg.ContentSize; in allocate()
|
| H A D | MemoryMapper.cpp | 61 char *InProcessMemoryMapper::prepare(ExecutorAddr Addr, size_t ContentSize) { in prepare() argument 73 auto Size = Segment.ContentSize + Segment.ZeroFillSize; in initialize() 81 std::memset((Base + Segment.ContentSize).toPtr<void *>(), 0, in initialize() 327 char *SharedMemoryMapper::prepare(ExecutorAddr Addr, size_t ContentSize) { in prepare() argument 354 std::memset(Base + Segment.ContentSize, 0, Segment.ZeroFillSize); in initialize() 360 SegReq.Size = Segment.ContentSize + Segment.ZeroFillSize; in initialize()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | JITLinkMemoryManager.cpp | 58 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() 180 if (Seg.ContentSize != 0) { in Create() 184 G->createMutableContentBlock(Sec, G->allocateBuffer(Seg.ContentSize), in Create() 187 NextAddr += Seg.ContentSize; in Create() 324 alignTo(Seg.ContentSize + Seg.ZeroFillSize, MemMgr.PageSize); in applyProtections() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | MemoryMapper.h | 35 size_t ContentSize; member 54 virtual char *prepare(ExecutorAddr Addr, size_t ContentSize) = 0; 95 char *prepare(ExecutorAddr Addr, size_t ContentSize) override; 145 char *prepare(ExecutorAddr Addr, size_t ContentSize) override;
|
| /freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/ |
| H A D | XCOFFEmitter.cpp | 241 if (Obj.StrTbl.ContentSize && *Obj.StrTbl.ContentSize < RawSize) { in initStringTable() 242 ErrHandler("specified ContentSize (" + Twine(*Obj.StrTbl.ContentSize) + in initStringTable() 249 if (Obj.StrTbl.ContentSize && *Obj.StrTbl.ContentSize <= 3) { in initStringTable() 297 if (Obj.StrTbl.ContentSize && *Obj.StrTbl.ContentSize < StrTblSize) { in initStringTable() 298 ErrHandler("specified ContentSize (" + Twine(*Obj.StrTbl.ContentSize) + in initStringTable() 830 if (Obj.StrTbl.ContentSize) { in writeStringTable() 831 assert(*Obj.StrTbl.ContentSize >= Obj.StrTbl.RawContent->binary_size() && in writeStringTable() 833 W.OS.write_zeros(*Obj.StrTbl.ContentSize - in writeStringTable() 842 if (!Obj.StrTbl.Length && !Obj.StrTbl.ContentSize) { in writeStringTable() 858 : *Obj.StrTbl.ContentSize); in writeStringTable() [all …]
|
| H A D | ELFEmitter.cpp | 721 size_t ContentSize = 0; in writeContent() local 724 ContentSize = Content->binary_size(); in writeContent() 728 return ContentSize; in writeContent() 730 CBA.writeZeros(*Size - ContentSize); in writeContent()
|
| H A D | XCOFFYAML.cpp | 387 IO.mapOptional("ContentSize", Str.ContentSize); in mapping()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
| H A D | MCSection.h | 301 uint32_t ContentSize = 0; variable 363 void clearContents() { ContentSize = 0; } in clearContents() 368 if (LLVM_UNLIKELY(ContentStart + ContentSize != S.size())) { in getContentsForAppending() 372 S.reserve(S.size() + ContentSize); in getContentsForAppending() 373 S.append(S.begin() + I, S.begin() + I + ContentSize); in getContentsForAppending() 378 ContentSize = getParent()->ContentStorage.size() - ContentStart; in doneAppending() 391 .slice(ContentStart, ContentSize); in getContents() 395 .slice(ContentStart, ContentSize); in getContents() 413 size_t getSize() const { return ContentSize; } in getSize()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/ |
| H A D | JITLinkMemoryManager.h | 230 size_t ContentSize = 0; variable 304 Segment(size_t ContentSize, Align ContentAlign) in Segment() 305 : ContentSize(ContentSize), ContentAlign(ContentAlign) {} in Segment() 307 size_t ContentSize = 0; member
|
| H A D | JITLink.h | 1165 Block &createMutableContentBlock(Section &Parent, size_t ContentSize, 1169 auto Content = allocateBuffer(ContentSize);
|
| /freebsd/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCSection.cpp | 87 if (Contents.size() > ContentSize) { in setContents() 91 ContentSize = Contents.size(); in setContents()
|
| /freebsd/contrib/llvm-project/llvm/lib/ObjCopy/COFF/ |
| H A D | COFFObjcopy.cpp | 294 size_t ContentSize = It->getContents().size(); in handleArgs() local 295 if (!ContentSize) in handleArgs() 300 if (ContentSize < NewSection.SectionData->getBufferSize()) in handleArgs()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/ |
| H A D | XCOFFYAML.h | 206 std::optional<uint32_t> ContentSize; // The total size of the string table. member
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DwarfDebug.cpp | 3530 unsigned ContentSize = in emitDebugARanges() local 3541 Asm->getUnitLengthFieldByteSize() + ContentSize, Align(TupleSize)); in emitDebugARanges() 3543 ContentSize += Padding; in emitDebugARanges() 3544 ContentSize += (List.size() + 1) * TupleSize; in emitDebugARanges() 3547 Asm->emitDwarfUnitLength(ContentSize, "Length of ARange Set"); in emitDebugARanges()
|