Example #1
0
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)
Example #2
0
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()
Example #3
0
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()
Example #4
0
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()
Example #5
0
def run(func, env):
    strategies = env['strategies']
    transform(CKernelImplementations(strategies), func)
Example #6
0
def run(func, env):
    transform(CKernelImplementations(), func)
Example #7
0
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)
Example #8
0
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)
Example #9
0
def run(func, env):
    strategies = env['strategies']
    transform(CKernelImplementations(strategies), func)