PIPS
|
#include <stdio.h>
#include <ctype.h>
#include "genC.h"
#include "linear.h"
#include "ri.h"
#include "effects.h"
#include "resources.h"
#include "misc.h"
#include "ri-util.h"
#include "prettyprint.h"
#include "effects-util.h"
#include "text-util.h"
#include "ray_dte.h"
#include "sommet.h"
#include "sg.h"
#include "polyedre.h"
#include "phrase_tools.h"
#include "effects-generic.h"
#include "effects-simple.h"
#include "effects-convex.h"
#include "phrase_distribution.h"
#include "comEngine.h"
#include "phrase.h"
Go to the source code of this file.
Functions | |
static void | opt_loop_interchange_fill_lists_stat (statement stat) |
static void | opt_loop_interchange_fill_lists (statement stat) |
static statement | make_loopPattern (statement innerStat) |
static void | entity_in_stat_rwt (reference curRef, bool *entInStat) |
static bool | entity_in_stat (entity ind, statement stat) |
static void | move_statements_stat (statement stat, entity ind, list *lInBody, list *lOutBody) |
static void | move_statements (statement stat, entity ind, list *lInBody, list *lOutBody) |
static void | entity_in_ref_rwt (reference curRef) |
static bool | entity_in_ref (entity ent, reference ref) |
static void | regenerate_toggles (statement stat, statement newStat, list *lInBody) |
static statement | make_seqStat (statement stat, statement loopPattern, list oldCurList, entity newInd) |
statement | comEngine_opt_loop_interchange (statement stat, statement innerStat, entity newInd) |
Variables | |
hash_table | gLoopToOpt |
cproto-generated files More... | |
static list | glSeqs = NIL |
static list | glStats = NIL |
static entity | gIndEnt = entity_undefined |
static entity | gSearchedEnt = entity_undefined |
static bool | gEntFound = false |
stat | tat |
innerStat | nnerStat |
newInd | ewInd |
Definition at line 411 of file comEngine_optimization_function.c.
References CONS, free_statement(), gen_free_list(), gen_nconc(), gLoopToOpt, glSeqs, glStats, hash_get(), HASH_UNDEFINED_VALUE, intptr_t, LIST, loop_body, make_block_statement(), make_loopPattern(), make_seqStat(), MAP, NIL, opt_loop_interchange_fill_lists(), pips_assert, print_statement(), printf(), STATEMENT, statement_block_p, statement_loop(), statement_loop_p(), and statement_undefined.
Referenced by usual_loop_tiling().
Definition at line 230 of file comEngine_optimization_function.c.
References entity_in_ref_rwt(), gen_recurse, gen_true(), gEntFound, gSearchedEnt, print_entity_variable(), print_reference(), printf(), ref, and reference_domain.
Referenced by regenerate_toggles().
|
static |
Definition at line 220 of file comEngine_optimization_function.c.
References gEntFound, gSearchedEnt, print_reference(), printf(), and reference_variable.
Referenced by entity_in_ref().
Definition at line 159 of file comEngine_optimization_function.c.
References entity_in_stat_rwt(), gen_context_recurse, gen_true2(), gIndEnt, and reference_domain.
Referenced by move_statements_stat().
Definition at line 151 of file comEngine_optimization_function.c.
References gIndEnt, and reference_variable.
Referenced by entity_in_stat().
Definition at line 128 of file comEngine_optimization_function.c.
References copy_range(), empty_comments, empty_extensions(), entity_empty_label(), is_execution_sequential, loop_index, loop_label, loop_range, make_execution(), make_instruction_loop(), make_loop(), make_statement(), make_synchronization_none(), NIL, statement_loop(), STATEMENT_NUMBER_UNDEFINED, STATEMENT_ORDERING_UNDEFINED, statement_undefined, and UU.
Referenced by comEngine_opt_loop_interchange().
|
static |
tatement stepStat = make_loop_step_stat(inLoop, loop_index(statement_loop(loopPattern)));
lInBody = gen_nconc(CONS(STATEMENT, stepStat, NIL), lInBody);
Definition at line 331 of file comEngine_optimization_function.c.
References CAR, CONS, copy_statement(), free_statement(), gen_free_list(), gen_full_copy_list(), gen_nconc(), gIsNewLoop, hash_get(), HASH_UNDEFINED_VALUE, loop_body, loop_index, make_block_statement(), MAP, move_statements(), NIL, pips_assert, regenerate_toggles(), STATEMENT, statement_block(), statement_block_p, statement_loop(), statement_loop_p(), and statement_undefined.
Referenced by comEngine_opt_loop_interchange().
Definition at line 186 of file comEngine_optimization_function.c.
References instruction_sequence, instruction_tag, is_instruction_call, is_instruction_loop, is_instruction_sequence, is_instruction_test, MAP, move_statements_stat(), pips_internal_error, sequence_statements, STATEMENT, and statement_instruction.
Referenced by make_seqStat().
|
static |
Definition at line 170 of file comEngine_optimization_function.c.
References CONS, copy_statement(), entity_in_stat(), gen_nconc(), NIL, STATEMENT, and statement_loop_p().
Referenced by move_statements().
|
static |
ase is_instruction_loop: { opt_loop_interchange_fill_lists_loop(stat); break; }
Definition at line 69 of file comEngine_optimization_function.c.
References CONS, gen_nconc(), gIsNewLoop, glSeqs, glStats, hash_get(), HASH_UNDEFINED_VALUE, instruction_sequence, instruction_tag, is_instruction_call, is_instruction_sequence, is_instruction_test, LIST, MAP, NIL, opt_loop_interchange_fill_lists_stat(), pips_internal_error, print_statement(), printf(), sequence_statements, STATEMENT, and statement_instruction.
Referenced by comEngine_opt_loop_interchange().
|
static |
Definition at line 64 of file comEngine_optimization_function.c.
References CONS, gen_nconc(), glStats, NIL, and STATEMENT.
Referenced by opt_loop_interchange_fill_lists().
Definition at line 253 of file comEngine_optimization_function.c.
References AddEntityToCurrentModule(), comEngine_make_new_scalar_variable(), comEngine_replace_reference_in_stat(), CONS, ENTITY, entity_in_ref(), entity_to_expression(), FOREACH, free_statement(), gen_free_list(), gen_nconc(), gLoopToToggleEnt, glToggleInitStats, gRefToToggle, gToggleToInc, hash_get(), HASH_MAP, hash_put(), HASH_UNDEFINED_VALUE, instruction_block, intptr_t, is_basic_int, loop_index, make_basic(), make_block_statement(), make_reference(), make_toggle_inc_statement(), make_toggle_init_statement(), make_toggle_mmcd(), MAP, NIL, pips_assert, print_entity_variable(), printf(), REFERENCE, STATEMENT, statement_instruction, statement_loop(), and strdup().
Referenced by make_seqStat().
Definition at line 218 of file comEngine_optimization_function.c.
Referenced by entity_in_ref(), and entity_in_ref_rwt().
|
static |
Definition at line 149 of file comEngine_optimization_function.c.
Referenced by entity_in_stat(), and entity_in_stat_rwt().
hash_table gLoopToOpt |
cproto-generated files
comEngine_optimization_function.c
Definition at line 59 of file comEngine_optimization_function.c.
Referenced by comEngine_generate_code(), comEngine_opt_loop_interchange(), fill_gLoopToOpt(), and generate_code_loop().
Definition at line 61 of file comEngine_optimization_function.c.
Referenced by comEngine_opt_loop_interchange(), and opt_loop_interchange_fill_lists().
Definition at line 62 of file comEngine_optimization_function.c.
Referenced by comEngine_opt_loop_interchange(), opt_loop_interchange_fill_lists(), and opt_loop_interchange_fill_lists_stat().
|
static |
Definition at line 217 of file comEngine_optimization_function.c.
Referenced by entity_in_ref(), and entity_in_ref_rwt().