https://github.com/numba/llvmlite/blob/main/examples/sum.py example still uses the LegacyPassManger syntax, which is no longer supported.