def create_pass_builder(tm, opt=2, loop_vectorize=False,
                        slp_vectorize=False):
    """
    Create an LLVM pass builder with the desired optimisation level and options.
    """
    pto = llvm.create_pipeline_tuning_options()
    pto.speed_level = opt
    pto.slp_vectorization = slp_vectorize
    pto.loop_vectorization = loop_vectorize

    # FIXME: Enabled from llvm 16
    # pto.inlining_threshold = _inlining_threshold(opt)
    return llvm.create_pass_builder(tm, pto)

    Create an LLVM pass builder with the desired optimisation level and options.
    
numba/core/llvm_bindings.py