From 595a3a2d5b3ff3b645a547b8fe473e00ca2a1e59 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sat, 15 Jun 2024 17:14:43 -0400 Subject: [PATCH] xo-pyjit: + Jit.machgen_current_module --- src/pyjit/pyjit.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pyjit/pyjit.cpp b/src/pyjit/pyjit.cpp index c69558a1..69defaec 100644 --- a/src/pyjit/pyjit.cpp +++ b/src/pyjit/pyjit.cpp @@ -52,6 +52,9 @@ namespace xo { * RC 14jun2024 - I think this is true, modulo use of llvm resource trackers. */ py::return_value_policy::reference_internal) + .def("machgen_current_module", &Jit::machgen_current_module, + py::doc("Make current module available for execution via the jit.\n" + "Adds all functions generated since last call to this method.")) .def("lookup_dbl_dbl_fn", [](Jit & jit, const std::string & symbol) { auto llvm_addr = jit.lookup_symbol(symbol);