PIPS
entity.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "linear.h"
#include "genC.h"
#include "misc.h"
#include "properties.h"
#include "ri-util.h"
#include "prettyprint.h"
+ Include dependency graph for entity.c:

Go to the source code of this file.

Functions

static void print_dimension (dimension d)
 Functions closely related to the prettyprint of entity class. More...
 
void print_entity_variable (entity e)
 print_entity_variable(e) More...
 

Function Documentation

◆ print_dimension()

static void print_dimension ( dimension  d)
static

Functions closely related to the prettyprint of entity class.

Definition at line 44 of file entity.c.

45 {
46  fprintf(stderr,"dimension :\n");
49 }
void print_expression(expression e)
no file descriptor is passed to make is easier to use in a debugging stage.
Definition: expression.c:58
#define dimension_lower(x)
Definition: ri.h:980
#define dimension_upper(x)
Definition: ri.h:982
int fprintf()
test sc_min : ce test s'appelle par : programme fichier1.data fichier2.data ...

References dimension_lower, dimension_upper, fprintf(), and print_expression().

Referenced by print_entity_variable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ print_entity_variable()

void print_entity_variable ( entity  e)

print_entity_variable(e)

entity.c

if it is just a variable, the type is printed, otherwise just the entity name is printed

Definition at line 56 of file entity.c.

57 {
58  variable v;
59 
60  (void) fprintf(stderr,"name: %s\n",entity_name(e));
61 
63  return;
64 
65  v = type_variable(entity_type(e));
66 
67  fprintf(stderr,"basic %s\n",basic_to_string(variable_basic(v)));
69 }
void gen_map(gen_iter_func_t fp, const list l)
Definition: list.c:172
void(* gen_iter_func_t)(void *)
Definition: newgen_types.h:116
static void print_dimension(dimension d)
Functions closely related to the prettyprint of entity class.
Definition: entity.c:44
string basic_to_string(basic)
Definition: type.c:87
#define type_variable(x)
Definition: ri.h:2949
#define entity_name(x)
Definition: ri.h:2790
#define variable_dimensions(x)
Definition: ri.h:3122
#define entity_type(x)
Definition: ri.h:2792
#define type_variable_p(x)
Definition: ri.h:2947
#define variable_basic(x)
Definition: ri.h:3120

References basic_to_string(), entity_name, entity_type, fprintf(), gen_map(), print_dimension(), type_variable, type_variable_p, variable_basic, and variable_dimensions.

Referenced by apply_abstract_effect_to_transformer(), call_to_transformer(), copy_write_statement_with_cumulated_regions(), entity_in_ref(), generic_apply_effect_to_transformer(), make_send_receive_conversion(), prepare_context(), print_ctx(), print_ctx_task(), print_distributed_arrays(), print_processors(), print_templates(), and regenerate_toggles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: