Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DMemory.h31 class MemoryBlock {
33 MemoryBlock() : Address(nullptr), AllocatedSize(0) {} in MemoryBlock() function
34 MemoryBlock(void *addr, size_t allocatedSize) in MemoryBlock() function
97 static MemoryBlock allocateMappedMemory(size_t NumBytes,
98 const MemoryBlock *const NearBlock,
111 static std::error_code releaseMappedMemory(MemoryBlock &Block);
127 static std::error_code protectMappedMemory(const MemoryBlock &Block,
140 explicit OwningMemoryBlock(MemoryBlock M) : M(M) {} in OwningMemoryBlock()
143 Other.M = MemoryBlock(); in OwningMemoryBlock()
147 Other.M = MemoryBlock();
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DSectionMemoryManager.cpp75 MemGroup.PendingMem.push_back(sys::MemoryBlock((void *)Addr, Size)); in allocateSection()
81 sys::MemoryBlock &PendingMB = in allocateSection()
83 PendingMB = sys::MemoryBlock(PendingMB.base(), in allocateSection()
89 sys::MemoryBlock((void *)(Addr + Size), EndOfBlock - Addr - Size); in allocateSection()
104 sys::MemoryBlock MB = MMapper->allocateMappedMemory( in allocateSection()
133 MemGroup.PendingMem.push_back(sys::MemoryBlock((void *)Addr, Size)); in allocateSection()
140 FreeMB.Free = sys::MemoryBlock((void *)(Addr + Size), FreeSize); in allocateSection()
182 static sys::MemoryBlock trimBlockToPageSize(sys::MemoryBlock M) { in trimBlockToPageSize()
192 sys::MemoryBlock Trimmed((void *)((uintptr_t)M.base() + StartOverlap), in trimBlockToPageSize()
206 for (sys::MemoryBlock &MB : MemGroup.PendingMem) in applyMemoryGroupPermissions()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/
H A DSectionMemoryManager.h72 virtual sys::MemoryBlock
74 const sys::MemoryBlock *const NearBlock,
89 virtual std::error_code protectMappedMemory(const sys::MemoryBlock &Block,
99 virtual std::error_code releaseMappedMemory(sys::MemoryBlock &M) = 0;
155 sys::MemoryBlock Free;
168 SmallVector<sys::MemoryBlock, 16> PendingMem;
172 SmallVector<sys::MemoryBlock, 16> AllocatedMem;
174 sys::MemoryBlock Near;
/freebsd/contrib/llvm-project/llvm/lib/Support/Windows/
H A DMemory.inc99 MemoryBlock Memory::allocateMappedMemory(size_t NumBytes,
100 const MemoryBlock *const NearBlock,
104 return MemoryBlock();
141 return MemoryBlock();
144 MemoryBlock Result;
155 std::error_code Memory::releaseMappedMemory(MemoryBlock &M) {
168 std::error_code Memory::protectMappedMemory(const MemoryBlock &M,
/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/
H A DMemory.inc73 MemoryBlock Memory::allocateMappedMemory(size_t NumBytes,
74 const MemoryBlock *const NearBlock,
78 return MemoryBlock();
90 return MemoryBlock();
129 return MemoryBlock();
136 MemoryBlock Result;
145 return MemoryBlock();
151 std::error_code Memory::releaseMappedMemory(MemoryBlock &M) {
164 std::error_code Memory::protectMappedMemory(const MemoryBlock &M,
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DJITLinkMemoryManager.cpp241 sys::MemoryBlock StandardSegments, in IPInFlightAlloc()
242 sys::MemoryBlock FinalizationSegments) in IPInFlightAlloc()
311 sys::MemoryBlock MB(Seg.WorkingMem, SegSize); in applyProtections()
323 sys::MemoryBlock StandardSegments;
324 sys::MemoryBlock FinalizationSegments;
372 sys::MemoryBlock Slab; in allocate()
373 sys::MemoryBlock StandardSegsMem; in allocate()
374 sys::MemoryBlock FinalizeSegsMem; in allocate()
444 std::vector<sys::MemoryBlock> StandardSegmentsList; in deallocate()
484 sys::MemoryBlock StandardSegments, in createFinalizedAlloc()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DFileOutputBuffer.cpp78 InMemoryBuffer(StringRef Path, MemoryBlock Buf, std::size_t BufSize, in InMemoryBuffer()
120 MemoryBlock MB = Memory::allocateMappedMemory( in createInMemoryBuffer()
H A DMemory.cpp43 raw_ostream &operator<<(raw_ostream &OS, const MemoryBlock &MB) { in operator <<()
/freebsd/contrib/llvm-project/llvm/tools/llvm-rtdyld/
H A Dllvm-rtdyld.cpp192 SectionInfo(StringRef Name, sys::MemoryBlock MB, unsigned SectionID) in SectionInfo()
195 sys::MemoryBlock MB;
251 sys::MemoryBlock MB = in preallocateSlab()
272 sys::MemoryBlock MB((void *)OldSlabOffset, Size); in allocateFromSlab()
283 sys::MemoryBlock PreallocSlab;
309 sys::MemoryBlock MB = in allocateCodeSection()
338 sys::MemoryBlock MB = in allocateDataSection()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/
H A DJITLinkMemoryManager.h384 sys::MemoryBlock StandardSegments;
389 sys::MemoryBlock StandardSegments,
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DSimpleExecutorMemoryManager.cpp102 sys::MemoryBlock MB(AllocToDestroy.first, AllocToDestroy.second.Size); in finalize()
220 sys::MemoryBlock MB(Base, A.Size); in deallocateImpl()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DMemoryMapper.cpp164 auto MB = sys::MemoryBlock(Base.toPtr<void *>(), Size); in release()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DIndirectionUtils.h334 sys::MemoryBlock StubsBlock(StubsAndPtrsMem.base(), ISAS.StubBytes); in create()