/external/swiftshader/third_party/LLVM/unittests/ExecutionEngine/JIT/ |
D | JITMemoryManagerTest.cpp | 34 OwningPtr<JITMemoryManager> MemMgr( in TEST() local 42 uint8_t *FunctionBody1 = MemMgr->startFunctionBody(F1.get(), size); in TEST() 44 MemMgr->endFunctionBody(F1.get(), FunctionBody1, FunctionBody1 + 1024); in TEST() 45 EXPECT_TRUE(MemMgr->CheckInvariants(Error)) << Error; in TEST() 49 uint8_t *FunctionBody2 = MemMgr->startFunctionBody(F2.get(), size); in TEST() 51 MemMgr->endFunctionBody(F2.get(), FunctionBody2, FunctionBody2 + 1024); in TEST() 52 EXPECT_TRUE(MemMgr->CheckInvariants(Error)) << Error; in TEST() 56 uint8_t *FunctionBody3 = MemMgr->startFunctionBody(F3.get(), size); in TEST() 58 MemMgr->endFunctionBody(F3.get(), FunctionBody3, FunctionBody3 + 1024); in TEST() 59 EXPECT_TRUE(MemMgr->CheckInvariants(Error)) << Error; in TEST() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ExecutionEngine/MCJIT/ |
D | MCJITMemoryManagerTest.cpp | 18 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/unittests/ExecutionEngine/MCJIT/ |
D | MCJITMemoryManagerTest.cpp | 18 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/swiftshader/third_party/llvm-7.0/llvm/tools/lli/ |
D | RemoteJITUtils.h | 83 void setMemMgr(std::unique_ptr<RuntimeDyld::MemoryManager> MemMgr) { in setMemMgr() argument 84 this->MemMgr = std::move(MemMgr); in setMemMgr() 94 return MemMgr->allocateCodeSection(Size, Alignment, SectionID, SectionName); in allocateCodeSection() 100 return MemMgr->allocateDataSection(Size, Alignment, SectionID, SectionName, in allocateDataSection() 108 MemMgr->reserveAllocationSpace(CodeSize, CodeAlign, RODataSize, RODataAlign, in reserveAllocationSpace() 113 return MemMgr->needsToReserveAllocationSpace(); in needsToReserveAllocationSpace() 118 MemMgr->registerEHFrames(Addr, LoadAddr, Size); in registerEHFrames() 122 MemMgr->deregisterEHFrames(); in deregisterEHFrames() 126 return MemMgr->finalizeMemory(ErrMsg); 131 MemMgr->notifyObjectLoaded(RTDyld, Obj); in notifyObjectLoaded() [all …]
|
/external/llvm/tools/lli/ |
D | RemoteJITUtils.h | 82 void setMemMgr(std::unique_ptr<RuntimeDyld::MemoryManager> MemMgr) { in setMemMgr() argument 83 this->MemMgr = std::move(MemMgr); in setMemMgr() 93 return MemMgr->allocateCodeSection(Size, Alignment, SectionID, SectionName); in allocateCodeSection() 99 return MemMgr->allocateDataSection(Size, Alignment, SectionID, SectionName, in allocateDataSection() 107 MemMgr->reserveAllocationSpace(CodeSize, CodeAlign, RODataSize, RODataAlign, in reserveAllocationSpace() 112 return MemMgr->needsToReserveAllocationSpace(); in needsToReserveAllocationSpace() 117 MemMgr->registerEHFrames(Addr, LoadAddr, Size); in registerEHFrames() 122 MemMgr->deregisterEHFrames(Addr, LoadAddr, Size); in deregisterEHFrames() 126 return MemMgr->finalizeMemory(ErrMsg); 131 MemMgr->notifyObjectLoaded(RTDyld, Obj); in notifyObjectLoaded() [all …]
|
/external/llvm/include/llvm/ExecutionEngine/Orc/ |
D | LazyEmittingLayer.h | 100 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() 209 MemoryManagerPtrT MemMgr; variable 230 MemoryManagerPtrT MemMgr, in addModuleSet() argument 234 EmissionDeferredSet::create(BaseLayer, std::move(Ms), std::move(MemMgr), in addModuleSet() 288 BaseLayerT &B, ModuleSetT Ms, MemoryManagerPtrT MemMgr, in create() argument 292 return llvm::make_unique<EDS>(std::move(Ms), std::move(MemMgr), in create()
|
D | ObjectLinkingLayer.h | 102 ConcreteLinkedObjectSet(ObjSetT Objects, MemoryManagerPtrT MemMgr, in ConcreteLinkedObjectSet() argument 106 : MemMgr(std::move(MemMgr)), in ConcreteLinkedObjectSet() 121 RuntimeDyld RTDyld(*MemMgr, *PFC->Resolver); in finalize() 194 MemoryManagerPtrT MemMgr; variable 203 createLinkedObjectSet(ObjSetT Objects, MemoryManagerPtrT MemMgr, in createLinkedObjectSet() argument 209 return llvm::make_unique<LOS>(std::move(Objects), std::move(MemMgr), in createLinkedObjectSet() 249 MemoryManagerPtrT MemMgr, in addObjectSet() argument 271 createLinkedObjectSet(std::move(Objects), std::move(MemMgr), in addObjectSet()
|
D | CompileOnDemandLayer.h | 137 MemMgr(std::move(Other.MemMgr)), in LogicalDylibResources() 143 MemMgr = std::move(Other.MemMgr); 149 std::unique_ptr<ResourceOwner<RuntimeDyld::MemoryManager>> MemMgr; member 185 MemoryManagerPtrT MemMgr, in addModuleSet() argument 193 auto &MemMgrRef = *MemMgr; in addModuleSet() 194 LDResources.MemMgr = in addModuleSet() 195 wrapOwnership<RuntimeDyld::MemoryManager>(std::move(MemMgr)); in addModuleSet()
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-rtdyld/ |
D | llvm-rtdyld.cpp | 291 TrivialMemoryManager MemMgr; in printLineInfoForInput() local 292 RuntimeDyld Dyld(MemMgr, MemMgr); in printLineInfoForInput() 401 static void doPreallocation(TrivialMemoryManager &MemMgr) { in doPreallocation() argument 409 MemMgr.preallocateSlab(PreallocMemory); in doPreallocation() 417 TrivialMemoryManager MemMgr; in executeInput() local 418 doPreallocation(MemMgr); in executeInput() 419 RuntimeDyld Dyld(MemMgr, MemMgr); in executeInput() 460 for (auto &FM : MemMgr.FunctionMemory) { in executeInput() 546 TrivialMemoryManager &MemMgr, in remapSectionsAndSymbols() argument 553 for (const auto& CodeSection : MemMgr.FunctionMemory) in remapSectionsAndSymbols() [all …]
|
/external/llvm/tools/llvm-rtdyld/ |
D | llvm-rtdyld.cpp | 285 TrivialMemoryManager MemMgr; in printLineInfoForInput() local 286 RuntimeDyld Dyld(MemMgr, MemMgr); in printLineInfoForInput() 395 static void doPreallocation(TrivialMemoryManager &MemMgr) { in doPreallocation() argument 403 MemMgr.preallocateSlab(PreallocMemory); in doPreallocation() 411 TrivialMemoryManager MemMgr; in executeInput() local 412 doPreallocation(MemMgr); in executeInput() 413 RuntimeDyld Dyld(MemMgr, MemMgr); in executeInput() 454 for (auto &FM : MemMgr.FunctionMemory) { in executeInput() 544 TrivialMemoryManager &MemMgr, in remapSectionsAndSymbols() argument 551 for (const auto& CodeSection : MemMgr.FunctionMemory) in remapSectionsAndSymbols() [all …]
|
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/JIT/ |
D | JITEmitter.cpp | 280 JITMemoryManager *MemMgr; member in __anona707f8570111::JITEmitter 369 MemMgr = JMM ? JMM : JITMemoryManager::CreateDefaultMemManager(); in JITEmitter() 371 MemMgr->AllocateGOT(); in JITEmitter() 383 delete MemMgr; in ~JITEmitter() 786 MemMgr->setMemoryWritable(); in startFunction() 793 BufferBegin = CurBufferPtr = MemMgr->startFunctionBody(F.getFunction(), in startFunction() 820 MemMgr->endFunctionBody(F.getFunction(), BufferBegin, CurBufferPtr); in finishFunction() 877 if (MR.isGOTRelative() && MemMgr->isManagingGOT()) { in finishFunction() 880 if (((void**)MemMgr->getGOTBase())[idx] != ResultPtr) { in finishFunction() 882 << " pointing at " << ((void**)MemMgr->getGOTBase())[idx] in finishFunction() [all …]
|
/external/llvm/lib/ExecutionEngine/Orc/ |
D | OrcMCJITReplacement.h | 135 std::shared_ptr<MCJITMemoryManager> MemMgr, in createOrcMCJITReplacement() argument 138 return new OrcMCJITReplacement(std::move(MemMgr), std::move(Resolver), in createOrcMCJITReplacement() 148 std::shared_ptr<MCJITMemoryManager> MemMgr, in OrcMCJITReplacement() argument 152 MemMgr(*this, std::move(MemMgr)), Resolver(*this), in OrcMCJITReplacement() 171 LazyEmitLayer.addModuleSet(std::move(Ms), &MemMgr, &Resolver); in addModule() 177 ObjectLayer.addObjectSet(std::move(Objs), &MemMgr, &Resolver); in addObjectFile() 185 ObjectLayer.addObjectSet(std::move(Objs), &MemMgr, &Resolver); in addObjectFile() 279 ObjectLayer.addObjectSet(std::move(ObjSet), &MemMgr, &Resolver); in scanArchives() 304 M.MemMgr.notifyObjectLoaded(&M, getObject(*Objects[I])); in operator() 347 MCJITReplacementMemMgr MemMgr; variable
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ExecutionEngine/Orc/ |
D | RTDyldObjectLinkingLayer.h | 165 OwnedObject Obj, MemoryManagerPtrT MemMgr, in ConcreteLinkedObject() argument 170 MemMgr(std::move(MemMgr)), in ConcreteLinkedObject() 181 MemMgr->deregisterEHFrames(); in ~ConcreteLinkedObject() 189 PFC->RTDyld = llvm::make_unique<RuntimeDyld>(*MemMgr, ResolverAdapter); in finalize() 276 MemoryManagerPtrT MemMgr; variable 284 OwnedObject Obj, MemoryManagerPtrT MemMgr, in createLinkedObject() argument 289 std::move(MemMgr), std::move(Resolver), in createLinkedObject() 295 std::shared_ptr<RuntimeDyld::MemoryManager> MemMgr; member 339 std::move(R.MemMgr), std::move(R.Resolver), ProcessAllSections); in addObject()
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldCOFF.cpp | 46 RuntimeDyld::MemoryManager &MemMgr, in create() argument 51 return make_unique<RuntimeDyldCOFFI386>(MemMgr, Resolver); in create() 53 return make_unique<RuntimeDyldCOFFThumb>(MemMgr, Resolver); in create() 55 return make_unique<RuntimeDyldCOFFX86_64>(MemMgr, Resolver); in create()
|
D | RuntimeDyldMachO.h | 52 RuntimeDyldMachO(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyldMachO() argument 54 : RuntimeDyldImpl(MemMgr, Resolver) {} in RuntimeDyldMachO() 126 RuntimeDyld::MemoryManager &MemMgr, 154 RuntimeDyldMachOCRTPBase(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyldMachOCRTPBase() argument 156 : RuntimeDyldMachO(MemMgr, Resolver) {} in RuntimeDyldMachOCRTPBase()
|
D | RuntimeDyldCOFF.h | 35 create(Triple::ArchType Arch, RuntimeDyld::MemoryManager &MemMgr, 39 RuntimeDyldCOFF(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyldCOFF() argument 41 : RuntimeDyldImpl(MemMgr, Resolver) {} in RuntimeDyldCOFF()
|
D | RuntimeDyld.cpp | 184 if (MemMgr.needsToReserveAllocationSpace()) { in loadObjectImpl() 192 MemMgr.reserveAllocationSpace(CodeSize, CodeAlign, RODataSize, RODataAlign, in loadObjectImpl() 604 uint8_t *Addr = MemMgr.allocateDataSection(CommonSize, CommonAlign, SectionID, in emitCommonSymbols() 706 Addr = IsCode ? MemMgr.allocateCodeSection(Allocate, Alignment, SectionID, in emitSection() 708 : MemMgr.allocateDataSection(Allocate, Alignment, SectionID, in emitSection() 976 RuntimeDyld::RuntimeDyld(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyld() argument 978 : MemMgr(MemMgr), Resolver(Resolver) { in RuntimeDyld() 1029 Dyld = createRuntimeDyldELF(MemMgr, Resolver, ProcessAllSections, Checker); in loadObject() 1032 static_cast<Triple::ArchType>(Obj.getArch()), MemMgr, Resolver, in loadObject() 1036 static_cast<Triple::ArchType>(Obj.getArch()), MemMgr, Resolver, in loadObject() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldCOFF.cpp | 49 RuntimeDyld::MemoryManager &MemMgr, in create() argument 54 return make_unique<RuntimeDyldCOFFI386>(MemMgr, Resolver); in create() 56 return make_unique<RuntimeDyldCOFFThumb>(MemMgr, Resolver); in create() 58 return make_unique<RuntimeDyldCOFFX86_64>(MemMgr, Resolver); in create()
|
D | RuntimeDyldMachO.h | 52 RuntimeDyldMachO(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyldMachO() argument 54 : RuntimeDyldImpl(MemMgr, Resolver) {} in RuntimeDyldMachO() 127 RuntimeDyld::MemoryManager &MemMgr, 155 RuntimeDyldMachOCRTPBase(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyldMachOCRTPBase() argument 157 : RuntimeDyldMachO(MemMgr, Resolver) {} in RuntimeDyldMachOCRTPBase()
|
D | RuntimeDyldCOFF.h | 35 create(Triple::ArchType Arch, RuntimeDyld::MemoryManager &MemMgr, 39 RuntimeDyldCOFF(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyldCOFF() argument 41 : RuntimeDyldImpl(MemMgr, Resolver) {} in RuntimeDyldCOFF()
|
D | RuntimeDyld.cpp | 77 MemMgr.deregisterEHFrames(); in deregisterEHFrames() 184 if (MemMgr.needsToReserveAllocationSpace()) { in loadObjectImpl() 192 MemMgr.reserveAllocationSpace(CodeSize, CodeAlign, RODataSize, RODataAlign, in loadObjectImpl() 658 uint8_t *Addr = MemMgr.allocateDataSection(CommonSize, CommonAlign, SectionID, in emitCommonSymbols() 759 Addr = IsCode ? MemMgr.allocateCodeSection(Allocate, Alignment, SectionID, in emitSection() 761 : MemMgr.allocateDataSection(Allocate, Alignment, SectionID, in emitSection() 1113 RuntimeDyld::RuntimeDyld(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyld() argument 1115 : MemMgr(MemMgr), Resolver(Resolver) { in RuntimeDyld() 1169 MemMgr, Resolver, ProcessAllSections, Checker); in loadObject() 1172 static_cast<Triple::ArchType>(Obj.getArch()), MemMgr, Resolver, in loadObject() [all …]
|
/external/swiftshader/third_party/LLVM/tools/llvm-rtdyld/ |
D | llvm-rtdyld.cpp | 87 TrivialMemoryManager *MemMgr = new TrivialMemoryManager; in executeInput() local 88 RuntimeDyld Dyld(MemMgr); in executeInput() 117 for (unsigned i = 0, e = MemMgr->FunctionMemory.size(); i != e; ++i) { in executeInput() 118 sys::MemoryBlock &Data = MemMgr->FunctionMemory[i]; in executeInput()
|
/external/llvm/lib/ExecutionEngine/MCJIT/ |
D | MCJIT.cpp | 48 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() 247 MemMgr->finalizeMemory(); in finalizeLoadedModules() 635 MemMgr->notifyObjectLoaded(this, Obj); in NotifyObjectEmitted()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/MCJIT/ |
D | MCJIT.cpp | 44 std::shared_ptr<MCJITMemoryManager> MemMgr, in createJIT() argument 52 if (!MemMgr || !Resolver) { in createJIT() 54 if (!MemMgr) in createJIT() 55 MemMgr = RTDyldMM; in createJIT() 60 return new MCJIT(std::move(M), std::move(TM), std::move(MemMgr), in createJIT() 65 std::shared_ptr<MCJITMemoryManager> MemMgr, in MCJIT() argument 68 Ctx(nullptr), MemMgr(std::move(MemMgr)), in MCJIT() 69 Resolver(*this, std::move(Resolver)), Dyld(*this->MemMgr, this->Resolver), in MCJIT() 249 MemMgr->finalizeMemory(); in finalizeLoadedModules() 653 MemMgr->notifyObjectLoaded(this, Obj); in NotifyObjectEmitted()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | SValBuilder.cpp | 107 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.getFunctionCodeRegion(func)); in getFunctionPointer() 225 MemMgr.getBlockCodeRegion(block, locTy, locContext->getAnalysisDeclContext()); in getBlockPointer() 226 const BlockDataRegion *BD = MemMgr.getBlockDataRegion(BC, locContext, in getBlockPointer()
|