PIPS
|
Go to the source code of this file.
Macros | |
#define | SB_LIST_VARIABLE(sb, list_var, txt_begin) |
#define SB_LIST_VARIABLE | ( | sb, | |
list_var, | |||
txt_begin | |||
) |
Definition at line 132 of file directives.c.
GENERIC_LOCAL_FUNCTION | ( | directives | , |
step_directives | |||
) |
Copyright 2007, 2008, 2009 Alain Muller, Frederique Silber-Chaussumier.
This file is part of STEP.
The program is distributed under the terms of the GNU General Public License.
void get_step_directive_name | ( | step_directive | drt, |
string * | directive_txt | ||
) |
Warning! Do not modify this file that is automatically generated!
Modify src/Libs/step/step-local.h instead, to add your own modifications. header file built by cproto step-local.h cproto-generated files directives.c
drt | rt |
directive_txt | irective_txt |
Definition at line 18 of file directives.c.
References assert, directive_txt, pips_debug, STEP_BARRIER, step_directive_type, STEP_DO, STEP_DO_NAME, STEP_MASTER, STEP_MASTER_NAME, STEP_PARALLEL, STEP_PARALLEL_DO, STEP_PARALLEL_DO_NAME, STEP_PARALLEL_NAME, STEP_SINGLE, STEP_SINGLE_NAME, STEP_THREADPRIVATE, strdup(), and string_undefined.
Referenced by generate_call_construct_begin_construct_end().
statement step_directive_basic_workchunk | ( | step_directive | d | ) |
Definition at line 286 of file directives.c.
References CAR, forloop_body, gen_length(), loop_body, pips_assert, pips_debug, STATEMENT, statement_block(), statement_forloop(), statement_forloop_p(), statement_loop(), statement_loop_p(), step_directive_block, step_directive_type, STEP_DO, and STEP_PARALLEL_DO.
Referenced by compute_directive_regions(), and step_print_directives_regions().
list step_directive_basic_workchunk_index | ( | step_directive | d | ) |
Definition at line 320 of file directives.c.
References assignment_expression_p(), call_arguments, CAR, CONS, ENTITY, entity_undefined_p, EXPRESSION, expression_syntax, expression_to_entity(), forloop_initialization, gen_length(), gen_nreverse(), init, loop_index, NIL, pips_assert, pips_debug, STATEMENT, statement_block(), statement_forloop(), statement_forloop_p(), statement_loop(), statement_loop_p(), step_directive_block, step_directive_type, STEP_DO, STEP_PARALLEL_DO, and syntax_call.
Referenced by step_compute_step_interlaced().
|
static |
Definition at line 404 of file directives.c.
References FOREACH, gen_append(), is_step_clause_private, NIL, pips_debug, STEP_CLAUSE, step_clause_private, step_clause_tag, and step_directive_clauses.
Referenced by step_private_p().
void step_directive_print | ( | step_directive | d | ) |
Definition at line 362 of file directives.c.
References assert, empty_comments_p(), fortran_module_p(), gen_length(), get_current_module_entity(), ifdebug, pips_debug, print_statement(), statement_undefined_p, step_directive_block, step_directive_clauses, step_directive_to_strings(), and step_directive_type.
Referenced by compile_rewrite(), compute_directive_regions(), and step_directives_print().
bool step_directive_to_strings | ( | step_directive | d, |
bool | is_fortran, | ||
string * | begin_txt, | ||
string * | end_txt | ||
) |
clause
transformation clause is not printed
is_fortran | s_fortran |
begin_txt | egin_txt |
end_txt | nd_txt |
Definition at line 147 of file directives.c.
References assert, concatenate(), directive_txt, end_directive(), FOREACH, ifdebug, is_step_clause_copyin, is_step_clause_firstprivate, is_step_clause_nowait, is_step_clause_private, is_step_clause_reduction, is_step_clause_schedule, is_step_clause_shared, is_step_clause_threadprivate, is_step_clause_transformation, list_undefined, list_undefined_p, MAP_ENTITY_INT_MAP, pips_internal_error, printf(), SB_LIST_VARIABLE, set_add_element(), set_append_list(), set_make(), set_pointer, STEP_BARRIER, STEP_CLAUSE, step_clause_copyin, step_clause_firstprivate, step_clause_private, step_clause_reduction, step_clause_schedule, step_clause_shared, step_clause_tag, step_clause_threadprivate, step_directive_clauses, step_directive_type, STEP_DO, STEP_MASTER, STEP_PARALLEL, STEP_PARALLEL_DO, STEP_SINGLE, STEP_THREADPRIVATE, STEP_UNDEF_REDUCE, strdup(), STRING, string_buffer_append(), string_buffer_cat(), string_buffer_free_all(), string_buffer_make(), string_buffer_to_string(), and string_undefined.
Referenced by compile_omp(), and step_directive_print().
void step_directive_type_print | ( | step_directive | drt | ) |
drt | rt |
Definition at line 51 of file directives.c.
References pips_debug, STEP_BARRIER, step_directive_type, STEP_DO, STEP_MASTER, STEP_PARALLEL, STEP_PARALLEL_DO, and STEP_THREADPRIVATE.
Referenced by compile_body().
stmt | tmt |
Definition at line 121 of file directives.c.
Referenced by compile_filter(), compile_rewrite(), compute_SENDRECV_regions(), end_omp_construct(), get_current_step_directive(), sequence_rewrite(), statement_filter(), step_compute_CHAINS_DG_SENDRECV_regions(), and step_statement_path_first_directive_statement().
void step_directives_init | ( | bool | first_p | ) |
first_p | irst_p |
Definition at line 88 of file directives.c.
References db_get_memory_resource(), entity_user_name(), get_current_module_entity(), module_name(), and pips_debug.
Referenced by step_analyse(), step_compile_analysed_module(), and step_parser().
step_directive step_directives_load | ( | statement | stmt | ) |
stmt | tmt |
Definition at line 116 of file directives.c.
Referenced by compile_filter(), compile_rewrite(), compute_SENDRECV_regions(), end_omp_construct(), get_current_step_directive(), and step_private_p().
void step_directives_print | ( | void | ) |
Definition at line 79 of file directives.c.
References assert, statement_undefined_p, step_directive_print(), and STEP_DIRECTIVES_MAP.
Referenced by step_parser().
void step_directives_reset | ( | void | ) |
Definition at line 103 of file directives.c.
Referenced by step_analyse(), and step_compile_analysed_module().
void step_directives_save | ( | void | ) |
Definition at line 108 of file directives.c.
References DB_PUT_MEMORY_RESOURCE, entity_user_name(), get_current_module_entity(), and module_name().
Referenced by step_parser().
void step_directives_store | ( | statement | stmt, |
step_directive | d | ||
) |
stmt | tmt |
Definition at line 126 of file directives.c.
References assert, and statement_block_p.
Referenced by new_step_directive().
stmt | tmt |
Definition at line 424 of file directives.c.
References gen_in_list_p(), pips_debug, step_directive_omp_get_private_entities(), and step_directives_load().
Referenced by create_step_regions().