llvm-project
llvm-project copied to clipboard
Move JITLink from StringRefs to SymbolStringPtrs
JITLink is using the lllvm::StringRef type in many places where llvm::orc::SymbolStringPtr would result in better performance and memory footprint, e.g. https://github.com/llvm/llvm-project/blob/77480556c41fbca36b918323c69cb77f8e02b56c/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h#L648-L649
In such cases the string should be interned in a llvm::orc::SymbolStringPool and referenced via llvm::orc::SymbolStringPtr.
@llvm/issue-subscribers-orcjit
@llvm/issue-subscribers-good-first-issue
@llvm/issue-subscribers-jitlink
I'm gonna try and fix this. Will report back on progress soon.
@moazin Thanks for looking into this! If you have questions, feel free to reach out in the #JIT Channel in the LLVM Discord: https://discord.gg/5H8JSRe
There hadn't been any movement on this for a while. So I have a review up for it now. Sorry if I trod on any toes.
Hi Jared, thanks for working on this. Can you maybe link your review here?
@weliveindetail -- The review is at https://reviews.llvm.org/D132988.
There don't seem to be any updates to the review at all recently, is it possible to take over this review?
I reached out to @jaredwy and he said that he's almost done with the work and hopes to land it soon.
Hey @weliveindetail - I'm very interested in what this PR can help out Julia's rubtime for memory footprint.
Is there anyway I can help push this along?