PIPS
|
#include "defines-local.h"
Go to the source code of this file.
Functions | |
void | create_common_parameters_h (FILE *file) |
Fabien Coelho, June 1993. More... | |
void | create_parameters_h (FILE *file, entity module) |
create_parameters_h More... | |
int | max_size_of_processors () |
static int | code_number (tag t) |
translation from an hpf_newdecl tag to the runtime code expected More... | |
void | create_init_common_param_for_arrays (FILE *file, entity module) |
void | create_init_common_param_for_templates (FILE *file) |
void | create_init_common_param_for_processors (FILE *file) |
void | create_init_common_param (FILE *file) |
create_init_common_param (templates and modules) More... | |
translation from an hpf_newdecl tag to the runtime code expected
just to avoid a gcc warning
Definition at line 141 of file inits.c.
References is_hpf_newdecl_alpha, is_hpf_newdecl_beta, is_hpf_newdecl_delta, is_hpf_newdecl_gamma, is_hpf_newdecl_none, and pips_internal_error.
Referenced by create_init_common_param_for_arrays().
void create_common_parameters_h | ( | FILE * | file | ) |
Fabien Coelho, June 1993.
in this file there are functions to generate the run-time resolution parameters.
file | ile |
Definition at line 36 of file inits.c.
References fprintf(), get_int_property(), max_size_of_processors(), number_of_distributed_arrays(), number_of_processors(), and number_of_templates().
Referenced by put_generated_resources_for_program().
void create_init_common_param | ( | FILE* | file | ) |
create_init_common_param (templates and modules)
file | ile |
Definition at line 511 of file inits.c.
References create_init_common_param_for_processors(), and create_init_common_param_for_templates().
Referenced by put_generated_resources_for_program().
void create_init_common_param_for_arrays | ( | FILE* | file, |
entity | module | ||
) |
NODIMA: Number Of DIMensions of an Array ATOT: Array TO Template
The primary entity is the initial mapping ??? not sure... some decision should be involved...
RANGEA: lower, upper, size and declaration, aso
RANGEA contents:
1: lower bound 2: upper bound 3: size, (2)-(1)+1 4: new declaration flag
5: distribution parameter n, 6: alignment rate a, 7: alignment shift, b-t_{m}
5: distribution parameter n, 6: cycle length n*p, 7: initial cycle number, 8: alignment shift, b-t_{m}
5: distribution parameter n 6: cycle length n*p, 7: initial cycle number, 8: alignment shift, b-t_{m} 9: alignment rate a, 10: chunck size ceil(n,|a|)
ALIGN
file | ile |
module | odule |
Definition at line 158 of file inits.c.
References abs, align_alignment, align_template, alignment_arraydim, alignment_constant, alignment_rate, alignment_templatedim, alignment_undefined, array, code_number(), dimension_lower, dimension_upper, distribute_distribution, distribute_processors, distribution_parameter, distribution_style, dynamic_entity_p, ENTITY, entity_ith_dimension(), entity_local_name(), FindAlignmentOfDim(), FindAlignmentOfTemplateDim(), FindDistributionOfDim(), FindIthDimension(), fprintf(), gen_free_list(), HpfcExpressionToInt(), iceil, is_hpf_newdecl_alpha, is_hpf_newdecl_beta, is_hpf_newdecl_delta, is_hpf_newdecl_gamma, is_hpf_newdecl_none, list_of_distributed_arrays_for_module(), load_hpf_alignment(), load_hpf_distribution(), load_hpf_number(), load_primary_entity(), MAP, module, module_local_name(), new_declaration_tag(), NumberOfDimension(), pips_assert, pips_internal_error, SizeOfIthDimension(), style_block_p, and style_cyclic_p.
Referenced by put_generated_resources_for_common(), and put_generated_resources_for_module().
void create_init_common_param_for_processors | ( | FILE* | file | ) |
NODIMP: Number Of DIMensions of a Processors arrangement
RANGEP: lower, upper, size
file | ile |
Definition at line 470 of file inits.c.
References DIMENSION, dimension_lower, dimension_upper, ENTITY, entity_local_name(), entity_type, fprintf(), HpfcExpressionToInt(), list_of_processors(), load_hpf_number(), MAP, NumberOfDimension(), type_variable, and variable_dimensions.
Referenced by create_init_common_param().
void create_init_common_param_for_templates | ( | FILE* | file | ) |
NODIMT: Number Of DIMensions of a Template TTOP: Template TO Processors arrangement
RANGET: lower, upper, size
DIST
file | ile |
Definition at line 391 of file inits.c.
References _FALLTHROUGH_, DIMENSION, dimension_lower, dimension_upper, distribute_distribution, distribute_processors, DISTRIBUTION, distribution_parameter, distribution_style, ENTITY, entity_local_name(), entity_type, fprintf(), HpfcExpressionToInt(), is_style_block, is_style_cyclic, is_style_none, list_of_templates(), load_hpf_distribution(), load_hpf_number(), MAP, NumberOfDimension(), pips_internal_error, style_tag, type_variable, and variable_dimensions.
Referenced by create_init_common_param().
void create_parameters_h | ( | FILE * | file, |
entity | module | ||
) |
create_parameters_h
to be called after the declaration_with_overlaps() call. it generates the parameters for module.
formal parameters are passed the value by the caller as far as overlapable dimensions are concerned.
otherwise it is a secondary copy
file | ile |
module | odule |
Definition at line 65 of file inits.c.
References array, bound_parameter_name(), bound_similar_mapping_p(), dimension_lower, dimension_upper, dynamic_entity_p, ENTITY, entity_name, entity_storage, entity_undefined, FindIthDimension(), fprintf(), free(), gen_free_list(), HpfcExpressionToInt(), ith_dim_overlapable_p(), list_of_distributed_arrays_for_module(), load_new_node(), load_similar_mapping(), LOWER, MAP, module, module_local_name(), NumberOfDimension(), pips_debug, storage_formal_p, ud(), and UPPER.
Referenced by put_generated_resources_for_common(), and put_generated_resources_for_module().
int max_size_of_processors | ( | void | ) |
Definition at line 120 of file inits.c.
References current_max, element_number(), ENTITY, entity_type, list_of_processors(), MAP, max, pips_assert, type_variable, type_variable_p, variable_basic, and variable_dimensions.
Referenced by create_common_parameters_h().