PIPS
|
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include "boolean.h"
#include <stdbool.h>
#include "genC.h"
#include "linear.h"
#include "ri.h"
#include "effects.h"
#include "database.h"
#include "misc.h"
#include "text.h"
#include "text-util.h"
#include "ri-util.h"
#include "prettyprint.h"
#include "effects-util.h"
#include "accel-util.h"
#include "effects-generic.h"
#include "effects-simple.h"
#include "pipsdbm.h"
#include "resources.h"
#include "control.h"
#include "conversion.h"
#include "properties.h"
#include "semantics.h"
#include "transformations.h"
#include "effects-convex.h"
#include "complexity_ri.h"
#include "complexity.h"
#include "dg.h"
#include "graph.h"
#include "ricedg.h"
#include "chains.h"
#include "task_parallelization.h"
Go to the source code of this file.
Typedefs | |
typedef dg_arc_label | arc_label |
Instantiation of the dependence graph: More... | |
typedef dg_vertex_label | vertex_label |
Functions | |
static void | task_time_polynome (statement s) |
static void | edge_cost_polynome (statement s1, statement s2) |
bool | bdsc_code_instrumentation (char *module_name) |
instrumentation.c More... | |
typedef dg_arc_label arc_label |
Instantiation of the dependence graph:
Definition at line 38 of file instrumentation.c.
typedef dg_vertex_label vertex_label |
Definition at line 39 of file instrumentation.c.
bool bdsc_code_instrumentation | ( | char * | module_name | ) |
The proper effect to detect the I/O operations:
omplexities (task processing time)
irst step is to cumulate dependences hierarchically (between sequences) on granularities : loop, test and simple instruction
Reorder the module, because new statements have been generated.
module_name | odule_name |
Definition at line 141 of file instrumentation.c.
References db_get_memory_resource(), DB_PUT_MEMORY_RESOURCE, declaration_statement_p(), edge_cost_polynome(), FOREACH, free_value_mappings(), gen_consistent_p(), get_current_module_entity(), graph_vertices, init_convex_rw_prettyprint(), kdg, module_name(), module_name_to_entity(), module_reorder(), module_to_value_mappings(), reset_complexity_map(), reset_cumulated_rw_effects(), reset_current_module_entity(), reset_current_module_statement(), reset_ordering_to_statement(), reset_precondition_map(), reset_proper_rw_effects(), reset_rw_effects(), reset_transformer_map(), set_complexity_map(), set_cumulated_rw_effects(), set_current_module_entity(), set_current_module_statement(), set_methods_for_convex_effects(), set_ordering_to_statement(), set_precondition_map(), set_proper_rw_effects(), set_rw_effects(), set_transformer_map(), statement_to_vertex(), strdup(), SUCCESSOR, successor_vertex, task_time_polynome(), VERTEX, vertex_successors, and vertex_to_statement().
Definition at line 96 of file instrumentation.c.
References concatenate(), CONS, copy_statement(), copy_type(), empty_comments, empty_extensions(), entity_type, entity_undefined, exp, EXPRESSION, expression_to_polynome(), expression_to_string(), FOREACH, FPRINTF_FUNCTION_NAME, free(), free_extensions(), i2a(), int_to_expression(), is_basic_float, is_basic_string, load_statement_local_regions(), make_basic(), make_call_statement(), make_cast(), make_constant_entity(), make_entity_expression(), make_expression(), make_instruction_sequence(), make_sequence(), make_statement_list, make_syntax_cast(), MakeTypeVariable(), NIL, normalized_undefined, polynome_add(), polynome_mult(), POLYNOME_NUL, polynome_to_expression(), POLYNOME_UNDEFINED_P, REGION, region_entity, region_enumerate(), regions_dup(), regions_read_regions(), regions_write_regions(), RegionsIntersection(), s1, SizeOfElements(), statement_comments, statement_extensions, statement_instruction, statement_ordering, strdup(), string_undefined_p, type_variable, UUINT, variable_basic, and w_r_combinable_p().
Referenced by bdsc_code_instrumentation().
|
static |
Definition at line 49 of file instrumentation.c.
References CHAIN_SWORD, complexity_sprint(), complexity_zero_p(), concatenate(), CONS, copy_statement(), copy_type(), empty_comments, empty_extensions(), entity_undefined, exp, EXPRESSION, FPRINTF_FUNCTION_NAME, free(), free_extensions(), gen_consistent_p(), get_current_module_name(), get_current_module_statement(), HASH_UNDEFINED_VALUE, i2a(), is_basic_float, is_basic_string, load_statement_complexity(), make_basic(), make_call_statement(), make_cast(), make_constant_entity(), make_entity_expression(), make_expression(), make_expression_statement(), make_instruction_sequence(), make_sequence(), make_statement_list, make_syntax_cast(), MakeTypeVariable(), NIL, normalized_undefined, statement_comments, statement_equal_p(), statement_extensions, statement_instruction, statement_ordering, strdup(), string_undefined_p, UUINT, and words_to_string().
Referenced by bdsc_code_instrumentation().