[Orc] Provide correct Reservation address for slab allocations
authorAnubhab Ghosh <anubhabghosh.me@gmail.com>
Sat, 20 Aug 2022 20:13:20 +0000 (01:43 +0530)
committerAnubhab Ghosh <anubhabghosh.me@gmail.com>
Sun, 21 Aug 2022 11:06:37 +0000 (16:36 +0530)
commit0ecfee0b9eafd75627f37e2c460818bf41b39996
treea9d2c1bfa8a59ee7a0ed941226f10355ca421495
parent1134d3a03facccd75efc5385ba46918bef94fcb6
[Orc] Provide correct Reservation address for slab allocations

When slab allocator is used, the MappingBase is not necessarily
the same as the original reservation base as the allocation could
be a part of the whole reservation.

In this case the original reservation address needs to be passed to
ExecutorSharedMemoryMapperService to associate the new allocation
with the original reservation.

Differential Revision: https://reviews.llvm.org/D132313
llvm/lib/ExecutionEngine/Orc/MemoryMapper.cpp