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 "comEngine_generate_code.h"
#include "phrase.h"
Go to the source code of this file.
Variables | |
static hash_table | gOldIndToNewInd |
static hash_table | gIsIndex |
static list | gCurStats = NIL |
static list | glCurRep = NIL |
static const char * | g_new_module_name = NULL |
static const char * | g_module_name = NULL |
static int | gIfCount = 0 |
static list | glCurLoop = NIL |
static entity | gNewInd = entity_undefined |
static list | glReadStats = NIL |
static list | glWriteStats = NIL |
Definition at line 557 of file comEngine_HRE_distribute.c.
References CONS, gen_nconc(), generate_ind_fifo_stat2(), glReadStats, glWriteStats, gNewInd, gOldIndToNewInd, HASH_MAP, make_block_statement(), NIL, and STATEMENT.
Referenced by generate_code().
|
static |
Definition at line 686 of file comEngine_HRE_distribute.c.
References create_HRE_module(), entity_local_name(), g_module_name, and get_current_module_entity().
Referenced by loop_enter().
Definition at line 168 of file comEngine_HRE_distribute.c.
References AddEntityToCurrentModule(), CAR, copy_basic(), entity_basic(), entity_local_name(), entity_undefined, get_current_module_entity(), gIsIndex, glCurLoop, gLoopToUnSupRef, gNewInd, gOldIndToNewInd, hash_get(), hash_put(), HASH_UNDEFINED_VALUE, loop_index, make_new_scalar_variable_with_prefix(), NIL, pips_assert, STATEMENT, and statement_loop().
Referenced by get_fifoExp_from_ref(), and get_indExp_from_ref().
|
static |
rintf("glCurRep\n"); MAP(REFERENCE, curRef, { printf("glCurRep it\n"); print_reference(curRef);printf("\n"); }, glCurRep);
Definition at line 593 of file comEngine_HRE_distribute.c.
References add_index_statements(), CAR, copy_expression(), empty_comments, empty_extensions(), entity_empty_label(), entity_undefined, gBufferSizeEnt, gCurStats, gen_free_list(), generate_scalar_variables_from_list(), glCurLoop, glCurRep, glReadStats, glWriteStats, gNewInd, gOldIndToNewInd, gRefToHREVar, hash_pointer, hash_table_free(), hash_table_make(), int_to_expression(), is_execution_sequential, loop_label, make_block_statement(), make_execution(), make_instruction_loop(), make_loop(), make_range(), make_statement(), make_synchronization_none(), NIL, print_statement(), printf(), replace_array_ref_with_fifos2(), STATEMENT, statement_loop(), STATEMENT_NUMBER_UNDEFINED, STATEMENT_ORDERING_UNDEFINED, and UU.
Referenced by loop_enter().
curRef | urRef |
bRead | Read |
Definition at line 336 of file comEngine_HRE_distribute.c.
References CONS, entity_to_expression(), entity_undefined, expression_undefined, get_fifo_from_ref(), get_fifoExp_from_ref(), get_HRE_buff_ent_from_ref(), get_indExp_from_ref(), glReadStats, glWriteStats, gRefToInd, gRefToToggle, make_read_write_fifo_stat(), pips_assert, READ_FIFO, STATEMENT, statement_undefined, strdup(), and WRITE_FIFO.
Referenced by generate_fifo_stats2().
lRef | Ref |
lReadStats | ReadStats |
lWriteStats | WriteStats |
Definition at line 432 of file comEngine_HRE_distribute.c.
References CONS, gen_free_list(), gen_nconc(), generate_fifo_stat2(), 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_fifos2().
oldInd | ldInd |
newInd | ewInd |
bRead | Read |
Definition at line 396 of file comEngine_HRE_distribute.c.
References entity_to_expression(), gEntToHREFifo, gIndToNum, hash_get(), HASH_UNDEFINED_VALUE, int_to_expression(), intptr_t, make_read_write_fifo_stat(), pips_assert, READ_FIFO, statement_undefined, strdup(), and WRITE_FIFO.
Referenced by add_index_statements().
|
static |
Definition at line 104 of file comEngine_HRE_distribute.c.
References AddEntityToCurrentModule(), basic_of_reference(), basic_undefined, entity_local_name(), get_current_module_entity(), gRefToHREVar, hash_get(), HASH_MAP, hash_put(), HASH_UNDEFINED_VALUE, make_new_scalar_variable_with_prefix(), MAP, pips_assert, REFERENCE, reference_equal_p(), reference_undefined, reference_variable, and strdup().
Referenced by generate_code().
expression get_fifoExp_from_ref | ( | reference | curRef, |
expression | buffExp, | ||
hash_table | ht | ||
) |
curRef | urRef |
buffExp | uffExp |
ht | t |
Definition at line 260 of file comEngine_HRE_distribute.c.
References call_to_expression(), entity_intrinsic(), entity_to_expression(), entity_undefined, expression_domain, find_or_create_newInd(), gen_make_list(), HASH_MAP, make_call(), PLUS_OPERATOR_NAME, and reference_equal_p().
Referenced by generate_fifo_stat2().
|
static |
Definition at line 219 of file comEngine_HRE_distribute.c.
References CAR, entity_to_expression(), entity_undefined, find_or_create_newInd(), glCurLoop, HASH_MAP, int_to_expression(), loop_index, reference_equal_p(), STATEMENT, and statement_loop().
Referenced by generate_fifo_stat2().
stat | tat |
new_module_name | ew_module_name |
module_name | odule_name |
Definition at line 955 of file comEngine_HRE_distribute.c.
References entity_undefined, g_module_name, g_new_module_name, gCurStats, gIfCount, gIsIndex, glCurLoop, glCurRep, glReadStats, glWriteStats, gNewInd, gOldIndToNewInd, hash_pointer, hash_table_free(), hash_table_make(), HRE_distribute_stat(), loop_enter(), make_block_statement(), module_name(), NIL, print_statement(), and printf().
Referenced by comEngine_generate_HRECode().
Definition at line 794 of file comEngine_HRE_distribute.c.
References call_arguments, comEngine_expression_to_reference_list(), copy_statement(), exp, EXPRESSION, gen_concatenate(), gen_free_list(), gen_nconc(), gIfCount, glCurRep, instruction_call, MAP, NIL, statement_comments, statement_instruction, statement_undefined, and string_undefined.
Referenced by HRE_distribute_stat().
Definition at line 771 of file comEngine_HRE_distribute.c.
References CONS, gen_remove(), glCurLoop, HRE_distribute_stat(), loop_body, loop_enter(), STATEMENT, statement_loop(), and statement_undefined.
Referenced by HRE_distribute_stat().
Definition at line 830 of file comEngine_HRE_distribute.c.
References CONS, gCurStats, gen_nconc(), gIfCount, HRE_distribute_stat(), instruction_sequence, MAP, NIL, sequence_statements, STATEMENT, statement_instruction, and statement_undefined.
Referenced by HRE_distribute_stat().
Definition at line 897 of file comEngine_HRE_distribute.c.
References CONS, gCurStats, gen_nconc(), gIfCount, HRE_distribute_call(), HRE_distribute_loop(), HRE_distribute_seq(), HRE_distribute_test(), instruction_tag, is_instruction_call, is_instruction_loop, is_instruction_sequence, is_instruction_test, NIL, pips_assert, print_statement(), printf(), STATEMENT, statement_instruction, and statement_undefined.
Referenced by HRE_distribute(), HRE_distribute_loop(), HRE_distribute_seq(), and HRE_distribute_test().
Definition at line 862 of file comEngine_HRE_distribute.c.
References comEngine_expression_to_reference_list(), copy_statement(), gen_nconc(), gIfCount, glCurRep, HRE_distribute_stat(), NIL, statement_comments, statement_test(), statement_undefined, string_undefined, test_condition, test_false, and test_true.
Referenced by HRE_distribute_stat().
|
static |
Definition at line 695 of file comEngine_HRE_distribute.c.
References fill_HRE_module(), gCurStats, generate_code(), make_HRE_empty_module(), and NIL.
Referenced by HRE_distribute(), and HRE_distribute_loop().
|
static |
Definition at line 666 of file comEngine_HRE_distribute.c.
References concatenate(), free(), g_new_module_name, int2a(), make_empty_subroutine(), make_language_unknown(), num, prefix, reset_current_module_entity(), set_current_module_entity(), and strdup().
Referenced by loop_enter().
|
static |
Definition at line 297 of file comEngine_HRE_distribute.c.
References call_to_expression(), call_to_statement, expression_domain, gen_make_list(), make_assign_statement(), make_call(), module_name_to_runtime_entity(), and READ_FIFO.
Referenced by generate_fifo_stat2(), and generate_ind_fifo_stat2().
Definition at line 519 of file comEngine_HRE_distribute.c.
References comEngine_replace_reference_in_stat(), CONS, entity_undefined, FOREACH, gen_nconc(), generate_fifo_stats2(), get_HRE_buff_ent_from_ref(), make_block_statement(), make_reference(), NIL, pips_assert, print_reference(), printf(), REFERENCE, reference_to_expression(), STATEMENT, and statement_undefined.
Referenced by generate_code().
|
static |
Definition at line 79 of file comEngine_HRE_distribute.c.
Referenced by fill_HRE_module(), and HRE_distribute().
|
static |
Definition at line 78 of file comEngine_HRE_distribute.c.
Referenced by HRE_distribute(), and make_HRE_empty_module().
Definition at line 73 of file comEngine_HRE_distribute.c.
Referenced by generate_code(), HRE_distribute(), HRE_distribute_seq(), HRE_distribute_stat(), and loop_enter().
|
static |
Definition at line 84 of file comEngine_HRE_distribute.c.
Referenced by HRE_distribute(), HRE_distribute_call(), HRE_distribute_seq(), HRE_distribute_stat(), and HRE_distribute_test().
|
static |
Definition at line 71 of file comEngine_HRE_distribute.c.
Referenced by find_or_create_newInd(), and HRE_distribute().
Definition at line 88 of file comEngine_HRE_distribute.c.
Referenced by find_or_create_newInd(), generate_code(), get_indExp_from_ref(), HRE_distribute(), and HRE_distribute_loop().
Definition at line 74 of file comEngine_HRE_distribute.c.
Referenced by generate_code(), HRE_distribute(), HRE_distribute_call(), and HRE_distribute_test().
Definition at line 94 of file comEngine_HRE_distribute.c.
Referenced by add_index_statements(), generate_code(), generate_fifo_stat2(), and HRE_distribute().
Definition at line 95 of file comEngine_HRE_distribute.c.
Referenced by add_index_statements(), generate_code(), generate_fifo_stat2(), and HRE_distribute().
|
static |
Definition at line 90 of file comEngine_HRE_distribute.c.
Referenced by add_index_statements(), find_or_create_newInd(), generate_code(), and HRE_distribute().
|
static |
Definition at line 67 of file comEngine_HRE_distribute.c.
Referenced by add_index_statements(), find_or_create_newInd(), generate_code(), and HRE_distribute().