| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Memory.h | 31 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 D | SectionMemoryManager.cpp | 81 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 D | SectionMemoryManager.h | 72 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 D | Memory.inc | 100 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 D | JITLinkMemoryManager.cpp | 23 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 D | Memory.inc | 81 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 D | EPCDebugObjectRegistrar.h | 35 virtual Error registerDebugObject(sys::MemoryBlock) = 0; 46 Error registerDebugObject(sys::MemoryBlock TargetMem) override;
|
| H A D | OrcRemoteTargetClient.h | 334 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 D | OrcRemoteTargetServer.h | 126 sys::MemoryBlock MB = sys::Memory::allocateMappedMemory( in allocate() 146 std::map<void *, sys::MemoryBlock> Allocs;
|
| H A D | IndirectionUtils.h | 327 sys::MemoryBlock StubsBlock(StubsAndPtrsMem.base(), ISAS.StubBytes); in create()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Support/ |
| H A D | FileOutputBuffer.cpp | 77 InMemoryBuffer(StringRef Path, MemoryBlock Buf, std::size_t BufSize, in InMemoryBuffer() 119 MemoryBlock MB = Memory::allocateMappedMemory( in createInMemoryBuffer()
|
| H A D | Memory.cpp | 44 raw_ostream &operator<<(raw_ostream &OS, const MemoryBlock &MB) { in operator <<()
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-rtdyld/ |
| H A D | llvm-rtdyld.cpp | 193 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 D | EPCDebugObjectRegistrar.cpp | 45 Error EPCDebugObjectRegistrar::registerDebugObject(sys::MemoryBlock TargetMem) { in registerDebugObject()
|
| H A D | DebugObjectManagerPlugin.cpp | 131 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 D | OrcRPCTPCServer.h | 556 sys::MemoryBlock MB(jitTargetAddressToPointer<void *>(E.Address), E.Size); in finalizeMemory() 570 sys::MemoryBlock MB(jitTargetAddressToPointer<void *>(E.Address), E.Size); in releaseMemory()
|