Extend RTDyld API to enable optionally precomputing the total amount of memory

Press ? to show keyboard shortcuts.
Committed
lhamesFeb 12 2014, 1:30 PM
Parents
rL201258: Rename Windows.h to WindowsSupport.h to avoid ambiguity
Branches
Unknown
Tags
Unknown
Description

Extend RTDyld API to enable optionally precomputing the total amount of memory
required for all sections in a module. This can be useful when targets or
code-models place strict requirements on how sections must be laid out
in memory.

If RTDyldMemoryManger::needsToReserveAllocationSpace() is overridden to return
true then the JIT will call the following method on the memory manager, which
can be used to preallocate the necessary memory.

void RTDyldMemoryManager::reserveAllocationSpace(uintptr_t CodeSize,

uintptr_t DataSizeRO,
uintptr_t DataSizeRW)

Patch by Vaidas Gasiunas. Thanks very much Viadas!

rL201259

llvm/trunk/include/llvm/ExecutionEngine/RTDyldMemoryManager.h

Loading...

llvm/trunk/lib/ExecutionEngine/MCJIT/MCJIT.h

Loading...

llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp

Loading...

llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h

Loading...

llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp

Loading...

Add Comment