PIPS
|
Go to the source code of this file.
Variables | |
static statement | current_statement = statement_undefined |
static pragma | current_pragma = pragma_undefined |
static int | current_transform = -1 |
step_directive begin_omp_construct | ( | int | type, |
string | s | ||
) |
In C, these OpenMP pragmas are already supported by blocks: no block conversion needed
Definition at line 159 of file parser.c.
References _FALLTHROUGH_, c_module_p(), CONS, current_statement, empty_comments, empty_extensions(), entity_empty_label(), fortran_module_p(), get_current_module_entity(), insert_optional_pragma(), instruction_to_statement(), make_empty_block_statement(), make_instruction_block(), move_statement_attributes(), new_step_directive(), NIL, pips_assert, pips_debug, pips_user_error, STATEMENT, statement_comments, statement_declarations, statement_decls_text, statement_extensions, statement_forloop_p(), statement_instruction, statement_label, statement_loop_p(), statement_sequence(), STEP_BARRIER, STEP_DO, STEP_MASTER, STEP_PARALLEL, STEP_PARALLEL_DO, STEP_SINGLE, and STEP_THREADPRIVATE.
DEFINE_LOCAL_STACK | ( | step_blocks | , |
sequence | |||
) |
step_directive end_omp_construct | ( | int | type | ) |
suppression du CONTINUE portant le pragma optionnel dans le futur block
Definition at line 248 of file parser.c.
References CAR, empty_statement_or_labelless_continue_p(), fortran_module_p(), gen_length(), gen_nreverse(), get_current_module_entity(), get_current_step_directive(), pips_debug, pips_user_error, POP, sequence_statements, STATEMENT, statement_block(), statement_loop_p(), statement_sequence(), step_directive_block, step_directive_type, step_directive_undefined, step_directive_undefined_p, step_directives_bound_p(), step_directives_load(), STEP_DO, and STEP_PARALLEL_DO.
passage de name a NAME
determiner le nom avec le bon scope...
name | ame |
Definition at line 67 of file parser.c.
References c_module_p(), code_declarations, compilation_unit_of_module(), concatenate(), current_statement, entity_code(), entity_domain, entity_name, entity_undefined, entity_undefined_p, entity_user_name(), FOREACH, fortran_module_p(), free(), full_name, gen_find_tabulated(), gen_get_ancestor(), get_current_module_entity(), get_current_module_name(), MODULE_SEP_STRING, pips_debug, pips_user_error, statement_declarations, statement_domain, strdup(), and TOP_LEVEL_MODULE_NAME.
Referenced by step_add_to_ident_list().
|
static |
Definition at line 382 of file parser.c.
References CAR, ENDP, fortran_module_p(), get_current_module_entity(), pips_assert, sequence_statements, STATEMENT, statement_sequence(), statement_sequence_p(), STEP_DEBUG_STATEMENT, step_directive_undefined, step_directives_bound_p(), and step_directives_load().
Referenced by end_omp_construct().
void insert_optional_pragma | ( | int | type | ) |
Definition at line 46 of file parser.c.
References add_pragma_str_to_statement(), current_statement, gen_get_ancestor(), gen_insert_after(), make_plain_continue_statement(), pips_assert, pips_user_error, statement_block(), statement_block_p, statement_domain, STEP_DO, and STEP_PARALLEL_DO.
Referenced by begin_omp_construct().
|
static |
Functions used for gen_multi_recurse.
Definition at line 322 of file parser.c.
References add_pragma_str_to_statement(), concatenate(), CONS, current_transform, make_step_clause_transformation(), make_step_directive(), NIL, pips_assert, pips_debug, reset_step_transform(), sequence_statements, STATEMENT, statement_block_p, STEP_CLAUSE, STEP_DEBUG_STATEMENT, step_directives_store(), STEP_SENTINELLE, and strdup().
Referenced by begin_omp_construct().
|
static |
Definition at line 352 of file parser.c.
References gen_length(), pips_debug, and sequence_statements.
Referenced by sequence_filter(), statement_filter(), and statement_rewrite().
void remove_old_pragma | ( | void | ) |
Definition at line 139 of file parser.c.
References current_pragma, current_statement, EXTENSION, extension_pragma, extensions_extension, FOREACH, gen_extension_cons(), gen_nreverse(), NIL, pips_assert, pragma_undefined_p, statement_extensions, and statement_undefined_p.
|
static |
Definition at line 362 of file parser.c.
References current_transform, get_string_property(), pips_debug, STEP_DEFAULT_TRANSFORMATION_HYBRID_TXT, STEP_DEFAULT_TRANSFORMATION_MPI_TXT, STEP_DEFAULT_TRANSFORMATION_OMP_TXT, STEP_TRANSFORMATION_HYBRID, STEP_TRANSFORMATION_MPI, STEP_TRANSFORMATION_OMP, and STEP_TRANSFORMATION_SEQ.
Referenced by new_step_directive(), and step_pragma_handle().
|
static |
Definition at line 536 of file parser.c.
References make_sequence(), NIL, pips_debug, and print_step_blocks().
Referenced by step_directive_parser().
|
static |
Definition at line 547 of file parser.c.
References CAR, fortran_module_p(), free_sequence(), gen_free_list(), gen_length(), gen_nreverse(), get_current_module_entity(), NIL, pips_debug, pips_user_error, sequence_statements, sequence_undefined_p, STATEMENT, and step_directives_bound_p().
Referenced by step_directive_parser().
void set_current_transform | ( | int | transform | ) |
Functions called from the BISON parser.
First part of user prologue.
parser.c
transform | ransform |
Definition at line 41 of file parser.c.
References current_transform.
For fortran programs, converting comments into pragmas
Definition at line 448 of file parser.c.
References CONS, empty_comments, empty_extensions(), ENDP, entity_empty_label(), extensions_extension, fortran_module_p(), gen_get_ancestor(), get_current_module_entity(), instruction_to_statement(), make_instruction_block(), move_statement_attributes(), NIL, pips_assert, pips_debug, print_step_blocks(), sequence_statements, STATEMENT, statement_block_p, statement_comments, statement_declarations, statement_decls_text, statement_domain, statement_extensions, statement_instruction, statement_label, step_comment2pragma_handle(), STEP_DEBUG_STATEMENT, step_directives_bound_p(), and step_pragma_handle().
Referenced by step_directive_parser().
|
static |
Definition at line 521 of file parser.c.
References pips_debug, print_step_blocks(), and STEP_DEBUG_STATEMENT.
Referenced by step_directive_parser().
Definition at line 1901 of file step_bison_parser.c.
References concatenate(), free(), ifdebug, pips_debug, pragma_str_original, pragma_string, step_lexerparse(), strdup(), and yydebug.
Referenced by step_pragma_handle().
void step_comment2pragma_handle | ( | statement | stmt | ) |
Referenced by statement_filter(), and step_directive_parser().
|
static |
For fortran programs, converting comments into pragmas into declaration txt
Definition at line 577 of file parser.c.
References fortran_module_p(), gen_multi_recurse(), get_current_module_entity(), sequence_domain, sequence_filter(), sequence_rewrite(), statement_domain, statement_filter(), statement_rewrite(), statement_undefined, and step_comment2pragma_handle().
Referenced by step_parser().
bool step_parser | ( | const char * | module_name | ) |
module_name | odule_name |
Definition at line 594 of file parser.c.
References CONS, db_get_memory_resource(), DB_PUT_MEMORY_RESOURCE, debug_off, debug_on, ifdebug, local_name_to_top_level_entity(), make_block_statement(), module_name(), module_reorder(), NIL, ordering_to_statement_initialized_p(), pips_debug, reset_current_module_entity(), reset_ordering_to_statement(), set_current_module_entity(), STATEMENT, step_directive_parser(), step_directives_init(), step_directives_print(), and step_directives_save().
|
static |
Definition at line 420 of file parser.c.
References current_pragma, current_statement, EXTENSION, extension_pragma, extensions_extension, FOREACH, pips_assert, pips_debug, pragma_string_p, pragma_undefined, pragma_undefined_p, reset_step_transform(), statement_extensions, statement_undefined, statement_undefined_p, step_bison_parse(), and STEP_DEBUG_STATEMENT.
Referenced by statement_filter().
|
static |
Definition at line 12 of file parser.c.
Referenced by remove_old_pragma(), and step_pragma_handle().
|
static |
Definition at line 11 of file parser.c.
Referenced by begin_omp_construct(), entity_from_user_name(), insert_optional_pragma(), remove_old_pragma(), and step_pragma_handle().
|
static |
Definition at line 13 of file parser.c.
Referenced by new_step_directive(), reset_step_transform(), and set_current_transform().