Home
last modified time | relevance | path

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

/llvm-project-15.0.7/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,
140 explicit OwningMemoryBlock(MemoryBlock M) : M(M) {} in OwningMemoryBlock()
143 Other.M = MemoryBlock(); in OwningMemoryBlock()
147 Other.M = MemoryBlock();
158 MemoryBlock getMemoryBlock() const { return M; } in getMemoryBlock()
163 M = MemoryBlock(); in release()
168 MemoryBlock M;
[all …]
/llvm-project-15.0.7/llvm/unittests/Support/
H A DMemoryTest.cpp76 bool doesOverlap(MemoryBlock M1, MemoryBlock M2) { in doesOverlap()
113 MemoryBlock M1 = Memory::allocateMappedMemory( in TEST_P()
129 MemoryBlock M1 = Memory::allocateMappedMemory(16, nullptr, Flags, EC); in TEST_P()
131 MemoryBlock M2 = Memory::allocateMappedMemory(64, nullptr, Flags, EC); in TEST_P()
133 MemoryBlock M3 = Memory::allocateMappedMemory(32, nullptr, Flags, EC); in TEST_P()
309 MemoryBlock M2 = Memory::allocateMappedMemory(64, &M1, Flags, EC); in TEST_P()
311 MemoryBlock M3 = Memory::allocateMappedMemory(32, &M2, Flags, EC); in TEST_P()
333 MemoryBlock Near((void*)(3*PageSize), 16); in TEST_P()
356 MemoryBlock Near(nullptr, 0); in TEST_P()
383 MemoryBlock Near((void*)(4*PageSize), 0); in TEST_P()
[all …]
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/
H A DSectionMemoryManager.cpp81 sys::MemoryBlock &PendingMB = in allocateSection()
83 PendingMB = sys::MemoryBlock(PendingMB.base(), 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()
206 for (sys::MemoryBlock &MB : MemGroup.PendingMem) in applyMemoryGroupPermissions()
229 for (sys::MemoryBlock &Block : CodeMem.PendingMem) in invalidateInstructionCache()
236 for (sys::MemoryBlock &Block : Group->AllocatedMem) in ~SectionMemoryManager()
250 sys::MemoryBlock
[all …]
/llvm-project-15.0.7/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;
/llvm-project-15.0.7/llvm/lib/Support/Windows/
H A DMemory.inc100 MemoryBlock Memory::allocateMappedMemory(size_t NumBytes,
101 const MemoryBlock *const NearBlock,
106 return MemoryBlock();
143 return MemoryBlock();
146 MemoryBlock Result;
157 std::error_code Memory::releaseMappedMemory(MemoryBlock &M) {
170 std::error_code Memory::protectMappedMemory(const MemoryBlock &M,
/llvm-project-15.0.7/llvm/lib/Support/Unix/
H A DMemory.inc74 MemoryBlock
76 const MemoryBlock *const NearBlock,
81 return MemoryBlock();
93 return MemoryBlock();
131 return MemoryBlock();
138 MemoryBlock Result;
147 return MemoryBlock();
154 Memory::releaseMappedMemory(MemoryBlock &M) {
168 Memory::protectMappedMemory(const MemoryBlock &M, unsigned Flags) {
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/
H A DJITLinkMemoryManager.cpp235 sys::MemoryBlock StandardSegments, in IPInFlightAlloc()
236 sys::MemoryBlock FinalizationSegments) in IPInFlightAlloc()
286 sys::MemoryBlock MB(Seg.WorkingMem, SegSize); in applyProtections()
298 sys::MemoryBlock StandardSegments;
299 sys::MemoryBlock FinalizationSegments;
347 sys::MemoryBlock Slab; in allocate()
348 sys::MemoryBlock StandardSegsMem; in allocate()
349 sys::MemoryBlock FinalizeSegsMem; in allocate()
419 std::vector<sys::MemoryBlock> StandardSegmentsList; in deallocate()
460 sys::MemoryBlock StandardSegments, in createFinalizedAlloc()
/llvm-project-15.0.7/llvm/lib/Support/
H A DFileOutputBuffer.cpp75 InMemoryBuffer(StringRef Path, MemoryBlock Buf, std::size_t BufSize, in InMemoryBuffer()
117 MemoryBlock MB = Memory::allocateMappedMemory( in createInMemoryBuffer()
H A DMemory.cpp43 raw_ostream &operator<<(raw_ostream &OS, const MemoryBlock &MB) { in operator <<()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/tools/llvm-jitlink/
H A Dllvm-jitlink.cpp452 FinalizedAllocInfo(sys::MemoryBlock Mem, in FinalizedAllocInfo()
455 sys::MemoryBlock Mem;
477 sys::MemoryBlock StandardSegs, sys::MemoryBlock FinalizeSegs) in allocate()
519 sys::MemoryBlock MB(Seg.WorkingMem, SegSize); in allocate()
531 sys::MemoryBlock StandardSegs; in allocate()
532 sys::MemoryBlock FinalizeSegs; in allocate()
559 sys::MemoryBlock(AllocBase + SegsSizes->total(), in allocate()
563 sys::MemoryBlock StandardSegs(AllocBase, SegsSizes->StandardSegs); in allocate()
564 sys::MemoryBlock FinalizeSegs(AllocBase + SegsSizes->StandardSegs, in allocate()
682 Error freeBlock(sys::MemoryBlock MB) { in freeBlock()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/JITLink/
H A DJITLinkMemoryManager.h380 sys::MemoryBlock StandardSegments;
385 sys::MemoryBlock StandardSegments,
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DMemoryMapper.cpp141 auto MB = sys::MemoryBlock(Base.toPtr<void *>(), Size); in release()
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/
H A DIndirectionUtils.h334 sys::MemoryBlock StubsBlock(StubsAndPtrsMem.base(), ISAS.StubBytes); in create()