/external/llvm/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 …]
|
/external/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 …]
|
/external/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 …]
|
/external/llvm/unittests/Support/ |
D | MemoryTest.cpp | 45 bool doesOverlap(MemoryBlock M1, MemoryBlock M2) { in doesOverlap() 61 MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags,EC); in TEST_P() 72 MemoryBlock M1 = Memory::allocateMappedMemory(16, nullptr, Flags, EC); in TEST_P() 74 MemoryBlock M2 = Memory::allocateMappedMemory(64, nullptr, Flags, EC); in TEST_P() 76 MemoryBlock M3 = Memory::allocateMappedMemory(32, nullptr, Flags, EC); in TEST_P() 92 MemoryBlock M4 = Memory::allocateMappedMemory(16, nullptr, Flags, EC); in TEST_P() 107 MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags,EC); in TEST_P() 126 MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags, in TEST_P() 129 MemoryBlock M2 = Memory::allocateMappedMemory(8 * sizeof(int), nullptr, Flags, in TEST_P() 132 MemoryBlock M3 = Memory::allocateMappedMemory(4 * sizeof(int), nullptr, Flags, in TEST_P() [all …]
|
/external/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 …]
|
/external/llvm/lib/ExecutionEngine/ |
D | SectionMemoryManager.cpp | 61 MemGroup.PendingMem.push_back(sys::MemoryBlock((void *)Addr, Size)); in allocateSection() 67 sys::MemoryBlock &PendingMB = MemGroup.PendingMem[FreeMB.PendingPrefixIndex]; in allocateSection() 68 PendingMB = sys::MemoryBlock(PendingMB.base(), Addr + Size - (uintptr_t)PendingMB.base()); in allocateSection() 72 FreeMB.Free = sys::MemoryBlock((void *)(Addr + Size), EndOfBlock - Addr - Size); in allocateSection() 87 sys::MemoryBlock MB = sys::Memory::allocateMappedMemory(RequiredSize, in allocateSection() 109 MemGroup.PendingMem.push_back(sys::MemoryBlock((void *)Addr, Size)); in allocateSection() 116 FreeMB.Free = sys::MemoryBlock((void*)(Addr + Size), FreeSize); in allocateSection() 160 static sys::MemoryBlock trimBlockToPageSize(sys::MemoryBlock M) { in trimBlockToPageSize() 170 sys::MemoryBlock Trimmed((void *)((uintptr_t)M.base() + StartOverlap), TrimmedSize); in trimBlockToPageSize() 183 for (sys::MemoryBlock &MB : MemGroup.PendingMem) in applyMemoryGroupPermissions() [all …]
|
/external/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;
|
/external/tensorflow/tensorflow/compiler/xla/runtime/ |
D | memory_mapper.cc | 46 llvm::sys::MemoryBlock XlaRuntimeMemoryMapper::allocateMappedMemory( in allocateMappedMemory() 48 const llvm::sys::MemoryBlock* const near_block, unsigned prot_flags, in allocateMappedMemory() 54 const llvm::sys::MemoryBlock& block, unsigned prot_flags) { in protectMappedMemory() 59 llvm::sys::MemoryBlock& block) { in releaseMappedMemory() 125 llvm::sys::MemoryBlock XlaRuntimeMemoryMapper::allocateMappedMemory( 127 const llvm::sys::MemoryBlock* const near_block, unsigned prot_flags, 155 return llvm::sys::MemoryBlock(); 157 return llvm::sys::MemoryBlock(map, len); 161 const llvm::sys::MemoryBlock& block, unsigned prot_flags) { 177 llvm::sys::MemoryBlock& block) {
|
D | memory_mapper.h | 45 llvm::sys::MemoryBlock allocateMappedMemory( 47 const llvm::sys::MemoryBlock* const near_block, unsigned prot_flags, 50 std::error_code protectMappedMemory(const llvm::sys::MemoryBlock& block, 53 std::error_code releaseMappedMemory(llvm::sys::MemoryBlock& block) final;
|
/external/llvm/lib/Support/Unix/ |
D | Memory.inc | 81 MemoryBlock 83 const MemoryBlock *const NearBlock, 88 return MemoryBlock(); 98 return MemoryBlock(); 126 return MemoryBlock(); 129 MemoryBlock Result; 140 Memory::releaseMappedMemory(MemoryBlock &M) { 154 Memory::protectMappedMemory(const MemoryBlock &M, unsigned Flags) { 179 MemoryBlock 180 Memory::AllocateRWX(size_t NumBytes, const MemoryBlock* NearBlock, [all …]
|
/external/llvm/lib/Support/Windows/ |
D | Memory.inc | 70 MemoryBlock Memory::allocateMappedMemory(size_t NumBytes, 71 const MemoryBlock *const NearBlock, 76 return MemoryBlock(); 112 return MemoryBlock(); 115 MemoryBlock Result; 125 std::error_code Memory::releaseMappedMemory(MemoryBlock &M) { 138 std::error_code Memory::protectMappedMemory(const MemoryBlock &M, 164 MemoryBlock Memory::AllocateRWX(size_t NumBytes, 165 const MemoryBlock *NearBlock, 167 MemoryBlock MB; [all …]
|
/external/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 …]
|
/external/llvm/include/llvm/ExecutionEngine/ |
D | SectionMemoryManager.h | 88 sys::MemoryBlock Free; 101 SmallVector<sys::MemoryBlock, 16> PendingMem; 105 SmallVector<sys::MemoryBlock, 16> AllocatedMem; 107 sys::MemoryBlock Near;
|
/external/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,
|
/external/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) {
|
/external/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()
|
/external/llvm/lib/ExecutionEngine/Orc/ |
D | OrcABISupport.cpp | 166 sys::MemoryBlock StubsBlock(StubsMem.base(), NumPages * PageSize); in emitIndirectStubsBlock() 167 sys::MemoryBlock PtrsBlock(static_cast<char *>(StubsMem.base()) + in emitIndirectStubsBlock() 248 sys::MemoryBlock StubsBlock(StubsMem.base(), NumPages * PageSize); in emitIndirectStubsBlock() 249 sys::MemoryBlock PtrsBlock(static_cast<char *>(StubsMem.base()) + in emitIndirectStubsBlock() 516 sys::MemoryBlock StubsBlock(StubsMem.base(), NumPages * PageSize); in emitIndirectStubsBlock() 517 sys::MemoryBlock PtrsBlock(static_cast<char *>(StubsMem.base()) + in emitIndirectStubsBlock()
|
/external/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()
|
/external/llvm/tools/llvm-rtdyld/ |
D | llvm-rtdyld.cpp | 147 SmallVector<sys::MemoryBlock, 16> FunctionMemory; 148 SmallVector<sys::MemoryBlock, 16> DataMemory; 184 sys::MemoryBlock MB = sys::Memory::AllocateRWX(Size, nullptr, &Err); in preallocateSlab() 199 sys::MemoryBlock MB((void *)OldSlabOffset, Size); in allocateFromSlab() 210 sys::MemoryBlock PreallocSlab; 228 sys::MemoryBlock MB = sys::Memory::AllocateRWX(Size, nullptr, &Err); in allocateCodeSection() 248 sys::MemoryBlock MB = sys::Memory::AllocateRWX(Size, nullptr, &Err); in allocateDataSection()
|
/external/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 <<()
|
/external/swiftshader/src/Reactor/ |
D | LLVMJIT.cpp | 296 llvm::sys::MemoryBlock allocateMappedMemory( in allocateMappedMemory() 298 size_t numBytes, const llvm::sys::MemoryBlock *const nearBlock, in allocateMappedMemory() 312 return llvm::sys::MemoryBlock(); in allocateMappedMemory() 313 return llvm::sys::MemoryBlock(addr, numBytes); in allocateMappedMemory() 316 std::error_code protectMappedMemory(const llvm::sys::MemoryBlock &block, in protectMappedMemory() 333 std::error_code releaseMappedMemory(llvm::sys::MemoryBlock &block) in releaseMappedMemory()
|
/external/pdfium/third_party/lcms/src/ |
D | cmscgats.c | 181 char* MemoryBlock; // The stream if holded in memory member 1134 if (it8->MemoryBlock) in cmsIT8Free() 1135 _cmsFree(it8 ->ContextID, it8->MemoryBlock); in cmsIT8Free() 1387 it8->MemoryBlock = NULL; in cmsIT8Alloc() 2466 it8 ->MemoryBlock = (char*) _cmsMalloc(ContextID, len + 1); in cmsIT8LoadFromMem() 2467 if (it8->MemoryBlock == NULL) in cmsIT8LoadFromMem() 2473 strncpy(it8 ->MemoryBlock, (const char*) Ptr, len); in cmsIT8LoadFromMem() 2474 it8 ->MemoryBlock[len] = 0; in cmsIT8LoadFromMem() 2477 it8-> Source = it8 -> MemoryBlock; in cmsIT8LoadFromMem() 2488 _cmsFree(ContextID, it8->MemoryBlock); in cmsIT8LoadFromMem() [all …]
|
/external/AFLplusplus/utils/afl_untracer/ |
D | ghidra_get_patchpoints.java | 59 MemoryBlock mb = memory.getBlock(firstAddr); in run()
|
/external/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;
|