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 "properties.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.
Variables | |
hash_table | gLoopToOuterInd |
comEngine_generate_code.c More... | |
bool | gGenHRE = false |
static bool | COM_OPT |
static bool | gExecPut |
static list | glCurRep = NIL |
static hash_table | gHtCurNewInd |
static list | glCurLoop = NIL |
static list | glOutEffStats = NIL |
list | glToggleInitStats |
Definition at line 938 of file comEngine_generate_code.c.
References C_EQUAL_OPERATOR_NAME, call_to_expression(), CAR, CONS, copy_expression(), empty_comments, empty_extensions(), entity_empty_label(), entity_intrinsic(), entity_to_expression(), expression_domain, gen_make_list(), gen_nconc(), gHtCurNewInd, glCurLoop, gLoopToUnSupRef, hash_get(), HASH_UNDEFINED_VALUE, is_instruction_test, loop_range, make_block_statement(), make_call(), make_empty_statement, make_exec_mmcd(), make_instruction(), make_statement(), make_step_inc_statement(), make_synchronization_none(), make_test(), NIL, pips_assert, range_lower, STATEMENT, statement_loop(), STATEMENT_NUMBER_UNDEFINED, STATEMENT_ORDERING_UNDEFINED, and statement_undefined.
Referenced by generate_code_call().
Definition at line 241 of file comEngine_generate_code.c.
References CAR, CONS, ENTITY, gen_nconc(), gHtCurNewInd, glCurLoop, gLoopToToggleEnt, gToggleToInc, hash_get(), HASH_UNDEFINED_VALUE, intptr_t, loop_body, make_block_statement(), make_init_newInd_stat(), make_toggle_inc_statement(), make_toggle_mmcd(), MAP, NIL, pips_assert, STATEMENT, statement_loop(), statement_loop_p(), and statement_undefined.
Referenced by generate_code_loop().
stat | tat |
Definition at line 1187 of file comEngine_generate_code.c.
References COM_OPT, CONS, gen_nconc(), generate_code_function(), gExecPut, gHtCurNewInd, glCurLoop, glCurRep, gLoopToOpt, gLoopToOuterInd, glOutEffStats, glToggleInitStats, hash_pointer, hash_table_free(), hash_table_make(), make_block_statement(), NIL, process_code_seq(), STATEMENT, statement_block_p, and statement_undefined.
Referenced by comEngine_generate_HRECode(), and comEngine_generate_procCode().
prefix | refix |
bas | as |
Definition at line 94 of file comEngine_generate_code.c.
References AddEntityToCurrentModule(), entity_undefined, get_current_module_entity(), make_new_scalar_variable_with_prefix(), and prefix.
Referenced by comEngine_generate_procCode(), fill_gLoopToToggleEnt(), generate_code_loop(), regenerate_toggles(), and usual_loop_tiling().
|
static |
Definition at line 110 of file comEngine_generate_code.c.
References glCurLoop, gLoopToOpt, hash_put(), MAP, NIL, and STATEMENT.
Referenced by generate_code_call(), generate_code_loop(), process_code_seq(), process_opt_replace(), and usual_loop_tiling().
Definition at line 125 of file comEngine_generate_code.c.
References comEngine_make_new_scalar_variable(), CONS, ENTITY, FOREACH, gLoopToToggleEnt, gRefToFifo, gRefToFifoOff, gToggleToInc, hash_get(), hash_put(), HASH_UNDEFINED_VALUE, INT, intptr_t, is_basic_int, make_basic(), MAP, NIL, pips_assert, REFERENCE, and strdup().
Referenced by generate_code_loop().
Definition at line 998 of file comEngine_generate_code.c.
References add_exec_mmcd(), call_arguments, COM_OPT, comEngine_expression_to_reference_list(), CONS, exp, EXPRESSION, expression_undefined, fill_gLoopToOpt(), gen_concatenate(), gen_free_list(), gen_nconc(), generate_stat_from_ref_list_HRE(), generate_stat_from_ref_list_proc(), get_bool_property(), get_call_stat_HRE(), get_call_stat_proc(), gExecPut, gGenHRE, glCurRep, gStatToRef, hash_get(), HASH_UNDEFINED_VALUE, instruction_call, make_block_statement(), make_step_inc_statement(), make_wait_step_statement(), MAP, NIL, printf(), process_opt_replace(), process_replacement_HRE(), STATEMENT, statement_instruction, and statement_undefined.
Referenced by generate_code_function().
stat | tat |
bCalledFromSeq | CalledFromSeq |
Definition at line 1137 of file comEngine_generate_code.c.
References generate_code_call(), generate_code_loop(), generate_code_seq(), generate_code_test_HRE(), generate_code_test_proc(), gGenHRE, instruction_tag, is_instruction_call, is_instruction_loop, is_instruction_sequence, is_instruction_test, pips_assert, statement_instruction, and statement_undefined.
Referenced by comEngine_generate_code(), generate_code_loop(), generate_code_seq(), generate_code_test_HRE(), and generate_code_test_proc().
Definition at line 501 of file comEngine_generate_code.c.
References add_index_out_effect_proc(), add_toggle_inc_statements(), COM_OPT, comEngine_make_new_scalar_variable(), comEngine_replace_reference_in_stat(), CONS, copy_basic(), copy_expression(), copy_range(), create_realFifo_proc(), empty_comments, empty_extensions(), entity_basic(), entity_empty_label(), entity_local_name(), entity_to_expression(), expression_undefined, fill_gLoopToOpt(), fill_gLoopToToggleEnt(), gBufferSizeEnt, gen_copy_seq(), gen_remove(), generate_code_function(), generate_stat_from_ref_list_HRE(), generate_stat_from_ref_list_HRE_list(), generate_stat_from_ref_list_proc(), generate_stat_from_ref_list_proc_list(), get_supportedRef_HRE(), gExecPut, gGenHRE, gHtCurNewInd, gIsNewLoop, glCurLoop, gLoopToOpt, gLoopToOuterInd, gLoopToRef, gLoopToToggleEnt, glOutEffStats, gStatToHtOffset, gStatToRef, hash_get(), hash_put(), hash_table_free(), HASH_UNDEFINED_VALUE, is_execution_sequential, loop_body, loop_index, loop_label, loop_range, make_block_statement(), make_execution(), make_instruction_loop(), make_loop(), make_reference(), make_statement(), make_synchronization_none(), NIL, pips_assert, print_statement(), printf(), process_gLoopToSync_HRE(), process_gLoopToSync_proc(), process_replacement_HRE(), process_replacement_HRE_OutRef(), STATEMENT, statement_loop(), STATEMENT_NUMBER_UNDEFINED, STATEMENT_ORDERING_UNDEFINED, statement_undefined, update_toggle_init_stats_list(), usual_loop_tiling(), and UU.
Referenced by generate_code_function().
Definition at line 865 of file comEngine_generate_code.c.
References CAR, COM_OPT, CONS, gen_length(), gen_nconc(), generate_code_function(), gGenHRE, instruction_sequence, make_block_statement(), MAP, NIL, replace_glCurRep_in_seq(), sequence_statements, STATEMENT, statement_call_p(), statement_instruction, statement_test_p(), and statement_undefined.
Referenced by generate_code_function().
|
static |
Definition at line 297 of file comEngine_generate_code.c.
References COM_OPT, copy_expression(), empty_comments, empty_extensions(), entity_empty_label(), entity_to_expression(), free_expression(), gGenHRE, is_execution_sequential, loop_body, loop_label, loop_range, make_block_statement(), make_execution(), make_instruction_loop(), make_loop(), make_loop_lStats_HRE(), make_loop_lStats_proc(), make_range(), make_statement(), make_synchronization_none(), NIL, process_replacement_HRE(), range_lower, range_upper, statement_loop(), STATEMENT_NUMBER_UNDEFINED, STATEMENT_ORDERING_UNDEFINED, statement_undefined, and UU.
Referenced by usual_loop_tiling().
toggleEnt | oggleEnt |
val | al |
Definition at line 222 of file comEngine_generate_code.c.
References C_MODULO_OPERATOR_NAME, call_to_expression(), entity_intrinsic(), entity_to_expression(), expression_domain, gen_make_list(), int_to_expression(), make_assign_statement(), and make_call().
Referenced by add_toggle_inc_statements(), and regenerate_toggles().
toggleEnt | oggleEnt |
Definition at line 189 of file comEngine_generate_code.c.
References entity_to_expression(), int_to_expression(), and make_assign_statement().
Referenced by regenerate_toggles(), and update_toggle_init_stats_list().
Definition at line 1105 of file comEngine_generate_code.c.
References COM_OPT, expression_undefined, fill_gLoopToOpt(), generate_stat_from_ref_list_HRE(), generate_stat_from_ref_list_proc(), gGenHRE, gStatToRef, hash_get(), HASH_UNDEFINED_VALUE, NIL, and process_replacement_HRE().
Referenced by comEngine_generate_code().
|
static |
Definition at line 799 of file comEngine_generate_code.c.
References entity_to_expression(), expression_undefined, fill_gLoopToOpt(), free_expression(), gen_free_list(), gHtCurNewInd, glCurLoop, glCurRep, hash_get(), HASH_UNDEFINED_VALUE, MAP, NIL, pips_assert, process_ref_lists(), process_replacement_HRE(), and STATEMENT.
Referenced by generate_code_call(), and replace_glCurRep_in_seq().
Definition at line 758 of file comEngine_generate_code.c.
References CONS, gen_remove(), glCurRep, gLoopToSupRef, hash_get(), HASH_UNDEFINED_VALUE, MAP, NIL, REFERENCE, and reference_equal_p().
Referenced by process_opt_replace().
Definition at line 834 of file comEngine_generate_code.c.
References CDR, CONS, make_block_statement(), NIL, process_opt_replace(), and STATEMENT.
Referenced by generate_code_seq().
|
static |
Definition at line 198 of file comEngine_generate_code.c.
References CONS, ENTITY, gen_nconc(), gLoopToToggleEnt, glToggleInitStats, hash_get(), HASH_UNDEFINED_VALUE, make_toggle_init_statement(), MAP, NIL, pips_assert, and STATEMENT.
Referenced by generate_code_loop().
|
static |
Definition at line 393 of file comEngine_generate_code.c.
References COM_OPT, comEngine_make_new_scalar_variable(), comEngine_opt_loop_interchange(), empty_comments, empty_extensions(), entity_empty_label(), entity_to_expression(), expression_undefined, fill_gLoopToOpt(), generate_stat_from_ref_list_HRE(), generate_stat_from_ref_list_proc(), gGenHRE, gLoopToToggleEnt, hash_get(), HASH_UNDEFINED_VALUE, int_to_expression(), is_basic_int, is_execution_sequential, loop_body, loop_index, loop_label, make_basic(), make_block_statement(), make_execution(), make_instruction_loop(), make_loop(), make_loopStat1(), make_range(), make_statement(), make_synchronization_none(), NIL, process_innerStat1_proc(), process_replacement_HRE(), statement_loop(), STATEMENT_NUMBER_UNDEFINED, STATEMENT_ORDERING_UNDEFINED, statement_undefined, strdup(), and UU.
Referenced by generate_code_loop().
|
static |
Definition at line 72 of file comEngine_generate_code.c.
Referenced by comEngine_generate_code(), generate_code_call(), generate_code_loop(), generate_code_seq(), make_loopStat1(), process_code_seq(), and usual_loop_tiling().
|
static |
Definition at line 76 of file comEngine_generate_code.c.
Referenced by comEngine_generate_code(), generate_code_call(), and generate_code_loop().
Definition at line 70 of file comEngine_generate_code.c.
Referenced by comEngine_generate_HRECode(), comEngine_generate_procCode(), generate_code_call(), generate_code_function(), generate_code_loop(), generate_code_seq(), make_loop_step_stat(), make_loopStat1(), process_code_seq(), and usual_loop_tiling().
|
static |
Definition at line 79 of file comEngine_generate_code.c.
Referenced by add_exec_mmcd(), add_toggle_inc_statements(), comEngine_generate_code(), generate_code_loop(), and process_opt_replace().
Definition at line 80 of file comEngine_generate_code.c.
Referenced by add_exec_mmcd(), add_toggle_inc_statements(), comEngine_generate_code(), fill_gLoopToOpt(), generate_code_loop(), and process_opt_replace().
Definition at line 78 of file comEngine_generate_code.c.
Referenced by comEngine_generate_code(), generate_code_call(), process_opt_replace(), and process_ref_lists().
hash_table gLoopToOuterInd |
Definition at line 66 of file comEngine_generate_code.c.
Referenced by comEngine_generate_code(), and generate_code_loop().
Definition at line 83 of file comEngine_generate_code.c.
Referenced by comEngine_generate_code(), and generate_code_loop().
list glToggleInitStats |
Definition at line 89 of file comEngine_generate_code.c.
Referenced by comEngine_generate_code(), regenerate_toggles(), and update_toggle_init_stats_list().