def run(func, env): if not func.module.get_global("PyLong_AsLongLong"): func.module.link(py_capi.py_c_api_module) transform(LowerConversions, func) # run = partial(transform, LowerConversions)
def build_ckernels(func, jitted, trees, arguments): transformer = BuildCKernels(func, jitted, trees, arguments) transform(transformer, func) # Delete dead ops in reverse dominating order, so as to only delete ops # with 0 live uses for op in reversed(transformer.delete_later): op.delete()
def ckernel_transformer(func, jit_env): transformer = CKernelTransformer(func, jit_env['jitted'], jit_env['trees'], jit_env['arguments']) transform(transformer, func) # Delete dead ops in reverse dominating order, so as to only delete ops # with 0 live uses for op in reversed(transformer.delete_later): op.delete()
def run(func, env): strategies = env['strategies'] transform(CKernelImplementations(strategies), func)
def run(func, env): transform(CKernelImplementations(), func)
def run(func, env): if not env.get("runtime.conversion"): env["runtime.conversion"] = conversion_runtime() func.module.link(env["runtime.conversion"]) transform(LowerConversions(func, build_conversion_table()), func)