Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DMemory.h33 class MemoryBlock {
35 MemoryBlock() : Address(nullptr), AllocatedSize(0) {} in MemoryBlock() function
36 MemoryBlock(void *addr, size_t allocatedSize) in MemoryBlock() function
99 LLVM_ABI static MemoryBlock
100 allocateMappedMemory(size_t NumBytes, const MemoryBlock *const NearBlock,
112 LLVM_ABI static std::error_code releaseMappedMemory(MemoryBlock &Block);
129 protectMappedMemory(const MemoryBlock &Block, unsigned Flags);
142 explicit OwningMemoryBlock(MemoryBlock M) : M(std::move(M)) {} in OwningMemoryBlock()
145 Other.M = MemoryBlock(); in OwningMemoryBlock()
149 Other.M = MemoryBlock();
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DSectionMemoryManager.cpp74 MemGroup.PendingMem.push_back(sys::MemoryBlock((void *)Addr, Size)); in allocateSection()
80 sys::MemoryBlock &PendingMB = in allocateSection()
82 PendingMB = sys::MemoryBlock(PendingMB.base(), in allocateSection()
88 sys::MemoryBlock((void *)(Addr + Size), EndOfBlock - Addr - Size); in allocateSection()
103 sys::MemoryBlock MB = MMapper->allocateMappedMemory( in allocateSection()
132 MemGroup.PendingMem.push_back(sys::MemoryBlock((void *)Addr, Size)); in allocateSection()
139 FreeMB.Free = sys::MemoryBlock((void *)(Addr + Size), FreeSize); in allocateSection()
181 static sys::MemoryBlock trimBlockToPageSize(sys::MemoryBlock M) { in trimBlockToPageSize()
191 sys::MemoryBlock Trimmed((void *)((uintptr_t)M.base() + StartOverlap), in trimBlockToPageSize()
205 for (sys::MemoryBlock &MB : MemGroup.PendingMem) in applyMemoryGroupPermissions()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/
H A DSectionMemoryManager.h73 virtual sys::MemoryBlock
75 const sys::MemoryBlock *const NearBlock,
90 virtual std::error_code protectMappedMemory(const sys::MemoryBlock &Block,
100 virtual std::error_code releaseMappedMemory(sys::MemoryBlock &M) = 0;
156 sys::MemoryBlock Free;
169 SmallVector<sys::MemoryBlock, 16> PendingMem;
173 SmallVector<sys::MemoryBlock, 16> AllocatedMem;
175 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.cpp244 sys::MemoryBlock StandardSegments, in IPInFlightAlloc()
245 sys::MemoryBlock FinalizationSegments) in IPInFlightAlloc()
325 sys::MemoryBlock MB(Seg.WorkingMem, SegSize); in applyProtections()
337 sys::MemoryBlock StandardSegments;
338 sys::MemoryBlock FinalizationSegments;
385 sys::MemoryBlock Slab; in allocate()
386 sys::MemoryBlock StandardSegsMem; in allocate()
387 sys::MemoryBlock FinalizeSegsMem; in allocate()
457 std::vector<sys::MemoryBlock> StandardSegmentsList; in deallocate()
497 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/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/include/llvm/ExecutionEngine/JITLink/
H A DJITLinkMemoryManager.h391 sys::MemoryBlock StandardSegments;
396 sys::MemoryBlock StandardSegments,
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DMemoryMapper.cpp173 auto MB = sys::MemoryBlock(Base.toPtr<void *>(), Size); in release()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DIndirectionUtils.h343 sys::MemoryBlock StubsBlock(StubsAndPtrsMem.base(), ISAS.StubBytes); in create()
/freebsd/contrib/llvm-project/llvm/include/llvm/Testing/Demangle/
H A DDemangleTestCases.inc23959 …yBlockEPSs", "llvm::sys::Memory::AllocateRWX(unsigned long, llvm::sys::MemoryBlock const*, std::st…
23961 …RWXERNS0_11MemoryBlockEPSs", "llvm::sys::Memory::ReleaseRWX(llvm::sys::MemoryBlock&, std::string*)…
23962 …leERNS0_11MemoryBlockEPSs", "llvm::sys::Memory::setWritable(llvm::sys::MemoryBlock&, std::string*)…
23963 …ERNS0_11MemoryBlockEPSs", "llvm::sys::Memory::setExecutable(llvm::sys::MemoryBlock&, std::string*)…