PIPS
|
Task generation. More...
#include "genC.h"
#include "linear.h"
#include "ri.h"
#include "ri-util.h"
#include "effects-util.h"
#include "gpu.h"
#include "accel-util.h"
#include "text.h"
#include "pipsdbm.h"
#include "pipsmake.h"
#include "resources.h"
#include "properties.h"
#include "misc.h"
#include "control.h"
#include "callgraph.h"
#include "effects.h"
#include "effects-simple.h"
#include "effects-generic.h"
#include "effects-convex.h"
#include "preprocessor.h"
#include "expressions.h"
#include "text-util.h"
#include "parser_private.h"
Go to the source code of this file.
Data Structures | |
struct | context_address_of_entity |
Functions | |
static statement | get_statement_pragma_register (entity e, bool address_of) |
static statement | get_statement_pragma_init () |
static statement | get_statement_pragma_shutdown () |
bool | address_of_entity_p (call c, struct context_address_of_entity *context) |
static bool | address_of_variable_is_taken (void *start, entity e) |
static void | scalar_to_array (reference r, entity e) |
static bool | add_pragma_to_sequence (sequence seq) |
bool | array_bounded_p (entity e) |
bool | add_shutdown_pragma_to_return (statement s) |
bool | generate_starpu_pragma (char *module_name) |
Task generation.
Definition in file starpu_pragma_generation.c.
Definition at line 108 of file starpu_pragma_generation.c.
References add_pragma_str_to_statement(), address_of_variable_is_taken(), asprintf, CAR, CDR, CONS, declaration_statement_p(), context_address_of_entity::e, ENDP, entity_array_p(), entity_to_expression(), entity_type, entity_user_name(), FOREACH, gen_context_recurse, gen_true2(), get_statement_pragma_register(), make_dimension(), make_integer_constant_entity(), make_plain_continue_statement(), NIL, pips_assert, POP, reference_domain, scalar_to_array(), sequence_statements, STATEMENT, statement_declarations, type_variable, type_variable_p, and variable_dimensions.
Referenced by generate_starpu_pragma().
Definition at line 167 of file starpu_pragma_generation.c.
References add_pragma_str_to_statement(), and return_statement_p().
Referenced by generate_starpu_pragma().
bool address_of_entity_p | ( | call | c, |
struct context_address_of_entity * | context | ||
) |
Definition at line 84 of file starpu_pragma_generation.c.
References call_arguments, call_function, CAR, ENTITY_ADDRESS_OF_P, EXPRESSION, and expression_to_entity().
Referenced by address_of_variable_is_taken().
Definition at line 94 of file starpu_pragma_generation.c.
References address_of_entity_p(), call_domain, context_address_of_entity::e, context_address_of_entity::found, gen_context_recurse, gen_null2(), and start.
Referenced by add_pragma_to_sequence().
Definition at line 152 of file starpu_pragma_generation.c.
References array_type_p(), context_address_of_entity::e, entity_type, FOREACH, type_variable, ultimate_type(), unbounded_dimension_p(), and variable_dimensions.
Referenced by generate_starpu_pragma().
bool generate_starpu_pragma | ( | char * | module_name | ) |
regions
Initialize set for each statement
Definition at line 174 of file starpu_pragma_generation.c.
References add_pragma_to_sequence(), add_shutdown_pragma_to_return(), array_bounded_p(), compute_callees(), db_get_memory_resource(), DB_PUT_MEMORY_RESOURCE, debug_off, debug_on, context_address_of_entity::e, entity_domain, entity_main_module_p(), entity_name, entity_user_name(), FOREACH, gen_filter_tabulated(), gen_null(), gen_recurse, gen_true(), get_current_module_entity(), get_current_module_statement(), get_statement_pragma_init(), get_statement_pragma_register(), get_statement_pragma_shutdown(), ifdebug, insert_statement(), load_cumulated_rw_effects_list(), local_name_to_top_level_entity(), module_name(), module_reorder(), pips_debug, print_regions(), reset_cumulated_rw_effects(), reset_current_module_entity(), reset_current_module_statement(), reset_proper_rw_effects(), sequence_domain, set_cumulated_rw_effects(), set_current_module_entity(), set_current_module_statement(), set_proper_rw_effects(), statement_domain, and top_level_entity_p().
|
static |
Definition at line 68 of file starpu_pragma_generation.c.
References add_pragma_str_to_statement(), and make_plain_continue_statement().
Referenced by generate_starpu_pragma().
Definition at line 56 of file starpu_pragma_generation.c.
References add_pragma_str_to_statement(), asprintf, entity_user_name(), and make_plain_continue_statement().
Referenced by add_pragma_to_sequence(), and generate_starpu_pragma().
|
static |
Definition at line 73 of file starpu_pragma_generation.c.
References add_pragma_str_to_statement(), and make_plain_continue_statement().
Referenced by generate_starpu_pragma().
Definition at line 100 of file starpu_pragma_generation.c.
References CONS, context_address_of_entity::e, ENDP, entity_to_expression(), make_integer_constant_entity(), NIL, pips_assert, reference_indices, and reference_variable.
Referenced by add_pragma_to_sequence().