Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/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 …]
/netbsd-src/external/apache2/llvm/dist/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 …]
/netbsd-src/external/apache2/llvm/dist/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;
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ExecutionEngine/Orc/
H A DTPCDebugObjectRegistrar.h31 virtual Error registerDebugObject(sys::MemoryBlock) = 0;
40 std::vector<uint8_t> (*)(sys::MemoryBlock TargetMemBlock);
48 Error registerDebugObject(sys::MemoryBlock TargetMem) override { in registerDebugObject()
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()
/netbsd-src/external/apache2/llvm/dist/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,
/netbsd-src/external/apache2/llvm/dist/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) {
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-rtdyld/
H A Dllvm-rtdyld.cpp192 SectionInfo(StringRef Name, sys::MemoryBlock MB, unsigned SectionID) in SectionInfo()
195 sys::MemoryBlock MB;
248 sys::MemoryBlock MB = in preallocateSlab()
268 sys::MemoryBlock MB((void *)OldSlabOffset, Size); in allocateFromSlab()
279 sys::MemoryBlock PreallocSlab;
302 sys::MemoryBlock MB = in allocateCodeSection()
330 sys::MemoryBlock MB = in allocateDataSection()
/netbsd-src/external/apache2/llvm/dist/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 <<()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/
H A DTPCDebugObjectRegistrar.cpp20 writeDebugObjectInfo(sys::MemoryBlock TargetMemBlock) { in writeDebugObjectInfo()
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()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-jitlink/
H A Dllvm-jitlink.cpp347 using AllocationMap = DenseMap<unsigned, sys::MemoryBlock>; in allocate()
421 sys::MemoryBlock SegMem(SlabBase, SegmentSize); in allocate()
423 sys::MemoryBlock(reinterpret_cast<char *>(SlabBase) + SegmentSize, in allocate()
472 sys::MemoryBlock SlabRemaining;
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/
H A DOrcRPCTPCServer.h516 sys::MemoryBlock MB(jitTargetAddressToPointer<void *>(E.Address), E.Size); in finalizeMemory()
530 sys::MemoryBlock MB(jitTargetAddressToPointer<void *>(E.Address), E.Size); in releaseMemory()