Home
last modified time | relevance | path

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

/freebsd-13.1/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,
111 static std::error_code releaseMappedMemory(MemoryBlock &Block);
140 explicit OwningMemoryBlock(MemoryBlock M) : M(M) {} in OwningMemoryBlock()
143 Other.M = MemoryBlock(); in OwningMemoryBlock()
147 Other.M = MemoryBlock();
157 MemoryBlock getMemoryBlock() const { return M; } in getMemoryBlock()
159 MemoryBlock M;
[all …]
/freebsd-13.1/contrib/llvm-project/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 …]
/freebsd-13.1/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-13.1/contrib/llvm-project/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,
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DJITLinkMemoryManager.cpp23 using AllocationMap = DenseMap<unsigned, sys::MemoryBlock>; in allocate()
54 sys::MemoryBlock Slab(SlabStart, SlabSize); in allocate()
119 sys::MemoryBlock SegMem(SlabRemaining.base(), SegmentSize); in allocate()
120 SlabRemaining = sys::MemoryBlock((char *)SlabRemaining.base() + SegmentSize, in allocate()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/Unix/
H A DMemory.inc81 MemoryBlock
83 const MemoryBlock *const NearBlock,
88 return MemoryBlock();
100 return MemoryBlock();
138 return MemoryBlock();
145 MemoryBlock Result;
154 return MemoryBlock();
161 Memory::releaseMappedMemory(MemoryBlock &M) {
175 Memory::protectMappedMemory(const MemoryBlock &M, unsigned Flags) {
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DEPCDebugObjectRegistrar.h35 virtual Error registerDebugObject(sys::MemoryBlock) = 0;
46 Error registerDebugObject(sys::MemoryBlock TargetMem) override;
H A DOrcRemoteTargetClient.h334 using AllocationMap = DenseMap<unsigned, sys::MemoryBlock>;
387 sys::MemoryBlock HostAllocation;
428 sys::MemoryBlock(SlabAddr, AlignedSegmentSize); in allocateHostBlocks()
452 sys::MemoryBlock(jitTargetAddressToPointer<void *>(TargetAllocAddr), in allocateTargetBlocks()
471 const sys::MemoryBlock &TargetBlock = KV.second; in copyAndProtect()
472 const sys::MemoryBlock &HostBlock = HostSegBlocks.lookup(KV.first); in copyAndProtect()
H A DOrcRemoteTargetServer.h126 sys::MemoryBlock MB = sys::Memory::allocateMappedMemory( in allocate()
146 std::map<void *, sys::MemoryBlock> Allocs;
H A DIndirectionUtils.h327 sys::MemoryBlock StubsBlock(StubsAndPtrsMem.base(), ISAS.StubBytes); in create()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DFileOutputBuffer.cpp77 InMemoryBuffer(StringRef Path, MemoryBlock Buf, std::size_t BufSize, in InMemoryBuffer()
119 MemoryBlock MB = Memory::allocateMappedMemory( in createInMemoryBuffer()
H A DMemory.cpp44 raw_ostream &operator<<(raw_ostream &OS, const MemoryBlock &MB) { in operator <<()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-rtdyld/
H A Dllvm-rtdyld.cpp193 SectionInfo(StringRef Name, sys::MemoryBlock MB, unsigned SectionID) in SectionInfo()
196 sys::MemoryBlock MB;
249 sys::MemoryBlock MB = in preallocateSlab()
269 sys::MemoryBlock MB((void *)OldSlabOffset, Size); in allocateFromSlab()
280 sys::MemoryBlock PreallocSlab;
303 sys::MemoryBlock MB = in allocateCodeSection()
331 sys::MemoryBlock MB = in allocateDataSection()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DEPCDebugObjectRegistrar.cpp45 Error EPCDebugObjectRegistrar::registerDebugObject(sys::MemoryBlock TargetMem) { in registerDebugObject()
H A DDebugObjectManagerPlugin.cpp131 using FinalizeContinuation = std::function<void(Expected<sys::MemoryBlock>)>;
171 OnFinalize(sys::MemoryBlock( in finalizeAsync()
450 [this, &FinalizePromise, &MR](Expected<sys::MemoryBlock> TargetMem) { in notifyEmitted()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/
H A DOrcRPCTPCServer.h556 sys::MemoryBlock MB(jitTargetAddressToPointer<void *>(E.Address), E.Size); in finalizeMemory()
570 sys::MemoryBlock MB(jitTargetAddressToPointer<void *>(E.Address), E.Size); in releaseMemory()