PIPS
|
#include "defines-local.h"
Go to the source code of this file.
Functions | |
bool | expression_constant_p (expression) |
Overlap Management Module for HPFC Fabien Coelho, August 1993. More... | |
static void | create_overlaps (entity e) |
in static_controlize More... | |
void | set_overlap (entity ent, int dim, int side, int width) |
set_overlap(ent, dim, side, width) More... | |
int | get_overlap (entity ent, int dim, int side) |
int get_overlap(ent, dim, side) More... | |
static void | overlap_redefine_expression (expression *pexpr, int ov) |
static void overlap_redefine_expression(pexpr, ov) More... | |
static void | declaration_with_overlaps (list l) |
static void | deal_with_similars (list le) |
updates overlaps for similar arrays that are going to be merged More... | |
void | declaration_with_overlaps_for_module (entity module) |
|
static |
in static_controlize
Definition at line 36 of file overlap.c.
References assert, bound_overlap_status_p(), CONS, entity_type, gen_length(), make_overlap(), NIL, OVERLAP, store_overlap_status(), type_variable, type_variable_p, and variable_dimensions.
Referenced by get_overlap(), and set_overlap().
|
static |
updates overlaps for similar arrays that are going to be merged
Definition at line 164 of file overlap.c.
References array, ENTITY, entity_name, FOREACH, get_overlap(), load_similar_mapping(), pips_debug, set_overlap(), variable_dynamic_p(), and variable_entity_dimension().
Referenced by declaration_with_overlaps_for_module().
|
static |
Definition at line 126 of file overlap.c.
References assert, debug(), dimension_lower, dimension_upper, ENTITY, entity_ith_dimension(), entity_name, entity_type, get_overlap(), load_new_node(), MAP, overlap_redefine_expression(), type_variable_p, and variable_entity_dimension().
Referenced by declaration_with_overlaps_for_module().
void declaration_with_overlaps_for_module | ( | entity | module | ) |
module | odule |
Definition at line 190 of file overlap.c.
References deal_with_similars(), declaration_with_overlaps(), gen_free_list(), list_of_distributed_arrays_for_module(), and module.
bool expression_constant_p | ( | expression | exp | ) |
Overlap Management Module for HPFC Fabien Coelho, August 1993.
Overlap Management Module for HPFC Fabien Coelho, August 1993.
HPFC module by Fabien COELHO.
bool expression_constant_p(expression exp) Returns true if "exp" is an (integer) constant value.
Note : A negativePositive constant can be represented with a call to the unary minus/plus intrinsic function upon a positive value.
See below extended_expression_constant_p() for a more general function.
Definition at line 2453 of file expression.c.
Referenced by overlap_redefine_expression().
int get_overlap(ent, dim, side)
returns the overlap for a given entity, dimension and side, to be used in the declaration modifications
ent | nt |
dim | im |
side | ide |
Definition at line 88 of file overlap.c.
References assert, bound_overlap_status_p(), create_overlaps(), gen_nth(), load_overlap_status(), OVERLAP, overlap_lower, and overlap_upper.
Referenced by deal_with_similars(), and declaration_with_overlaps().
|
static |
static void overlap_redefine_expression(pexpr, ov)
redefine the bound given the overlap which is to be included
this avoid a memory leak
Definition at line 107 of file overlap.c.
References expression_constant_p(), FindOrCreateEntity(), free_expression(), HpfcExpressionToInt(), int_to_expression(), MakeBinaryCall(), PLUS_OPERATOR_NAME, and TOP_LEVEL_MODULE_NAME.
Referenced by declaration_with_overlaps().
set_overlap(ent, dim, side, width)
set the overlap value for entity ent, on dimension dim, dans side side to width, which must be a positive integer.
set the overlap value for entity ent, on dimension dim, dans side side to width, which must be a positive integer. if necessary, the overlap is updates with the value width.
upper
lower
ent | nt |
dim | im |
side | ide |
width | idth |
Definition at line 59 of file overlap.c.
References assert, bound_overlap_status_p(), create_overlaps(), current, gen_nth(), load_overlap_status(), OVERLAP, overlap_lower, and overlap_upper.
Referenced by deal_with_similars().