Skip the lowering pass?

Can I use Numba to patch a function definition at runtime ? My objective is to substitute a function call or expression with a customized implementation, based on runtime information, somewhat similar to the RewriteArrayExprs pass.

However, the catch is that the code can also use custom python objects / constructs heavily. In such cases, I intend to prevent Numba from generating the llvmlite representation, effectively bypassing the lowering pass.

I am fairly new to numba and I have been reading the dev docs for a while and I understand that the end result of numba’s compiler pass should be machine code. I seek insights into the feasibility of achieving this objective.

TIA!