Home
last modified time | relevance | path

Searched refs:ExecutorAddr (Results 1 – 25 of 94) sorted by relevance

1234

/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DExecutorAddress.h30 class ExecutorAddr {
40 return ExecutorAddr( in fromPtr()
76 friend bool operator<(const ExecutorAddr &LHS, const ExecutorAddr &RHS) {
84 friend bool operator>(const ExecutorAddr &LHS, const ExecutorAddr &RHS) {
100 ExecutorAddr operator++(int) { return ExecutorAddr(Addr++); }
101 ExecutorAddr operator--(int) { return ExecutorAddr(Addr--); }
124 inline ExecutorAddr operator+(const ExecutorAddr &LHS,
136 inline ExecutorAddr operator-(const ExecutorAddr &LHS,
150 ExecutorAddrRange(ExecutorAddr Start, ExecutorAddr End) in ExecutorAddrRange()
171 ExecutorAddr Start;
[all …]
/llvm-project-15.0.7/compiler-rt/lib/orc/
H A Dexecutor_address.h40 class ExecutorAddr {
48 return ExecutorAddr( in fromPtr()
68 friend bool operator==(const ExecutorAddr &LHS, const ExecutorAddr &RHS) {
76 friend bool operator<(const ExecutorAddr &LHS, const ExecutorAddr &RHS) {
84 friend bool operator>(const ExecutorAddr &LHS, const ExecutorAddr &RHS) {
100 ExecutorAddr operator++(int) { return ExecutorAddr(Addr++); }
101 ExecutorAddr operator--(int) { return ExecutorAddr(Addr++); }
124 inline ExecutorAddr operator+(const ExecutorAddr &LHS,
138 ExecutorAddrRange(ExecutorAddr Start, ExecutorAddr End) in ExecutorAddrRange()
165 ExecutorAddr Start;
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/
H A DMemoryMapper.h38 ExecutorAddr MappingBase;
95 void deinitialize(ArrayRef<ExecutorAddr> Allocations,
98 void release(ArrayRef<ExecutorAddr> Reservations,
111 std::vector<ExecutorAddr> Allocations;
125 ExecutorAddr Instance;
126 ExecutorAddr Reserve;
127 ExecutorAddr Initialize;
128 ExecutorAddr Deinitialize;
129 ExecutorAddr Release;
149 void release(ArrayRef<ExecutorAddr> Reservations,
[all …]
H A DMachOPlatform.h35 std::vector<ExecutorAddr> DepHeaders;
162 DenseMap<JITDylib *, ExecutorAddr> HeaderAddrs;
167 unique_function<void(Expected<ExecutorAddr>)>;
192 ExecutorAddr JDHeaderAddr);
212 ExecutorAddr orc_rt_macho_platform_bootstrap;
213 ExecutorAddr orc_rt_macho_platform_shutdown;
214 ExecutorAddr orc_rt_macho_register_ehframe_section;
215 ExecutorAddr orc_rt_macho_deregister_ehframe_section;
216 ExecutorAddr orc_rt_macho_register_jitdylib;
217 ExecutorAddr orc_rt_macho_deregister_jitdylib;
[all …]
H A DEPCGenericJITLinkMemoryManager.h31 ExecutorAddr Allocator;
32 ExecutorAddr Reserve;
33 ExecutorAddr Finalize;
34 ExecutorAddr Deallocate;
57 void completeAllocation(ExecutorAddr AllocAddr, jitlink::BasicLayout BL,
73 return SPSArgList<SPSExecutorAddr>::size(ExecutorAddr(FA.getAddress())); in size()
80 OB, ExecutorAddr(FA.getAddress())); in serialize()
85 ExecutorAddr A; in deserialize()
H A DEPCGenericRTDyldMemoryManager.h30 ExecutorAddr Instance;
31 ExecutorAddr Reserve;
32 ExecutorAddr Finalize;
33 ExecutorAddr Deallocate;
34 ExecutorAddr RegisterEHFrame;
35 ExecutorAddr DeregisterEHFrame;
89 ExecutorAddr RemoteAddr;
111 ExecutorAddr NextAddr);
119 std::vector<ExecutorAddr> FinalizedAllocs;
H A DEPCGenericDylibManager.h33 ExecutorAddr Instance;
34 ExecutorAddr Open;
35 ExecutorAddr Lookup;
52 Expected<std::vector<ExecutorAddr>> lookup(tpctypes::DylibHandle H,
56 Expected<std::vector<ExecutorAddr>>
H A DExecutorProcessControl.h175 ExecutorAddr JITDispatchFunction;
176 ExecutorAddr JITDispatchContext;
222 const StringMap<ExecutorAddr> &getBootstrapSymbolsMap() const { in getBootstrapSymbolsMap()
259 virtual Expected<int32_t> runAsMain(ExecutorAddr MainFnAddr,
270 virtual void callWrapperAsync(ExecutorAddr WrapperFnAddr,
342 Error callSPSWrapper(ExecutorAddr WrapperFnAddr, in callSPSWrapper()
366 StringMap<ExecutorAddr> BootstrapSymbols;
395 Expected<int32_t> runAsMain(ExecutorAddr MainFnAddr, in runAsMain()
400 void callWrapperAsync(ExecutorAddr WrapperFnAddr, in callWrapperAsync()
434 Expected<int32_t> runAsMain(ExecutorAddr MainFnAddr,
[all …]
H A DSimpleRemoteEPC.h77 Expected<int32_t> runAsMain(ExecutorAddr MainFnAddr,
80 void callWrapperAsync(ExecutorAddr WrapperFnAddr,
87 handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, ExecutorAddr TagAddr,
103 ExecutorAddr TagAddr, ArrayRef<char> ArgBytes);
105 Error handleSetup(uint64_t SeqNo, ExecutorAddr TagAddr,
109 Error handleResult(uint64_t SeqNo, ExecutorAddr TagAddr,
111 void handleCallWrapper(uint64_t RemoteSeqNo, ExecutorAddr TagAddr,
131 ExecutorAddr RunAsMainAddr;
H A DELFNixPlatform.h37 ELFNixJITDylibInitializers(std::string Name, ExecutorAddr DSOHandleAddress) in ELFNixJITDylibInitializers()
41 ExecutorAddr DSOHandleAddress;
184 using SendSymbolAddressFn = unique_function<void(Expected<ExecutorAddr>)>;
207 ExecutorAddr Handle);
209 void rt_lookupSymbol(SendSymbolAddressFn SendResult, ExecutorAddr Handle,
228 ExecutorAddr orc_rt_elfnix_platform_bootstrap;
229 ExecutorAddr orc_rt_elfnix_platform_shutdown;
230 ExecutorAddr orc_rt_elfnix_register_object_sections;
231 ExecutorAddr orc_rt_elfnix_create_pthread_key;
241 DenseMap<ExecutorAddr, JITDylib *> HandleAddrToJITDylib;
/llvm-project-15.0.7/llvm/unittests/ExecutionEngine/Orc/
H A DMemoryMapperTest.cpp27 Expected<ExecutorAddr> initialize(MemoryMapper &M, in initialize()
29 std::promise<MSVCPExpected<ExecutorAddr>> P; in initialize()
55 [](ExecutorAddr A) -> Error { in incrementWrapper()
101 ExecutorAddr::fromPtr(incrementWrapper), in TEST()
102 ExecutorAddr::fromPtr(&InitializeCounter))), in TEST()
104 ExecutorAddr::fromPtr(incrementWrapper), in TEST()
125 ExecutorAddr::fromPtr(incrementWrapper), in TEST()
128 ExecutorAddr::fromPtr(incrementWrapper), in TEST()
151 std::vector<ExecutorAddr> DeinitAddr = {*Init1}; in TEST()
177 ExecutorAddr::fromPtr(incrementWrapper), in TEST()
[all …]
H A DEPCGenericMemoryAccessTest.cpp48 FAs.WriteUInt8s = ExecutorAddr::fromPtr( in TEST()
50 FAs.WriteUInt16s = ExecutorAddr::fromPtr( in TEST()
52 FAs.WriteUInt32s = ExecutorAddr::fromPtr( in TEST()
54 FAs.WriteUInt64s = ExecutorAddr::fromPtr( in TEST()
56 FAs.WriteBuffers = ExecutorAddr::fromPtr(&testWriteBuffers); in TEST()
68 MemAccess->writeUInt8s({{ExecutorAddr::fromPtr(&Test_UInt8_1), 1}, in TEST()
69 {ExecutorAddr::fromPtr(&Test_UInt8_2), 0xFE}}); in TEST()
76 MemAccess->writeUInt16s({{ExecutorAddr::fromPtr(&Test_UInt16), 1}}); in TEST()
81 MemAccess->writeUInt32s({{ExecutorAddr::fromPtr(&Test_UInt32), 1}}); in TEST()
86 MemAccess->writeUInt64s({{ExecutorAddr::fromPtr(&Test_UInt64), 1}}); in TEST()
[all …]
H A DExecutorAddressTest.cpp20 ExecutorAddr Default; in TEST()
21 ExecutorAddr Null(0); in TEST()
22 ExecutorAddr NonNull(1); in TEST()
33 ExecutorAddr A1(1), A2(2); in TEST()
44 auto XAddr = ExecutorAddr::fromPtr(&X); in TEST()
55 auto FAddr = ExecutorAddr::fromPtr(F); in TEST()
62 ExecutorAddr A0(0), A1(1), A2(2), A3(3); in TEST()
H A DEPCGenericJITLinkMemoryManagerTest.cpp31 Expected<ExecutorAddr> reserve(uint64_t Size) { in reserve()
38 return ExecutorAddr::fromPtr(MB.base()); in reserve()
57 Error deallocate(std::vector<ExecutorAddr> &Bases) { in deallocate()
111 SAs.Allocator = ExecutorAddr::fromPtr(&SA); in TEST()
112 SAs.Reserve = ExecutorAddr::fromPtr(&testReserve); in TEST()
113 SAs.Finalize = ExecutorAddr::fromPtr(&testFinalize); in TEST()
114 SAs.Deallocate = ExecutorAddr::fromPtr(&testDeallocate); in TEST()
128 ExecutorAddr TargetAddr(SegInfo.Addr); in TEST()
H A DSharedMemoryMapperTest.cpp28 [](ExecutorAddr A) -> Error { in incrementWrapper()
47 StringMap<ExecutorAddr> Map; in TEST()
90 ExecutorAddr::fromPtr(incrementWrapper), in TEST()
91 ExecutorAddr::fromPtr(&InitializeCounter))), in TEST()
93 ExecutorAddr::fromPtr(incrementWrapper), in TEST()
94 ExecutorAddr::fromPtr(&DeinitializeCounter)))}); in TEST()
100 Mapper->initialize(AI, [&, Reservation](Expected<ExecutorAddr> Result) { in TEST()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DOrcRTBootstrap.cpp52 [](ExecutorAddr MainAddr, in runAsMainWrapper()
59 void addTo(StringMap<ExecutorAddr> &M) { in addTo()
60 M[rt::MemoryWriteUInt8sWrapperName] = ExecutorAddr::fromPtr( in addTo()
63 M[rt::MemoryWriteUInt16sWrapperName] = ExecutorAddr::fromPtr( in addTo()
66 M[rt::MemoryWriteUInt32sWrapperName] = ExecutorAddr::fromPtr( in addTo()
69 M[rt::MemoryWriteUInt64sWrapperName] = ExecutorAddr::fromPtr( in addTo()
73 ExecutorAddr::fromPtr(&writeBuffersWrapper); in addTo()
75 ExecutorAddr::fromPtr(&llvm_orc_registerEHFrameSectionWrapper); in addTo()
77 ExecutorAddr::fromPtr(&llvm_orc_deregisterEHFrameSectionWrapper); in addTo()
78 M[rt::RunAsMainWrapperName] = ExecutorAddr::fromPtr(&runAsMainWrapper); in addTo()
H A DExecutorSharedMemoryMapperService.cpp53 Expected<std::pair<ExecutorAddr, std::string>>
130 ExecutorAddr MinAddr(~0ULL); in initialize()
189 const std::vector<ExecutorAddr> &Bases) { in deinitialize()
209 const std::vector<ExecutorAddr> &Bases) { in release()
214 std::vector<ExecutorAddr> AllocAddrs; in release()
267 std::vector<ExecutorAddr> ReservationAddrs; in shutdown()
283 StringMap<ExecutorAddr> &M) { in addBootstrapSymbols()
285 ExecutorAddr::fromPtr(this); in addBootstrapSymbols()
287 ExecutorAddr::fromPtr(&reserveWrapper); in addBootstrapSymbols()
289 ExecutorAddr::fromPtr(&initializeWrapper); in addBootstrapSymbols()
[all …]
H A DSimpleExecutorDylibManager.cpp42 Expected<std::vector<ExecutorAddr>>
45 std::vector<ExecutorAddr> Result; in lookup()
61 Result.push_back(ExecutorAddr()); in lookup()
79 Result.push_back(ExecutorAddr::fromPtr(Addr)); in lookup()
99 StringMap<ExecutorAddr> &M) { in addBootstrapSymbols()
100 M[rt::SimpleExecutorDylibManagerInstanceName] = ExecutorAddr::fromPtr(this); in addBootstrapSymbols()
102 ExecutorAddr::fromPtr(&openWrapper); in addBootstrapSymbols()
104 ExecutorAddr::fromPtr(&lookupWrapper); in addBootstrapSymbols()
H A DSimpleRemoteEPCServer.cpp54 StringMap<ExecutorAddr> SimpleRemoteEPCServer::defaultBootstrapSymbols() { in defaultBootstrapSymbols()
55 StringMap<ExecutorAddr> DBS; in defaultBootstrapSymbols()
62 ExecutorAddr TagAddr, in handleMessage()
152 uint64_t SeqNo, ExecutorAddr TagAddr, in sendMessage()
190 StringMap<ExecutorAddr> BootstrapSymbols) { in sendSetupMessage()
207 EI.BootstrapSymbols[ExecutorSessionObjectName] = ExecutorAddr::fromPtr(this); in sendSetupMessage()
219 return sendMessage(SimpleRemoteEPCOpcode::Setup, 0, ExecutorAddr(), in sendSetupMessage()
224 uint64_t SeqNo, ExecutorAddr TagAddr, in handleResult()
245 uint64_t RemoteSeqNo, ExecutorAddr TagAddr, in handleCallWrapper()
254 ExecutorAddr(), in handleCallWrapper()
[all …]
H A DSimpleExecutorMemoryManager.cpp24 Expected<ExecutorAddr> SimpleExecutorMemoryManager::allocate(uint64_t Size) { in allocate()
33 return ExecutorAddr::fromPtr(MB.base()); in allocate()
37 ExecutorAddr Base(~0ULL); in finalize()
71 ExecutorAddr AllocEnd = Base + ExecutorAddrDiff(AllocSize); in finalize()
119 ExecutorAddr SegEnd = Seg.Addr + ExecutorAddrDiff(Seg.Size); in finalize()
152 const std::vector<ExecutorAddr> &Bases) { in deallocate()
201 StringMap<ExecutorAddr> &M) { in addBootstrapSymbols()
202 M[rt::SimpleExecutorMemoryManagerInstanceName] = ExecutorAddr::fromPtr(this); in addBootstrapSymbols()
204 ExecutorAddr::fromPtr(&reserveWrapper); in addBootstrapSymbols()
206 ExecutorAddr::fromPtr(&finalizeWrapper); in addBootstrapSymbols()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/
H A DExecutorSharedMemoryMapperService.h32 Expected<std::pair<ExecutorAddr, std::string>> reserve(uint64_t Size);
33 Expected<ExecutorAddr> initialize(ExecutorAddr Reservation,
36 Error deinitialize(const std::vector<ExecutorAddr> &Bases);
37 Error release(const std::vector<ExecutorAddr> &Bases);
40 void addBootstrapSymbols(StringMap<ExecutorAddr> &M) override;
46 using AllocationMap = DenseMap<ExecutorAddr, Allocation>;
50 std::vector<ExecutorAddr> Allocations;
H A DSimpleRemoteEPCServer.h67 StringMap<ExecutorAddr> &bootstrapSymbols() { return BootstrapSymbols; } in bootstrapSymbols()
79 StringMap<ExecutorAddr> BootstrapSymbols;
83 static StringMap<ExecutorAddr> defaultBootstrapSymbols();
133 handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, ExecutorAddr TagAddr,
142 ExecutorAddr TagAddr, ArrayRef<char> ArgBytes);
144 Error sendSetupMessage(StringMap<ExecutorAddr> BootstrapSymbols);
146 Error handleResult(uint64_t SeqNo, ExecutorAddr TagAddr,
148 void handleCallWrapper(uint64_t RemoteSeqNo, ExecutorAddr TagAddr,
/llvm-project-15.0.7/compiler-rt/lib/orc/unittests/
H A Dexecutor_address_test.cpp25 ExecutorAddr Default; in TEST()
26 ExecutorAddr Null(0); in TEST()
27 ExecutorAddr NonNull(1); in TEST()
38 ExecutorAddr A1(1), A2(2); in TEST()
49 auto XAddr = ExecutorAddr::fromPtr(&X); in TEST()
56 ExecutorAddr A0(0), A1(1), A2(2), A3(3); in TEST()
81 ExecutorAddr Addr(RawAddr); in TEST()
83 EXPECT_EQ(std::hash<uint64_t>()(RawAddr), std::hash<ExecutorAddr>()(Addr)); in TEST()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DEPCGenericDylibManager.cpp50 return MemberSerialization::size(ExecutorAddr(LR.Handle), LR.Symbols); in size()
55 return MemberSerialization::serialize(OB, ExecutorAddr(LR.Handle), in serialize()
84 Expected<std::vector<ExecutorAddr>>
87 Expected<std::vector<ExecutorAddr>> Result((std::vector<ExecutorAddr>())); in lookup()
95 Expected<std::vector<ExecutorAddr>>
98 Expected<std::vector<ExecutorAddr>> Result((std::vector<ExecutorAddr>())); in lookup()
/llvm-project-15.0.7/llvm/unittests/ExecutionEngine/JITLink/
H A DLinkGraphTests.cpp79 orc::ExecutorAddr B1Addr(0x1000); in TEST()
96 orc::ExecutorAddr B1Addr(0x1000); in TEST()
98 orc::ExecutorAddr B2Addr(0x1000); in TEST()
106 orc::ExecutorAddr B3Addr(0x3000); in TEST()
108 orc::ExecutorAddr B4Addr(0x4000); in TEST()
149 orc::ExecutorAddr BAddr(0x1000); in TEST()
266 orc::ExecutorAddr B1Addr(0x1000); in TEST()
313 orc::ExecutorAddr B1Addr(0x1000); in TEST()
315 orc::ExecutorAddr B2Addr(0x2000); in TEST()
317 orc::ExecutorAddr B3Addr(0x3000); in TEST()
[all …]

1234