(context, builder, ty_arg)
return (ret_val_ptr, lir_val_type)
This function allocates argument to be used as return value of a native function
This function allocates argument to be used as return value of a native function
This function allocates argument to be used as return value of a native function
def alloc_native_value(context, builder, ty_arg):
    """ This function allocates argument to be used as return value of a native function """

    if isinstance(ty_arg, types.Number):
        native_arg_type = reduced_type_map.get(ty_arg, ty_arg)
    else:
        native_arg_type = types.voidptr

    lir_val_type = context.get_value_type(native_arg_type)
    ret_val_ptr = cgutils.alloca_once(builder, lir_val_type)

    return (ret_val_ptr, lir_val_type)
def alloc_native_value ( context , builder , ty_arg ) : if isinstance ( ty_arg , types . Number ) : native_arg_type = reduced_type_map . get ( ty_arg , ty_arg ) else : native_arg_type = types . voidptr lir_val_type = context . get_value_type ( native_arg_type ) ret_val_ptr = cgutils . alloca_once ( builder , lir_val_type ) return ( ret_val_ptr , lir_val_type )