PIPS
analysis.c File Reference
#include "safescale.h"
+ Include dependency graph for analysis.c:

Go to the source code of this file.

Functions

bool safescale_module_analysis (const char *module_name)
 Analyze a given module. More...
 

Function Documentation

◆ safescale_module_analysis()

bool safescale_module_analysis ( const char *  module_name)

Analyze a given module.

cproto-generated files

Initialize the resources

Get effects of the module

Build hash tables between variables and values and between values and names for the module

Get regions of the module

Do the job

Update/release resources

Parameters
module_nameodule_name

Definition at line 33 of file analysis.c.

34 {
36  entity module;
37 
38  /* Initialize the resources */
40  // module = local_name_to_top_level_entity(module_name);
42 
45 
46  /* Get effects of the module */
49 
50  /* Build hash tables between variables and values and between values and names for the module */
52 
53  //debug_on("PHRASE_DISTRIBUTOR_DEBUG_LEVEL");
54 
55  /* Get regions of the module */
59 
60  /* Do the job */
61  //pips_debug(2, "BEGIN of PHRASE_DISTRIBUTOR\n");
62 
63  // convertion_to_kaapi(....); ou identification des blocs délimités par des pragmas selon méthode retenue.
64 
65  //pips_debug(2, "END of PHRASE_DISTRIBUTOR\n");
66 
68 
69  //pips_assert("Statement structure is consistent after PHRASE_DISTRIBUTOR", gen_consistent_p((gen_chunk*) statement));
70  //pips_assert("Statement is consistent after PHRASE_DISTRIBUTOR", statement_consistent_p(statement));
71 
72  /* Update/release resources */
75  //dynamic_area = entity_undefined;
82 
83  //debug_off();
84 
85  return true;
86 }
static statement module_statement
Definition: alias_check.c:125
struct _newgen_struct_statement_ * statement
Definition: cloning.h:21
void set_rw_effects(statement_effects)
void reset_out_effects(void)
void reset_proper_rw_effects(void)
void set_proper_rw_effects(statement_effects)
void set_cumulated_rw_effects(statement_effects)
void set_out_effects(statement_effects)
void set_in_effects(statement_effects)
void reset_in_effects(void)
void reset_cumulated_rw_effects(void)
void reset_rw_effects(void)
const char * module_name(const char *s)
Return the module part of an entity name.
Definition: entity_names.c:296
void reset_current_module_entity(void)
Reset the current module entity.
Definition: static.c:97
void reset_current_module_statement(void)
Reset the current module statement.
Definition: static.c:221
statement set_current_module_statement(statement)
Set the current module statement.
Definition: static.c:165
entity set_current_module_entity(entity)
static.c
Definition: static.c:66
string db_get_memory_resource(const char *rname, const char *oname, bool pure)
Return the pointer to the resource, whatever it is.
Definition: database.c:755
static char * module
Definition: pips.c:74
void print_statement(statement)
Print a statement on stderr.
Definition: statement.c:98
entity module_name_to_entity(const char *mn)
This is an alias for local_name_to_top_level_entity.
Definition: entity.c:1479
void module_to_value_mappings(entity m)
void module_to_value_mappings(entity m): build hash tables between variables and values (old,...
Definition: mappings.c:624
void free_value_mappings(void)
Normal call to free the mappings.
Definition: value.c:1212

References db_get_memory_resource(), free_value_mappings(), module, module_name(), module_name_to_entity(), module_statement, module_to_value_mappings(), print_statement(), reset_cumulated_rw_effects(), reset_current_module_entity(), reset_current_module_statement(), reset_in_effects(), reset_out_effects(), reset_proper_rw_effects(), reset_rw_effects(), set_cumulated_rw_effects(), set_current_module_entity(), set_current_module_statement(), set_in_effects(), set_out_effects(), set_proper_rw_effects(), and set_rw_effects().

+ Here is the call graph for this function: