[llvm-bugs] [Bug 52503] New: Improve llvm-jitlink test infrastructure for allocation actions.
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Nov 14 12:04:30 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=52503
Bug ID: 52503
Summary: Improve llvm-jitlink test infrastructure for
allocation actions.
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: OrcJIT
Assignee: unassignedbugs at nondot.org
Reporter: lhames at gmail.com
CC: 1101.debian at gmail.com, llvm-bugs at lists.llvm.org
Allocation actions are run during JIT memory finalization and deallocation. The
code for these actions may be in the ORC runtime. This makes them an awkward
fit for llvm-jitlink -noexec tests, which (1) are meant to be able to run on
all platforms, including platforms that can't execute the code being jit-linked
at all (e.g. arm64 tests running on an x86-64 tester), and (2) ideally
shouldn't assume that we have a built ORC runtime.
We could solve this by:
(1) Adding a jitlink-test-environment dylib to the build that provides mocks of
the required actions.
(2) Add a new "add-executor-mangled-alias <name>" option to llvm-jitlink which
adds aliases of the form executor_mangle(<name>) -> Dylib::lookup(<name>) to
the session.
This will cause allocation actions to be redirected to code executable on the
host and we can use this to print debugging output that can be used to verify
that the required actions were run.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211114/04908ad5/attachment.html>
More information about the llvm-bugs
mailing list