[PATCH] D12607: [ExecutionEngine] Add to the C API possibility to create custom SectionMemoryManager
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 6 22:59:06 PDT 2015
lhames added a comment.
Hi Jauhien,
I don't think this is a good fit for the stable C API. To remain stable, we need to minimize the dependency on implementation details. This patch would add a lot of dependence on the behavior of SectionMemoryManager.
Are there any aspects that can't be satisfied by re-implementing SectionMemoryManager in C? (I know that may seem inconvenient, but it allows the client to remain stable, which is something SectionMemoryManager doesn't guarantee).
I think the big missing piece at the moment is the symbol lookup support (getSymbolAddress and getSymbolAddressInDylib). If that's what you need I would prefer to add a new variant of LLVMCreateSimpleMCJITMemoryManager that also supports overloading those functions.
http://reviews.llvm.org/D12607
More information about the llvm-commits
mailing list