| /freebsd/contrib/llvm-project/llvm/tools/lli/ |
| H A D | ForwardingMemoryManager.h | 25 void setMemMgr(std::unique_ptr<RuntimeDyld::MemoryManager> MemMgr) { in setMemMgr() argument 26 this->MemMgr = std::move(MemMgr); in setMemMgr() 36 return MemMgr->allocateCodeSection(Size, Alignment, SectionID, SectionName); in allocateCodeSection() 42 return MemMgr->allocateDataSection(Size, Alignment, SectionID, SectionName, in allocateDataSection() 50 MemMgr->reserveAllocationSpace(CodeSize, CodeAlign, RODataSize, RODataAlign, in reserveAllocationSpace() 55 return MemMgr->needsToReserveAllocationSpace(); in needsToReserveAllocationSpace() 60 MemMgr->registerEHFrames(Addr, LoadAddr, Size); in registerEHFrames() 63 void deregisterEHFrames() override { MemMgr->deregisterEHFrames(); } in deregisterEHFrames() 66 return MemMgr->finalizeMemory(ErrMsg); 71 MemMgr->notifyObjectLoaded(RTDyld, Obj); in notifyObjectLoaded() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | RTDyldObjectLinkingLayer.cpp | 185 auto MemMgr = GetMemoryManager(*O); in emit() local 186 auto &MemMgrRef = *MemMgr; in emit() 207 [this, SharedR, MemMgr = std::move(MemMgr), Deps = std::move(Deps), in emit() 212 onObjEmit(*SharedR, std::move(Obj), std::move(MemMgr), in emit() 233 RuntimeDyld::MemoryManager &MemMgr, in onObjLoad() argument 367 std::unique_ptr<RuntimeDyld::MemoryManager> MemMgr, in onObjEmit() argument 395 L->notifyObjectLoaded(pointerToJITTargetAddress(MemMgr.get()), *Obj, in onObjEmit() 403 [&](ResourceKey K) { MemMgrs[K].push_back(std::move(MemMgr)); })) { in onObjEmit() 424 for (auto &MemMgr : MemMgrsToRemove) { in handleRemoveResources() local 426 L->notifyFreeingObject(pointerToJITTargetAddress(MemMgr.get())); in handleRemoveResources() [all …]
|
| H A D | LinkGraphLinkingLayer.cpp | 65 JITLinkMemoryManager &getMemoryManager() override { return Layer.MemMgr; } in getMemoryManager() 254 joinErrors(std::move(Err), Layer.MemMgr.deallocate(std::move(FA))); in notifyEmitted() 475 : LinkGraphLayer(ES), MemMgr(ES.getExecutorProcessControl().getMemMgr()) { in LinkGraphLinkingLayer() 480 JITLinkMemoryManager &MemMgr) in LinkGraphLinkingLayer() argument 481 : LinkGraphLayer(ES), MemMgr(MemMgr) { in LinkGraphLinkingLayer() 486 ExecutionSession &ES, std::unique_ptr<JITLinkMemoryManager> MemMgr) in LinkGraphLinkingLayer() argument 487 : LinkGraphLayer(ES), MemMgr(*MemMgr), MemMgrOwnership(std::move(MemMgr)) { in LinkGraphLinkingLayer() 527 Err = joinErrors(std::move(Err), MemMgr.deallocate(std::move(FA))); in recordFinalizedAlloc() 555 return MemMgr.deallocate(std::move(AllocsToRemove)); in handleRemoveResources()
|
| H A D | DebugObjectManagerPlugin.cpp | 116 DebugObject(JITLinkMemoryManager &MemMgr, const JITLinkDylib *JD, in DebugObject() argument 118 : MemMgr(MemMgr), JD(JD), ES(ES), Flags(DebugObjectFlags{}) {} in DebugObject() 136 if (Error Err = MemMgr.deallocate(std::move(Allocs))) in ~DebugObject() 150 JITLinkMemoryManager &MemMgr; member in llvm::orc::DebugObject 207 CreateArchType(MemoryBufferRef Buffer, JITLinkMemoryManager &MemMgr, 214 JITLinkMemoryManager &MemMgr, const JITLinkDylib *JD, in ELFDebugObject() argument 216 : DebugObject(MemMgr, JD, ES), Buffer(std::move(Buffer)) { in ELFDebugObject() 252 JITLinkMemoryManager &MemMgr, in CreateArchType() argument 258 new ELFDebugObject(CopyBuffer(Buffer, Err), MemMgr, JD, ES)); in CreateArchType() 335 MemMgr, ES.getSymbolStringPool(), ES.getTargetTriple(), JD, in finalizeWorkingMemory()
|
| H A D | SelfExecutorProcessControl.cpp | 25 std::unique_ptr<jitlink::JITLinkMemoryManager> MemMgr) in SelfExecutorProcessControl() argument 29 OwnedMemMgr = std::move(MemMgr); in SelfExecutorProcessControl() 36 this->MemMgr = OwnedMemMgr.get(); in SelfExecutorProcessControl() 59 std::unique_ptr<jitlink::JITLinkMemoryManager> MemMgr) { in Create() argument 75 std::move(MemMgr)); in Create()
|
| H A D | SimpleRemoteEPC.cpp | 382 if (auto MemMgr = S.CreateMemoryManager(*this)) { in setup() local 383 OwnedMemMgr = std::move(*MemMgr); in setup() 384 this->MemMgr = OwnedMemMgr.get(); in setup() 386 return MemMgr.takeError(); in setup()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | ObjectLinkingLayer.h | 61 jitlink::JITLinkMemoryManager &MemMgr) in ObjectLinkingLayer() argument 62 : LinkGraphLinkingLayer(ES, MemMgr), BaseObjectLayer(ES) {} in ObjectLinkingLayer() 69 std::unique_ptr<jitlink::JITLinkMemoryManager> MemMgr) in ObjectLinkingLayer() argument 70 : LinkGraphLinkingLayer(ES, std::move(MemMgr)), BaseObjectLayer(ES) {} in ObjectLinkingLayer()
|
| H A D | LinkGraphLinkingLayer.h | 81 jitlink::JITLinkMemoryManager &MemMgr); 88 std::unique_ptr<jitlink::JITLinkMemoryManager> MemMgr); 169 jitlink::JITLinkMemoryManager &MemMgr; variable
|
| H A D | SelfExecutorProcessControl.h | 31 std::unique_ptr<jitlink::JITLinkMemoryManager> MemMgr); 41 std::unique_ptr<jitlink::JITLinkMemoryManager> MemMgr = nullptr);
|
| H A D | RTDyldObjectLinkingLayer.h | 133 RuntimeDyld::MemoryManager &MemMgr, 140 std::unique_ptr<RuntimeDyld::MemoryManager> MemMgr,
|
| H A D | ExecutorProcessControl.h | 145 assert(MemMgr && "No MemMgr object set"); in getMemMgr() 146 return *MemMgr; in getMemMgr() 319 jitlink::JITLinkMemoryManager *MemMgr = nullptr; variable
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-rtdyld/ |
| H A D | llvm-rtdyld.cpp | 420 TrivialMemoryManager MemMgr; in printLineInfoForInput() local 421 RuntimeDyld Dyld(MemMgr, MemMgr); in printLineInfoForInput() 535 static void doPreallocation(TrivialMemoryManager &MemMgr) { in doPreallocation() argument 543 MemMgr.preallocateSlab(PreallocMemory); in doPreallocation() 551 TrivialMemoryManager MemMgr; in executeInput() local 552 doPreallocation(MemMgr); in executeInput() 553 RuntimeDyld Dyld(MemMgr, MemMgr); in executeInput() 600 for (auto &FM : MemMgr.FunctionMemory) { in executeInput() 690 TrivialMemoryManager &MemMgr) { in remapSectionsAndSymbols() argument 696 for (const auto& CodeSection : MemMgr.FunctionMemory) in remapSectionsAndSymbols() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldCOFF.cpp | 49 RuntimeDyld::MemoryManager &MemMgr, in create() argument 54 return std::make_unique<RuntimeDyldCOFFI386>(MemMgr, Resolver); in create() 56 return std::make_unique<RuntimeDyldCOFFThumb>(MemMgr, Resolver); in create() 58 return std::make_unique<RuntimeDyldCOFFX86_64>(MemMgr, Resolver); in create() 60 return std::make_unique<RuntimeDyldCOFFAArch64>(MemMgr, Resolver); in create()
|
| H A D | RuntimeDyldMachO.h | 46 RuntimeDyldMachO(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyldMachO() argument 48 : RuntimeDyldImpl(MemMgr, Resolver) {} in RuntimeDyldMachO() 121 RuntimeDyld::MemoryManager &MemMgr, 149 RuntimeDyldMachOCRTPBase(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyldMachOCRTPBase() argument 151 : RuntimeDyldMachO(MemMgr, Resolver) {} in RuntimeDyldMachOCRTPBase()
|
| H A D | RuntimeDyldCOFF.h | 31 create(Triple::ArchType Arch, RuntimeDyld::MemoryManager &MemMgr, 35 RuntimeDyldCOFF(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyldCOFF() argument 38 : RuntimeDyldImpl(MemMgr, Resolver), PointerSize(PointerSize), in RuntimeDyldCOFF()
|
| H A D | RuntimeDyld.cpp | 77 MemMgr.deregisterEHFrames(); in deregisterEHFrames() 192 if (MemMgr.needsToReserveAllocationSpace()) { in loadObjectImpl() 198 MemMgr.reserveAllocationSpace(CodeSize, CodeAlign, RODataSize, RODataAlign, in loadObjectImpl() 670 if (!MemMgr.allowStubAllocation()) { in computeSectionStubBufSize() 757 uint8_t *Addr = MemMgr.allocateDataSection(CommonSize, CommonAlign, SectionID, in emitCommonSymbols() 865 auto TLSSection = MemMgr.allocateTLSSection(Allocate, Alignment.value(), in emitSection() 870 Addr = MemMgr.allocateCodeSection(Allocate, Alignment.value(), SectionID, in emitSection() 873 Addr = MemMgr.allocateDataSection(Allocate, Alignment.value(), SectionID, in emitSection() 1258 if (SharedThis->MemMgr.finalizeMemory(&ErrMsg)) in finalizeAsync() 1309 RuntimeDyld::RuntimeDyld(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyld() argument [all …]
|
| H A D | RuntimeDyldMachO.cpp | 341 MemMgr.registerEHFrames(EHFrame->getAddress(), EHFrame->getLoadAddress(), in registerEHFrames() 349 RuntimeDyld::MemoryManager &MemMgr, in create() argument 356 return std::make_unique<RuntimeDyldMachOARM>(MemMgr, Resolver); in create() 358 return std::make_unique<RuntimeDyldMachOAArch64>(MemMgr, Resolver); in create() 360 return std::make_unique<RuntimeDyldMachOAArch64>(MemMgr, Resolver); in create() 362 return std::make_unique<RuntimeDyldMachOI386>(MemMgr, Resolver); in create() 364 return std::make_unique<RuntimeDyldMachOX86_64>(MemMgr, Resolver); in create()
|
| H A D | RuntimeDyldImpl.h | 239 RuntimeDyld::MemoryManager &MemMgr; variable 464 RuntimeDyldImpl(RuntimeDyld::MemoryManager &MemMgr, in RuntimeDyldImpl() argument 466 : MemMgr(MemMgr), Resolver(Resolver), in RuntimeDyldImpl()
|
| H A D | RuntimeDyldELF.h | 230 RuntimeDyldELF(RuntimeDyld::MemoryManager &MemMgr, 235 create(Triple::ArchType Arch, RuntimeDyld::MemoryManager &MemMgr,
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/ |
| H A D | MCJIT.cpp | 45 std::shared_ptr<MCJITMemoryManager> MemMgr, in createJIT() argument 53 if (!MemMgr || !Resolver) { in createJIT() 55 if (!MemMgr) in createJIT() 56 MemMgr = RTDyldMM; in createJIT() 61 return new MCJIT(std::move(M), std::move(TM), std::move(MemMgr), in createJIT() 66 std::shared_ptr<MCJITMemoryManager> MemMgr, in MCJIT() argument 69 Ctx(nullptr), MemMgr(std::move(MemMgr)), in MCJIT() 70 Resolver(*this, std::move(Resolver)), Dyld(*this->MemMgr, this->Resolver), in MCJIT() 253 MemMgr->finalizeMemory(); in finalizeLoadedModules() 658 MemMgr->notifyObjectLoaded(this, Obj); in notifyObjectLoaded()
|
| H A D | MCJIT.h | 68 std::shared_ptr<MCJITMemoryManager> MemMgr, 172 std::shared_ptr<MCJITMemoryManager> MemMgr; variable 296 std::shared_ptr<MCJITMemoryManager> MemMgr,
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | JITLinkMemoryManager.cpp | 146 void SimpleSegmentAlloc::Create(JITLinkMemoryManager &MemMgr, in Create() argument 193 MemMgr.allocate(JD, GRef, in Create() 207 JITLinkMemoryManager &MemMgr, std::shared_ptr<orc::SymbolStringPool> SSP, in Create() argument 211 Create(MemMgr, std::move(SSP), std::move(TT), JD, std::move(Segments), in Create() 243 IPInFlightAlloc(InProcessMemoryManager &MemMgr, LinkGraph &G, BasicLayout BL, in IPInFlightAlloc() argument 246 : MemMgr(MemMgr), G(&G), BL(std::move(BL)), in IPInFlightAlloc() 312 OnFinalized(MemMgr.createFinalizedAlloc(std::move(StandardSegments), in completeFinalization() 324 alignTo(Seg.ContentSize + Seg.ZeroFillSize, MemMgr.PageSize); in applyProtections() 334 InProcessMemoryManager &MemMgr; member in llvm::jitlink::InProcessMemoryManager::IPInFlightAlloc
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/ |
| H A D | RuntimeDyld.h | 193 LLVM_ABI RuntimeDyld(MemoryManager &MemMgr, JITSymbolResolver &Resolver); 292 RuntimeDyld::MemoryManager &MemMgr, JITSymbolResolver &Resolver, 304 MemoryManager &MemMgr; variable 318 RuntimeDyld::MemoryManager &MemMgr, JITSymbolResolver &Resolver,
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | SValBuilder.cpp | 55 SymMgr(context, BasicVals, alloc), MemMgr(context, alloc), in SValBuilder() 149 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in getRegionValueSymbolVal() 188 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in conjureSymbolVal() 229 return loc::MemRegionVal(MemMgr.getSymbolicHeapRegion(sym)); in getConjuredHeapSymbolVal() 251 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in getMetadataSymbolVal() 270 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in getDerivedRegionValueSymbolVal() 292 return loc::MemRegionVal(MemMgr.getFunctionCodeRegion(func)); in getFunctionPointer() 300 MemMgr.getBlockCodeRegion(block, locTy, locContext->getAnalysisDeclContext()); in getBlockPointer() 301 const BlockDataRegion *BD = MemMgr.getBlockDataRegion(BC, locContext, in getBlockPointer()
|
| /freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | SValBuilder.h | 67 MemRegionManager MemMgr; variable 168 MemRegionManager &getRegionManager() { return MemMgr; } in getRegionManager() 169 const MemRegionManager &getRegionManager() const { return MemMgr; } in getRegionManager() 364 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in makeLoc()
|