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 "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 "comEngine_generate_code.h"
#include "phrase.h"
Go to the source code of this file.
Variables | |
hash_table | gRefToHREVar |
comEngine_generate_HRECode.c More... | |
statement comEngine_generate_HRECode | ( | statement | externalized_code, |
string | new_module_name, | ||
_UNUSED_ list | l_in, | ||
_UNUSED_ list | l_out, | ||
_UNUSED_ list | l_params, | ||
_UNUSED_ list | l_priv, | ||
const char * | module_name, | ||
_UNUSED_ int | hreMemSize | ||
) |
Definition at line 636 of file comEngine_generate_HRECode.c.
References comEngine_generate_code(), create_HRE_module(), generate_scalar_variables(), get_bool_property(), gGenHRE, gRefToHREVar, hash_pointer, hash_table_free(), hash_table_make(), HRE_distribute(), make_empty_subroutine(), make_language_unknown(), module_name(), reset_current_module_entity(), and set_current_module_entity().
Referenced by comEngine_distribute_code().
stat | tat |
Definition at line 547 of file comEngine_generate_HRECode.c.
References expression_undefined, free_statement(), generate_code_function(), generate_stat_from_ref_list_HRE(), get_call_stat_HRE(), gStatToRef, hash_get(), HASH_UNDEFINED_VALUE, make_empty_statement, process_replacement_HRE(), statement_test(), statement_undefined, test_false, and test_true.
Referenced by generate_code_function().
|
static |
Definition at line 128 of file comEngine_generate_HRECode.c.
References call_to_expression(), call_to_statement, copy_expression(), entity_intrinsic(), entity_to_expression(), entity_undefined, expression_domain, expression_undefined, GEN_GET_BUFF, gen_make_list(), GEN_WRITE_BUFF, get_fifo_from_ref(), get_HRE_buff_ent_from_ref(), int_to_expression(), make_call(), module_name_to_runtime_entity(), NIL, pips_assert, PLUS_OPERATOR_NAME, statement_undefined, and strdup().
Referenced by generate_fifo_stats().
|
static |
Definition at line 196 of file comEngine_generate_HRECode.c.
References CONS, gen_free_list(), gen_nconc(), generate_fifo_stat(), gRefToEff, hash_get(), HASH_UNDEFINED_VALUE, MAP, NIL, pips_assert, R_EFFECT, REFERENCE, reference_equal_p(), STATEMENT, and statement_undefined.
Referenced by replace_array_ref_with_fifos().
|
static |
Definition at line 327 of file comEngine_generate_HRECode.c.
References AddEntityToCurrentModule(), basic_of_reference(), basic_undefined, CONS, entity_local_name(), gen_free_list(), get_current_module_entity(), gRefToHREFifo, gRefToHREVar, hash_get(), HASH_MAP, hash_put(), make_new_scalar_variable_with_prefix(), MAP, NIL, pips_assert, REFERENCE, reference_equal_p(), reference_undefined, reference_variable, and strdup().
Referenced by comEngine_generate_HRECode().
lRef | Ref |
stat | tat |
Definition at line 382 of file comEngine_generate_HRECode.c.
References CONS, copy_statement(), free_statement(), gen_nconc(), gRefToEff, hash_get(), HASH_UNDEFINED_VALUE, make_block_statement(), make_wait_step_statement(), MAP, NIL, pips_assert, REFERENCE, STATEMENT, statement_undefined, and W_EFFECT.
Referenced by generate_code_call(), generate_code_loop(), generate_code_test_HRE(), process_code_seq(), and usual_loop_tiling().
lRef | Ref |
lInStats | InStats |
Definition at line 425 of file comEngine_generate_HRECode.c.
References CONS, copy_statement(), free_statement(), gen_nconc(), gRefToEff, hash_get(), HASH_UNDEFINED_VALUE, make_wait_step_statement(), MAP, NIL, pips_assert, REFERENCE, STATEMENT, and W_EFFECT.
Referenced by generate_code_loop().
stat | tat |
Definition at line 513 of file comEngine_generate_HRECode.c.
References copy_statement(), statement_comments, and string_undefined.
Referenced by generate_code_call(), and generate_code_test_HRE().
expression get_fifo_from_ref | ( | reference | ref | ) |
ref | ef |
Definition at line 74 of file comEngine_generate_HRECode.c.
References expression_undefined, gRefToHREFifo, hash_get(), HASH_UNDEFINED_VALUE, int_to_expression(), intptr_t, and ref.
Referenced by generate_fifo_stat(), and generate_fifo_stat2().
ref | ef |
Definition at line 91 of file comEngine_generate_HRECode.c.
References entity_undefined, gRefToHREVar, HASH_MAP, ref, and reference_equal_p().
Referenced by generate_fifo_stat(), generate_fifo_stat2(), replace_array_ref_with_fifos(), and replace_array_ref_with_fifos2().
stat | tat |
lSupportedRef | SupportedRef |
lUnSupportedRef | UnSupportedRef |
Definition at line 467 of file comEngine_generate_HRECode.c.
References gLoopToSupRef, gLoopToUnSupRef, hash_get(), HASH_UNDEFINED_VALUE, and pips_assert.
Referenced by generate_code_loop().
list make_loop_lStats_HRE | ( | statement | stat, |
entity | transferSize, | ||
statement | innerStat, | ||
entity | newOuterInd, | ||
_UNUSED_ list | lSupportedRef, | ||
_UNUSED_ hash_table | htOffset, | ||
expression | bufferSizeExp | ||
) |
Definition at line 525 of file comEngine_generate_HRECode.c.
References CONS, gen_nconc(), make_transStat(), NIL, and STATEMENT.
Referenced by make_loopStat1().
statement make_wait_step_statement | ( | void | ) |
Definition at line 113 of file comEngine_generate_HRECode.c.
References call_to_statement, make_call(), module_name_to_runtime_entity(), NIL, statement_undefined, and WAIT_FOR_NEXT_STEP.
Referenced by generate_code_call(), generate_stat_from_ref_list_HRE(), generate_stat_from_ref_list_HRE_list(), make_loop_step_stat(), and process_gLoopToSync_HRE().
stat | tat |
lInStats | InStats |
Definition at line 613 of file comEngine_generate_HRECode.c.
References CONS, copy_statement(), gen_nconc(), gLoopToSync, hash_get(), HASH_UNDEFINED_VALUE, intptr_t, make_wait_step_statement(), NIL, and STATEMENT.
Referenced by generate_code_loop().
void process_replacement_HRE | ( | list | lRef, |
expression | buffIndExp, | ||
statement * | stat | ||
) |
lRef | Ref |
buffIndExp | uffIndExp |
stat | tat |
Definition at line 483 of file comEngine_generate_HRECode.c.
References entity_undefined, and replace_array_ref_with_fifos().
Referenced by generate_code_call(), generate_code_loop(), generate_code_test_HRE(), make_loopStat1(), process_code_seq(), process_opt_replace(), and usual_loop_tiling().
lRef | Ref |
lStats | Stats |
Definition at line 493 of file comEngine_generate_HRECode.c.
References CAR, CDR, CONS, entity_undefined, expression_undefined, gen_free_list(), gen_nconc(), NIL, replace_array_ref_with_fifos(), and STATEMENT.
Referenced by generate_code_loop().
void replace_array_ref_with_fifos | ( | list | lRef, |
expression | buffIndExp, | ||
entity | ind, | ||
statement * | newStat | ||
) |
lRef | Ref |
buffIndExp | uffIndExp |
ind | nd |
newStat | ewStat |
Definition at line 286 of file comEngine_generate_HRECode.c.
References comEngine_replace_reference_in_stat(), CONS, entity_undefined, gen_nconc(), generate_fifo_stats(), get_HRE_buff_ent_from_ref(), make_block_statement(), make_reference(), MAP, NIL, pips_assert, REFERENCE, reference_to_expression(), STATEMENT, and statement_undefined.
Referenced by process_replacement_HRE(), and process_replacement_HRE_OutRef().
hash_table gRefToHREVar |
Definition at line 68 of file comEngine_generate_HRECode.c.
Referenced by comEngine_generate_HRECode(), generate_code(), generate_scalar_variables(), generate_scalar_variables_from_list(), and get_HRE_buff_ent_from_ref().