| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
| D | Memory.h | 29 class MemoryBlock { 31 MemoryBlock() : Address(nullptr), Size(0) { } in MemoryBlock() function 32 MemoryBlock(void *addr, size_t size) : Address(addr), Size(size) { } in MemoryBlock() function 78 static MemoryBlock allocateMappedMemory(size_t NumBytes, 79 const MemoryBlock *const NearBlock, 92 static std::error_code releaseMappedMemory(MemoryBlock &Block); 109 static std::error_code protectMappedMemory(const MemoryBlock &Block, 122 static MemoryBlock AllocateRWX(size_t NumBytes, 123 const MemoryBlock *NearBlock, 133 static bool ReleaseRWX(MemoryBlock &block, std::string *ErrMsg = nullptr); [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
| D | Memory.h | 32 class MemoryBlock { 34 MemoryBlock() : Address(nullptr), AllocatedSize(0) {} in MemoryBlock() function 35 MemoryBlock(void *addr, size_t allocatedSize) in MemoryBlock() function 98 static MemoryBlock allocateMappedMemory(size_t NumBytes, 99 const MemoryBlock *const NearBlock, 112 static std::error_code releaseMappedMemory(MemoryBlock &Block); 129 static std::error_code protectMappedMemory(const MemoryBlock &Block, 142 explicit OwningMemoryBlock(MemoryBlock M) : M(M) {} in OwningMemoryBlock() 145 Other.M = MemoryBlock(); in OwningMemoryBlock() 149 Other.M = MemoryBlock(); [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/ |
| D | SectionMemoryManager.cpp | 75 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() 124 MemGroup.PendingMem.push_back(sys::MemoryBlock((void *)Addr, Size)); in allocateSection() 131 FreeMB.Free = sys::MemoryBlock((void *)(Addr + Size), FreeSize); in allocateSection() 173 static sys::MemoryBlock trimBlockToPageSize(sys::MemoryBlock M) { in trimBlockToPageSize() 183 sys::MemoryBlock Trimmed((void *)((uintptr_t)M.base() + StartOverlap), in trimBlockToPageSize() 197 for (sys::MemoryBlock &MB : MemGroup.PendingMem) in applyMemoryGroupPermissions() [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/ |
| D | SectionMemoryManager.h | 73 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;
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/Unix/ |
| D | Memory.inc | 81 MemoryBlock 83 const MemoryBlock *const NearBlock, 88 return MemoryBlock(); 118 return MemoryBlock(); 121 MemoryBlock Result; 132 Memory::releaseMappedMemory(MemoryBlock &M) { 146 Memory::protectMappedMemory(const MemoryBlock &M, unsigned Flags) { 174 MemoryBlock 175 Memory::AllocateRWX(size_t NumBytes, const MemoryBlock* NearBlock, 177 if (NumBytes == 0) return MemoryBlock(); [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Windows/ |
| 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,
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/ |
| D | Memory.inc | 80 MemoryBlock 82 const MemoryBlock *const NearBlock, 87 return MemoryBlock(); 99 return MemoryBlock(); 137 return MemoryBlock(); 144 MemoryBlock Result; 153 return MemoryBlock(); 160 Memory::releaseMappedMemory(MemoryBlock &M) { 174 Memory::protectMappedMemory(const MemoryBlock &M, unsigned Flags) {
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Orc/ |
| D | OrcABISupport.cpp | 164 sys::MemoryBlock StubsBlock(StubsMem.base(), NumPages * PageSize); in emitIndirectStubsBlock() 165 sys::MemoryBlock PtrsBlock(static_cast<char *>(StubsMem.base()) + in emitIndirectStubsBlock() 246 sys::MemoryBlock StubsBlock(StubsMem.base(), NumPages * PageSize); in emitIndirectStubsBlock() 247 sys::MemoryBlock PtrsBlock(static_cast<char *>(StubsMem.base()) + in emitIndirectStubsBlock() 514 sys::MemoryBlock StubsBlock(StubsMem.base(), NumPages * PageSize); in emitIndirectStubsBlock() 515 sys::MemoryBlock PtrsBlock(static_cast<char *>(StubsMem.base()) + in emitIndirectStubsBlock() 700 sys::MemoryBlock StubsBlock(StubsMem.base(), NumPages * PageSize); in emitIndirectStubsBlock() 701 sys::MemoryBlock PtrsBlock(static_cast<char *>(StubsMem.base()) + in emitIndirectStubsBlock() 946 sys::MemoryBlock StubsBlock(StubsMem.base(), NumPages * PageSize); in emitIndirectStubsBlock() 947 sys::MemoryBlock PtrsBlock(static_cast<char *>(StubsMem.base()) + in emitIndirectStubsBlock()
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/JITLink/ |
| D | JITLinkMemoryManager.cpp | 22 using AllocationMap = DenseMap<unsigned, sys::MemoryBlock>; in allocate() 53 sys::MemoryBlock Slab(SlabStart, SlabSize); in allocate() 116 sys::MemoryBlock SegMem(SlabRemaining.base(), SegmentSize); in allocate() 117 SlabRemaining = sys::MemoryBlock((char *)SlabRemaining.base() + SegmentSize, in allocate()
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
| D | FileOutputBuffer.cpp | 78 InMemoryBuffer(StringRef Path, MemoryBlock Buf, std::size_t BufSize, in InMemoryBuffer() 120 MemoryBlock MB = Memory::allocateMappedMemory( in createInMemoryBuffer()
|
| D | Memory.cpp | 44 raw_ostream &operator<<(raw_ostream &OS, const MemoryBlock &MB) { in operator <<()
|
| /third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
| D | LLVMJIT.cpp | 262 llvm::sys::MemoryBlock allocateMappedMemory( in allocateMappedMemory() 264 size_t numBytes, const llvm::sys::MemoryBlock *const nearBlock, in allocateMappedMemory() 278 return llvm::sys::MemoryBlock(); in allocateMappedMemory() 279 return llvm::sys::MemoryBlock(addr, numBytes); in allocateMappedMemory() 282 std::error_code protectMappedMemory(const llvm::sys::MemoryBlock &block, in protectMappedMemory() 299 std::error_code releaseMappedMemory(llvm::sys::MemoryBlock &block) in releaseMappedMemory()
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/Orc/ |
| D | OrcRemoteTargetServer.h | 123 sys::MemoryBlock MB = sys::Memory::allocateMappedMemory( in allocate() 143 std::map<void *, sys::MemoryBlock> Allocs;
|
| /third_party/skia/third_party/externals/d3d12allocator/src/ |
| D | D3D12MemAlloc.cpp | 2241 class MemoryBlock class 2244 MemoryBlock( 2250 virtual ~MemoryBlock(); 2271 D3D12MA_CLASS_NO_COPY(MemoryBlock) 2282 class NormalBlock : public MemoryBlock 3255 MemoryBlock(allocator, heapType, heapFlags, size, id), in NormalBlock() 3275 HRESULT hr = MemoryBlock::Init(); in Init() 3299 MemoryBlock::MemoryBlock( in MemoryBlock() function in D3D12MA::MemoryBlock 3313 MemoryBlock::~MemoryBlock() in ~MemoryBlock() 3322 HRESULT MemoryBlock::Init() in Init()
|