Is there a way to extract the IR or llvm piece of file while compiling a Numba file? Thanks.
I found it. Simply set: “NUMBA_DUMP_IR=1” before calling the function.
NUMBA_DUMP_IR=1 to print Numba intermediate IR
NUMBA_DUMP_LLVM=1 to print unoptimized LLVM IR
NUMBA_DUMP_OPTIMIZED=1 to print optimized LLVM IR
More about all the env variables Environment variables — Numba 0.52.0.dev0+274.g626b40e-py3.7-linux-x86_64.egg documentation