/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | ExecutorProcessControl.cpp | 93 sys::DynamicLibrary Dylib(Elem.Handle.toPtr<void *>()); in lookupSymbolsAsync() 120 return orc::runAsMain(MainFnAddr.toPtr<MainTy>(), Args); in runAsMain() 126 return orc::runAsVoidFunction(VoidFnAddr.toPtr<VoidTy>()); in runAsVoidFunction() 132 return orc::runAsIntFunction(IntFnAddr.toPtr<IntTy>(), Arg); in runAsIntFunction() 140 auto *WrapperFn = WrapperFnAddr.toPtr<WrapperFnTy>(); in callWrapperAsync() 152 *W.Addr.toPtr<uint8_t *>() = W.Value; in writeUInt8sAsync() 159 *W.Addr.toPtr<uint16_t *>() = W.Value; in writeUInt16sAsync() 166 *W.Addr.toPtr<uint32_t *>() = W.Value; in writeUInt32sAsync() 173 *W.Addr.toPtr<uint64_t *>() = W.Value; in writeUInt64sAsync() 180 memcpy(W.Addr.toPtr<char *>(), W.Buffer.data(), W.Buffer.size()); in writeBuffersAsync() [all …]
|
H A D | MemoryMapper.cpp | 63 return Addr.toPtr<char *>(); in prepare() 82 std::memset((Base + Segment.ContentSize).toPtr<void *>(), 0, in initialize() 86 {Base.toPtr<void *>(), Size}, in initialize() 91 sys::Memory::InvalidateInstructionCache(Base.toPtr<void *>(), Size); in initialize() 105 Reservations[AI.MappingBase.toPtr<void *>()].Allocations.push_back(MinAddr); in initialize() 128 {Base.toPtr<void *>(), Allocations[Base].Size}, in deinitialize() 150 auto &R = Reservations[Base.toPtr<void *>()]; in release() 164 auto MB = sys::MemoryBlock(Base.toPtr<void *>(), Size); in release() 172 Reservations.erase(Base.toPtr<void *>()); in release()
|
H A D | LLJIT.cpp | 239 auto *InitFn = InitFnAddr.toPtr<void (*)()>(); in initialize() 260 auto *DeinitFn = DeinitFnAddr.toPtr<void (*)()>(); in deinitialize()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/ |
H A D | macho_platform.cpp | 578 auto *JDS = getJITDylibStateByHeader(HeaderAddr.toPtr<void *>()); in deregisterObjectPlatformSections() 583 << HeaderAddr.toPtr<void *>(); in deregisterObjectPlatformSections() 588 JDS->SymbolTable[NameAddr.toPtr<const char *>()] = {SymAddr, Flags}; in deregisterObjectPlatformSections() 599 auto *JDS = getJITDylibStateByHeader(HeaderAddr.toPtr<void *>()); in deregisterObjectPlatformSections() 604 << HeaderAddr.toPtr<void *>(); in deregisterObjectPlatformSections() 609 JDS->SymbolTable.erase(NameAddr.toPtr<const char *>()); in deregisterObjectPlatformSections() 623 HeaderAddr.toPtr<void *>()); in deregisterObjectPlatformSections() 627 auto *JDS = getJITDylibStateByHeader(HeaderAddr.toPtr<void *>()); in deregisterObjectPlatformSections() 632 << HeaderAddr.toPtr<void *>(); in deregisterObjectPlatformSections() 642 UnwindInfo->DwarfSection.Start.toPtr<voi in deregisterObjectPlatformSections() [all...] |
H A D | coff_platform.cpp | 292 return Addr->toPtr<void *>(); in dlsym() 364 auto *DepJDS = getJITDylibStateByHeader(DepHeaderAddr.toPtr<void *>()); in dlopenInitialize() 368 << DepHeaderAddr.toPtr<void *>() << " while initializing " in dlopenInitialize() 461 auto I = JDStates.find(HeaderAddr.toPtr<void *>()); in registerObjectSections() 505 auto I = JDStates.find(HeaderAddr.toPtr<void *>()); in deregisterObjectSections() 526 auto Func = SEHFrameRange.Start.toPtr<PRUNTIME_FUNCTION>(); in registerSEHFrames() 535 if (!RtlDeleteFunctionTable(SEHFrameRange.Start.toPtr<PRUNTIME_FUNCTION>())) in deregisterSEHFrames() 542 assert(!BlockRanges.count(Range.Start.toPtr<void *>()) && in registerBlockRange() 544 BlockRange B = {HeaderAddr.toPtr<void *>(), Range.size()}; in registerBlockRange() 545 BlockRanges.emplace(Range.Start.toPtr<voi in registerBlockRange() [all...] |
H A D | elfnix_platform.cpp | 198 registerEHFrameSection(POSR.EHFrameSection.Start.toPtr<const char *>()); in registerObjectSections() 212 deregisterEHFrameSection(POSR.EHFrameSection.Start.toPtr<const char *>()); in deregisterObjectSections() 253 return Addr->toPtr<void *>(); in dlsym() 321 void *Header = MOJDIs.DSOHandleAddress.toPtr<void *>(); in getOrCreateJITDylibState() 399 InitSeq->back().DSOHandleAddress.toPtr<void *>()); in dlopenInitialize()
|
H A D | executor_address.h | 84 toPtr(WrapFn &&Wrap = WrapFn()) const { 93 toPtr(WrapFn &&Wrap = WrapFn()) const { 199 return span<T>(Start.toPtr<T *>(), size() / sizeof(T)); in toSpan()
|
H A D | dlfcn_wrapper.cpp | 49 return __orc_rt_jit_dlclose(DSOHandle.toPtr<void *>()); in __orc_rt_jit_dlclose_wrapper()
|
H A D | wrapper_function_utils.h | 387 return (ObjAddr.toPtr<ClassT *>()->*M)(std::forward<ArgTs>(Args)...); 443 FnAddr.toPtr<FnTy *>()(ArgData.data(), ArgData.size()));
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/ |
H A D | OrcRTBootstrap.cpp | 31 *W.Addr.template toPtr<decltype(W.Value) *>() = W.Value; in writeUIntsWrapper() 42 memcpy(W.Addr.template toPtr<char *>(), W.Buffer.data(), in writeBuffersWrapper() 54 return runAsMain(MainAddr.toPtr<int (*)(int, char *[])>(), Args); in runAsMainWrapper() 64 return runAsVoidFunction(MainAddr.toPtr<int32_t (*)(void)>()); in runAsVoidFunctionWrapper() 74 return runAsIntFunction(MainAddr.toPtr<int32_t (*)(int32_t)>(), in runAsIntFunctionWrapper()
|
H A D | ExecutorSharedMemoryMapperService.cpp | 165 if (mprotect(Segment.Addr.toPtr<void *>(), Segment.Size, NativeProt)) in initialize() 173 if (!VirtualProtect(Segment.Addr.toPtr<void *>(), Segment.Size, NativeProt, in initialize() 180 sys::Memory::InvalidateInstructionCache(Segment.Addr.toPtr<void *>(), in initialize() 194 Reservations[Reservation.toPtr<void *>()].Allocations.push_back(MinAddr); in initialize() 250 auto &R = Reservations[Base.toPtr<void *>()]; in release() 269 if (shmdt(Base.toPtr<void *>()) < 0) in release() 272 if (munmap(Base.toPtr<void *>(), Size) != 0) in release() 279 if (!UnmapViewOfFile(Base.toPtr<void *>())) in release() 288 Reservations.erase(Base.toPtr<void *>()); in release()
|
H A D | JITLoaderGDB.cpp | 85 appendJITDebugDescriptor(R.Start.toPtr<const char *>(), in llvm_orc_registerJITLoaderGDBAllocAction() 101 appendJITDebugDescriptor(R.Start.toPtr<const char *>(), in llvm_orc_registerJITLoaderGDBWrapper()
|
H A D | SimpleExecutorMemoryManager.cpp | 62 auto I = Allocations.find(Base.toPtr<void *>()); in finalize() 81 auto I = Allocations.find(Base.toPtr<void *>()); in finalize() 128 char *Mem = Seg.Addr.toPtr<char *>(); in finalize() 161 auto I = Allocations.find(Base.toPtr<void *>()); in deallocate()
|
H A D | RegisterEHFrames.cpp | 162 return llvm::orc::registerEHFrameSection(EHFrame.Start.toPtr<const void *>(), in registerEHFrameWrapper() 168 EHFrame.Start.toPtr<const void *>(), EHFrame.size()); in deregisterEHFrameWrapper()
|
H A D | SimpleExecutorDylibManager.cpp | 47 auto DL = sys::DynamicLibrary(H.toPtr<void *>()); in lookup()
|
H A D | JITLoaderVTune.cpp | 58 MethodMessage.method_load_address = MethodInfo.LoadAddr.toPtr<void *>(); in registerJITLoaderVTuneRegisterImpl()
|
H A D | SimpleRemoteEPCServer.cpp | 256 auto *Fn = TagAddr.toPtr<WrapperFnTy>(); in handleCallWrapper()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | SymbolTableListTraits.h | 94 return Par ? toPtr(Par->getValueSymbolTable()) : nullptr; in getSymTab() 105 static ValueSymbolTable *toPtr(ValueSymbolTable *P) { return P; } in toPtr() function 106 static ValueSymbolTable *toPtr(ValueSymbolTable &R) { return &R; } 104 static ValueSymbolTable *toPtr(ValueSymbolTable *P) { return P; } toPtr() function
|
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/tests/unit/ |
H A D | executor_address_test.cpp | 50 int *XPtr = XAddr.toPtr<int *>(); in TEST() 61 void (*FPtr)() = FAddr.toPtr<void()>(); in TEST() 81 EA.toPtr<void *>(ExecutorAddr::Tag(TagVal, TagOffset)); in TEST()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
H A D | ExecutorAddress.h | 89 toPtr(WrapFn &&Wrap = WrapFn()) const { 99 toPtr(WrapFn &&Wrap = WrapFn()) const {
|
H A D | WrapperFunctionUtils.h | 609 return (ObjAddr.toPtr<ClassT*>()->*M)(std::forward<ArgTs>(Args)...); in operator() 670 FnAddr.toPtr<FnTy *>()(ArgData.data(), ArgData.size())); in run()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
H A D | JITLinkMemoryManager.cpp | 426 Seg.WorkingMem = SegAddr.toPtr<char *>(); in allocate() 450 auto *FA = Alloc.release().toPtr<FinalizedAllocInfo *>(); in deallocate()
|
H A D | EHFrameSupport.cpp | 649 return orc::registerEHFrameSection(EHFrameSection.Start.toPtr<void *>(), in operator ()() 655 return orc::deregisterEHFrameSection(EHFrameSection.Start.toPtr<void *>(), in registerEHFrames()
|
/freebsd/contrib/llvm-project/llvm/tools/lli/ |
H A D | lli.cpp | 1161 auto EntryPoint = EntryPointSym.toPtr<EntryPointPtr>(); in runOrcJIT() 1175 auto MainFn = MainAddr.toPtr<MainFnTy *>(); in runOrcJIT()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
H A D | IndirectionUtils.h | 457 InitAddr.toPtr<void *>(); in createStubInternal()
|