[PATCH] D147544: [BOLT] Move from RuntimeDyld to JITLink

Lang Hames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 4 12:03:04 PDT 2023


lhames added a comment.

> Design note: BOLT uses a JIT linker to perform what essentially is
> static linking. No linked code is ever executed; the result of linking
> is simply written back to an executable file. For this reason, I
> restricted myself to the use of the core JITLink library and avoided ORC
> as much as possible.

I'm very surprised to hear this. I guess at this point I should confess that I haven't looked closely at how Bolt uses the JIT APIs.

If you only need static linking, wouldn't `lld` be a better fit than the JIT APIs?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147544/new/

https://reviews.llvm.org/D147544



More information about the llvm-commits mailing list