[PATCH] D97694: [lli] Test debug support in RuntimeDyld with built-in functions

Stefan Gränitz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 1 09:46:43 PST 2021


sgraenitz added a comment.

I can imagine tests like these will be handy for testing advanced JIT features inside LLVM in the future. Adding the `-generate` flag with a hard-coded set of options was not my preferred solution, but all other attempts failed for portability reasons. I am happy to discuss ideas how to improve it.



================
Comment at: llvm/tools/lli/ExecutionUtils.cpp:92
+
+static LLIBuiltinFunctionGenerator *Generator = nullptr;
+
----------------
This global static pointer is working for the moment, but of course it's not exactly ideal. I need a better way to expose a member function callback. TPCIndirectionUtils offers writeResolverBlock(), but it only works with TPC. LocalTrampolinePool also uses resolver blocks, but I don't need the landing address resolution.

@lhames Can you think of a solution that also works for RuntimeDyld?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97694



More information about the llvm-commits mailing list