Ejemplo n.º 1
0
def execute(ast, M):
    assert (len(M.entry_points) == 1)
    entry_point = M.entry_points[0]
    backend_ast = conversions.front_to_back_node(ast)
    c = BC.Compiler(entry_point, M.tag)
    result = c(backend_ast)
    M.compiler_output = result
    M.wrap_info = (BC.hash(), (BC.wrap_result_type(), BC.wrap_name()),
                   zip(BC.wrap_arg_types(), BC.wrap_arg_names()))
    return []
Ejemplo n.º 2
0
def execute(ast, M):
    assert(len(M.entry_points) == 1)
    entry_point = M.entry_points[0]
    backend_ast = conversions.front_to_back_node(ast)
    c = BC.Compiler(entry_point, M.tag)
    result = c(backend_ast)
    M.compiler_output = result
    M.wrap_info = (BC.hash(), (BC.wrap_result_type(), BC.wrap_name()),
                   zip(BC.wrap_arg_types(), BC.wrap_arg_names()))
    return []