reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
128 Addr = MB.base(); 129 assert(Allocs.find(MB.base()) == Allocs.end() && "Duplicate alloc"); 130 Allocs[MB.base()] = std::move(MB);include/llvm/Support/Memory.h
144 void *base() const { return M.base(); }
lib/ExecutionEngine/JITLink/JITLinkMemoryManager.cpp30 return {static_cast<char *>(SegBlocks[Seg].base()), 35 return reinterpret_cast<JITTargetAddress>(SegBlocks[Seg].base()); 43 void *SlabStart = SegBlocks.begin()->second.base(); 46 SlabStart = std::min(SlabStart, KV.second.base()); 47 SlabEnd = std::max(SlabEnd, (char *)(KV.second.base()) + 67 sys::Memory::InvalidateInstructionCache(Block.base(), 116 sys::MemoryBlock SegMem(SlabRemaining.base(), SegmentSize); 117 SlabRemaining = sys::MemoryBlock((char *)SlabRemaining.base() + SegmentSize, 121 memset(static_cast<char *>(SegMem.base()) + Seg.getContentSize(), 0,lib/ExecutionEngine/Orc/OrcABISupport.cpp
170 uint64_t *Stub = reinterpret_cast<uint64_t *>(StubsBlock.base()); 182 void **Ptr = reinterpret_cast<void **>(PtrsBlock.base()); 252 uint64_t *Stub = reinterpret_cast<uint64_t *>(StubsBlock.base()); 263 void **Ptr = reinterpret_cast<void **>(PtrsBlock.base()); 520 uint64_t *Stub = reinterpret_cast<uint64_t *>(StubsBlock.base()); 521 uint64_t PtrAddr = reinterpret_cast<uint64_t>(PtrsBlock.base()); 530 void **Ptr = reinterpret_cast<void **>(PtrsBlock.base()); 706 uint32_t *Stub = reinterpret_cast<uint32_t *>(StubsBlock.base()); 723 void **Ptr = reinterpret_cast<void **>(PtrsBlock.base()); 952 uint32_t *Stub = reinterpret_cast<uint32_t *>(StubsBlock.base()); 953 uint64_t PtrAddr = reinterpret_cast<uint64_t>(PtrsBlock.base()); 974 void **Ptr = reinterpret_cast<void **>(PtrsBlock.base());lib/ExecutionEngine/SectionMemoryManager.cpp
68 Addr = (uintptr_t)FreeMB.Free.base(); 83 PendingMB = sys::MemoryBlock(PendingMB.base(), 84 Addr + Size - (uintptr_t)PendingMB.base()); 117 Addr = (uintptr_t)MB.base(); 178 (PageSize - ((uintptr_t)M.base() % PageSize)) % PageSize; 184 sys::MemoryBlock Trimmed((void *)((uintptr_t)M.base() + StartOverlap), 187 assert(((uintptr_t)Trimmed.base() % PageSize) == 0); 189 assert(M.base() <= Trimmed.base() && 189 assert(M.base() <= Trimmed.base() && 224 sys::Memory::InvalidateInstructionCache(Block.base(),lib/Support/Memory.cpp
45 return OS << "[ " << MB.base() << " .. " 46 << (void *)((char *)MB.base() + MB.allocatedSize()) << " ] ("lib/Support/Unix/Memory.inc
118 uintptr_t Start = NearBlock ? reinterpret_cast<uintptr_t>(NearBlock->base()) +
tools/llvm-jitlink/llvm-jitlink.cpp252 return {static_cast<char *>(SegBlocks[Seg].base()), 257 return reinterpret_cast<JITTargetAddress>(SegBlocks[Seg].base()); 277 sys::Memory::InvalidateInstructionCache(Block.base(), 308 void *SlabBase = SlabRemaining.base(); 321 memset(static_cast<char *>(SegMem.base()) + ZeroFillStart, 0,tools/llvm-rtdyld/llvm-rtdyld.cpp
252 if (!MB.base()) 306 if (!MB.base()) 309 return (uint8_t*)MB.base(); 334 if (!MB.base()) 337 return (uint8_t*)MB.base(); 667 reinterpret_cast<uintptr_t>((*Tmp)->MB.base()))) { 702 Dyld.mapSectionAddress(CurEntry->MB.base(), NextSectionAddr);unittests/Support/MemoryTest.cpp
75 if (M1.base() == M2.base()) 75 if (M1.base() == M2.base()) 78 if (M1.base() > M2.base()) 78 if (M1.base() > M2.base()) 79 return (unsigned char *)M2.base() + M2.allocatedSize() > M1.base(); 79 return (unsigned char *)M2.base() + M2.allocatedSize() > M1.base(); 81 return (unsigned char *)M1.base() + M1.allocatedSize() > M2.base(); 81 return (unsigned char *)M1.base() + M1.allocatedSize() > M2.base(); 102 EXPECT_NE((void*)nullptr, M1.base()); 118 EXPECT_NE((void *)nullptr, M1.base()); 134 EXPECT_NE((void*)nullptr, M1.base()); 136 EXPECT_NE((void*)nullptr, M2.base()); 138 EXPECT_NE((void*)nullptr, M3.base()); 149 EXPECT_NE((void*)nullptr, M4.base()); 166 EXPECT_NE((void*)nullptr, M1.base()); 169 int *a = (int*)M1.base(); 198 EXPECT_NE((void*)nullptr, M1.base()); 200 EXPECT_NE((void*)nullptr, M2.base()); 202 EXPECT_NE((void*)nullptr, M3.base()); 205 int *x = (int*)M1.base(); 208 int *y = (int*)M2.base(); 213 int *z = (int*)M3.base(); 226 EXPECT_NE((void*)nullptr, M4.base()); 228 x = (int*)M4.base(); 257 EXPECT_NE((void*)nullptr, M1.base()); 259 EXPECT_NE((void*)nullptr, M2.base()); 261 EXPECT_NE((void*)nullptr, M3.base()); 272 int *x = (int*)M1.base(); 274 int *y = (int*)M2.base(); 278 int *z = (int*)M3.base(); 291 EXPECT_NE((void*)nullptr, M4.base()); 295 x = (int*)M4.base(); 312 EXPECT_NE((void*)nullptr, M1.base()); 314 EXPECT_NE((void*)nullptr, M2.base()); 316 EXPECT_NE((void*)nullptr, M3.base()); 339 EXPECT_NE((void*)nullptr, M1.base()); 341 EXPECT_NE((void*)nullptr, M2.base()); 343 EXPECT_NE((void*)nullptr, M3.base()); 362 EXPECT_NE((void*)nullptr, M1.base()); 364 EXPECT_NE((void*)nullptr, M2.base()); 366 EXPECT_NE((void*)nullptr, M3.base()); 389 EXPECT_NE((void*)nullptr, M1.base()); 391 EXPECT_NE((void*)nullptr, M2.base()); 393 EXPECT_NE((void*)nullptr, M3.base()); 412 EXPECT_NE((void*)nullptr, M1.base());