Home
last modified time | relevance | path

Searched refs:MemMgr (Results 1 – 25 of 36) sorted by relevance

12

/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITMemoryManagerTest.cpp18 std::unique_ptr<SectionMemoryManager> MemMgr(new SectionMemoryManager()); in TEST() local
20 uint8_t *code1 = MemMgr->allocateCodeSection(256, 0, 1, ""); in TEST()
21 uint8_t *data1 = MemMgr->allocateDataSection(256, 0, 2, "", true); in TEST()
22 uint8_t *code2 = MemMgr->allocateCodeSection(256, 0, 3, ""); in TEST()
23 uint8_t *data2 = MemMgr->allocateDataSection(256, 0, 4, "", false); in TEST()
47 EXPECT_FALSE(MemMgr->finalizeMemory(&Error)); in TEST()
51 std::unique_ptr<SectionMemoryManager> MemMgr(new SectionMemoryManager()); in TEST() local
53 uint8_t *code1 = MemMgr->allocateCodeSection(0x100000, 0, 1, ""); in TEST()
54 uint8_t *data1 = MemMgr->allocateDataSection(0x100000, 0, 2, "", true); in TEST()
55 uint8_t *code2 = MemMgr->allocateCodeSection(0x100000, 0, 3, ""); in TEST()
[all …]
/external/llvm/include/llvm/ExecutionEngine/Orc/
DObjectLinkingLayer.h41 LinkedObjectSet(RuntimeDyld::MemoryManager &MemMgr, in LinkedObjectSet() argument
44 : RTDyld(llvm::make_unique<RuntimeDyld>(MemMgr, Resolver)), in LinkedObjectSet()
103 ConcreteLinkedObjectSet(MemoryManagerPtrT MemMgr, in ConcreteLinkedObjectSet() argument
106 : LinkedObjectSet(*MemMgr, *Resolver, ProcessAllSections), in ConcreteLinkedObjectSet()
107 MemMgr(std::move(MemMgr)), Resolver(std::move(Resolver)) { } in ConcreteLinkedObjectSet()
113 MemMgr->finalizeMemory(); in Finalize()
118 MemoryManagerPtrT MemMgr;
124 createLinkedObjectSet(MemoryManagerPtrT MemMgr, SymbolResolverPtrT Resolver, in createLinkedObjectSet() argument
127 return llvm::make_unique<LOS>(std::move(MemMgr), std::move(Resolver), in createLinkedObjectSet()
175 MemoryManagerPtrT MemMgr, in addObjectSet() argument
[all …]
DLazyEmittingLayer.h100 create(BaseLayerT &B, ModuleSetT Ms, MemoryManagerPtrT MemMgr,
118 MemoryManagerPtrT MemMgr, in EmissionDeferredSetImpl() argument
120 : Ms(std::move(Ms)), MemMgr(std::move(MemMgr)), in EmissionDeferredSetImpl()
152 return BaseLayer.addModuleSet(std::move(Ms), std::move(MemMgr), in emitToBaseLayer()
214 MemoryManagerPtrT MemMgr; variable
235 MemoryManagerPtrT MemMgr, in addModuleSet() argument
239 EmissionDeferredSet::create(BaseLayer, std::move(Ms), std::move(MemMgr), in addModuleSet()
293 BaseLayerT &B, ModuleSetT Ms, MemoryManagerPtrT MemMgr, in create() argument
297 return llvm::make_unique<EDS>(std::move(Ms), std::move(MemMgr), in create()
DIRTransformLayer.h46 MemoryManagerPtrT MemMgr, in addModuleSet() argument
52 return BaseLayer.addModuleSet(std::move(Ms), std::move(MemMgr), in addModuleSet()
DGlobalMappingLayer.h45 MemoryManagerPtrT MemMgr, in addModuleSet() argument
47 return BaseLayer.addModuleSet(std::move(Ms), std::move(MemMgr), in addModuleSet()
DObjectTransformLayer.h45 ObjSetHandleT addObjectSet(ObjSetT &Objects, MemoryManagerPtrT MemMgr, in addObjectSet() argument
51 return BaseLayer.addObjectSet(Objects, std::move(MemMgr), in addObjectSet()
DIRCompileLayer.h63 MemoryManagerPtrT MemMgr, in addModuleSet() argument
86 BaseLayer.addObjectSet(Objects, std::move(MemMgr), std::move(Resolver)); in addModuleSet()
DCompileOnDemandLayer.h157 MemoryManagerPtrT MemMgr, in addModuleSet() argument
160 assert(MemMgr == nullptr && in addModuleSet()
448 auto MemMgr = llvm::make_unique<SectionMemoryManager>(); in emitPartition() local
464 return BaseLayer.addModuleSet(std::move(PartMSet), std::move(MemMgr), in emitPartition()
/external/llvm/tools/llvm-rtdyld/
Dllvm-rtdyld.cpp285 TrivialMemoryManager MemMgr; in printLineInfoForInput() local
286 RuntimeDyld Dyld(MemMgr, MemMgr); in printLineInfoForInput()
371 static void doPreallocation(TrivialMemoryManager &MemMgr) { in doPreallocation() argument
379 MemMgr.preallocateSlab(PreallocMemory); in doPreallocation()
387 TrivialMemoryManager MemMgr; in executeInput() local
388 doPreallocation(MemMgr); in executeInput()
389 RuntimeDyld Dyld(MemMgr, MemMgr); in executeInput()
425 for (auto &FM : MemMgr.FunctionMemory) { in executeInput()
515 TrivialMemoryManager &MemMgr, in remapSectionsAndSymbols() argument
522 for (const auto& CodeSection : MemMgr.FunctionMemory) in remapSectionsAndSymbols()
[all …]
/external/llvm/lib/ExecutionEngine/Orc/
DOrcMCJITReplacement.h127 std::shared_ptr<MCJITMemoryManager> MemMgr, in createOrcMCJITReplacement() argument
130 return new OrcMCJITReplacement(std::move(MemMgr), std::move(Resolver), in createOrcMCJITReplacement()
140 std::shared_ptr<MCJITMemoryManager> MemMgr, in OrcMCJITReplacement() argument
144 MemMgr(*this, std::move(MemMgr)), Resolver(*this), in OrcMCJITReplacement()
163 LazyEmitLayer.addModuleSet(std::move(Ms), &MemMgr, &Resolver); in addModule()
169 ObjectLayer.addObjectSet(std::move(Objs), &MemMgr, &Resolver); in addObjectFile()
178 ObjectLayer.addObjectSet(std::move(Objs), &MemMgr, &Resolver); in addObjectFile()
268 ObjectLayer.addObjectSet(std::move(ObjSet), &MemMgr, &Resolver); in scanArchives()
293 M.MemMgr.notifyObjectLoaded(&M, *Objects[I]); in operator()
325 MCJITReplacementMemMgr MemMgr; variable
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldMachO.h52 RuntimeDyldMachO(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyldMachO() argument
54 : RuntimeDyldImpl(MemMgr, Resolver) {} in RuntimeDyldMachO()
125 RuntimeDyld::MemoryManager &MemMgr,
153 RuntimeDyldMachOCRTPBase(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyldMachOCRTPBase() argument
155 : RuntimeDyldMachO(MemMgr, Resolver) {} in RuntimeDyldMachOCRTPBase()
DRuntimeDyldCOFF.h36 create(Triple::ArchType Arch, RuntimeDyld::MemoryManager &MemMgr,
40 RuntimeDyldCOFF(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyldCOFF() argument
42 : RuntimeDyldImpl(MemMgr, Resolver) {} in RuntimeDyldCOFF()
DRuntimeDyldCOFF.cpp45 RuntimeDyld::MemoryManager &MemMgr, in create() argument
52 return make_unique<RuntimeDyldCOFFI386>(MemMgr, Resolver); in create()
54 return make_unique<RuntimeDyldCOFFX86_64>(MemMgr, Resolver); in create()
DRuntimeDyldMachO.cpp309 MemMgr.registerEHFrames(EHFrame->getAddress(), EHFrame->getLoadAddress(), in registerEHFrames()
317 RuntimeDyld::MemoryManager &MemMgr, in create() argument
324 return make_unique<RuntimeDyldMachOARM>(MemMgr, Resolver); in create()
326 return make_unique<RuntimeDyldMachOAArch64>(MemMgr, Resolver); in create()
328 return make_unique<RuntimeDyldMachOI386>(MemMgr, Resolver); in create()
330 return make_unique<RuntimeDyldMachOX86_64>(MemMgr, Resolver); in create()
DRuntimeDyld.cpp148 if (MemMgr.needsToReserveAllocationSpace()) { in loadObjectImpl()
151 MemMgr.reserveAllocationSpace(CodeSize, DataSizeRO, DataSizeRW); in loadObjectImpl()
515 uint8_t *Addr = MemMgr.allocateDataSection(CommonSize, sizeof(void *), in emitCommonSymbols()
609 Addr = IsCode ? MemMgr.allocateCodeSection(Allocate, Alignment, SectionID, in emitSection()
611 : MemMgr.allocateDataSection(Allocate, Alignment, SectionID, in emitSection()
871 RuntimeDyld::RuntimeDyld(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyld() argument
873 : MemMgr(MemMgr), Resolver(Resolver) { in RuntimeDyld()
924 Dyld = createRuntimeDyldELF(MemMgr, Resolver, ProcessAllSections, Checker); in loadObject()
927 static_cast<Triple::ArchType>(Obj.getArch()), MemMgr, Resolver, in loadObject()
931 static_cast<Triple::ArchType>(Obj.getArch()), MemMgr, Resolver, in loadObject()
DRuntimeDyldImpl.h233 RuntimeDyld::MemoryManager &MemMgr; variable
430 RuntimeDyldImpl(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyldImpl() argument
432 : MemMgr(MemMgr), Resolver(Resolver), Checker(nullptr), in RuntimeDyldImpl()
/external/llvm/lib/ExecutionEngine/MCJIT/
DMCJIT.cpp48 std::shared_ptr<MCJITMemoryManager> MemMgr, in createJIT() argument
56 if (!MemMgr || !Resolver) { in createJIT()
58 if (!MemMgr) in createJIT()
59 MemMgr = RTDyldMM; in createJIT()
64 return new MCJIT(std::move(M), std::move(TM), std::move(MemMgr), in createJIT()
69 std::shared_ptr<MCJITMemoryManager> MemMgr, in MCJIT() argument
72 Ctx(nullptr), MemMgr(std::move(MemMgr)), in MCJIT()
73 Resolver(*this, std::move(Resolver)), Dyld(*this->MemMgr, this->Resolver), in MCJIT()
237 MemMgr->finalizeMemory(); in finalizeLoadedModules()
620 MemMgr->notifyObjectLoaded(this, Obj); in NotifyObjectEmitted()
DMCJIT.h71 std::shared_ptr<MCJITMemoryManager> MemMgr,
183 std::shared_ptr<MCJITMemoryManager> MemMgr; variable
308 std::shared_ptr<MCJITMemoryManager> MemMgr,
/external/llvm/unittests/ExecutionEngine/Orc/
DLazyEmittingLayerTest.cpp19 std::unique_ptr<llvm::RuntimeDyld::MemoryManager> MemMgr, in addModuleSet()
21 EXPECT_FALSE(MemMgr); in addModuleSet()
DObjectTransformLayerTest.cpp54 ObjSetHandleT addObjectSet(ObjSetT &Objects, MemoryManagerPtrT MemMgr, in addObjectSet() argument
56 EXPECT_EQ(MockManager, *MemMgr) << "MM should pass through"; in addObjectSet()
68 void expectAddObjectSet(ObjSetT &Objects, MockMemoryManager *MemMgr, in expectAddObjectSet() argument
70 MockManager = *MemMgr; in expectAddObjectSet()
DOrcTestCommon.h115 ModuleSetHandleT addModuleSet(ModuleSetT Ms, MemoryManagerPtrT MemMgr, in addModuleSet() argument
117 return AddModuleSet(std::move(Ms), std::move(MemMgr), std::move(Resolver)); in addModuleSet()
/external/clang/lib/StaticAnalyzer/Core/
DSValBuilder.cpp107 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in getRegionValueSymbolVal()
144 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in conjureSymbolVal()
163 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in conjureSymbolVal()
179 return loc::MemRegionVal(MemMgr.getSymbolicHeapRegion(sym)); in getConjuredHeapSymbolVal()
192 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in getMetadataSymbolVal()
211 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in getDerivedRegionValueSymbolVal()
217 return loc::MemRegionVal(MemMgr.getFunctionTextRegion(func)); in getFunctionPointer()
225 MemMgr.getBlockTextRegion(block, locTy, locContext->getAnalysisDeclContext()); in getBlockPointer()
226 const BlockDataRegion *BD = MemMgr.getBlockDataRegion(BC, locContext, in getBlockPointer()
/external/llvm/tools/llvm-jitlistener/
Dllvm-jitlistener.cpp123 RTDyldMemoryManager *MemMgr = new SectionMemoryManager(); in InitEE() local
124 if (!MemMgr) { in InitEE()
144 .setMCJITMemoryManager(std::unique_ptr<RTDyldMemoryManager>(MemMgr)) in InitEE()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSValBuilder.h43 MemRegionManager MemMgr; variable
66 MemMgr(context, alloc), in SValBuilder()
140 MemRegionManager &getRegionManager() { return MemMgr; } in getRegionManager()
141 const MemRegionManager &getRegionManager() const { return MemMgr; } in getRegionManager()
301 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in makeLoc()
/external/llvm/include/llvm/ExecutionEngine/
DRuntimeDyld.h194 RuntimeDyld(MemoryManager &MemMgr, SymbolResolver &Resolver);
248 MemoryManager &MemMgr; variable

12