PIPS
|
#include <stdio.h>
#include "genC.h"
#include "linear.h"
#include "ri.h"
#include "database.h"
#include "resources.h"
#include "misc.h"
#include "ri-util.h"
#include "pipsdbm.h"
Go to the source code of this file.
Data Structures | |
struct | context_p |
cette structure contient une pile. More... | |
Typedefs | |
typedef struct context_p | context_t |
Enumerations | |
enum | contenu_t { is_unknown , is_a_perf_nes_loop , is_a_no_perf_nes_loop , is_a_no_perf_nes_loop_t , is_a_call , is_a_continue , is_a_while , is_a_test , is_a_stencil , is_a_continue , is_a_no_stencil } |
Functions | |
static bool | loop_flt (loop l, context_p context) |
static void | loop_rwt (loop l, context_p context) |
static bool | stmt_flt (statement s, context_p context) |
static void | stmt_rwt (statement s, context_p context) |
static bool | seq_flt (sequence sq, context_p context) |
static void | seq_rwt (sequence sq, context_p context) |
static bool | uns_flt (unstructured u, context_p context) |
static void | uns_rwt (unstructured u, context_p context) |
static bool | test_flt (test t, context_p context) |
static void | test_rwt (test t, context_p context) |
static bool | call_flt (call ca, context_p context) |
static void | call_rwt (call ca, context_p context) |
static void | wl_rwt (whileloop w, context_p context) |
static void | initialize () |
static void | put_result (string filename) |
bool | loop_statistics (const string name) |
cproto-generated files More... | |
Variables | |
static int * | nbr_no_perf_nest_loop_of_depth |
include "statistics.h" More... | |
static int * | nbr_perf_nest_loop_of_depth |
static int | nbr_loop |
static int | nbr_perfectly_nested_loop |
static int | nbr_interested_loop |
static int | nbr_no_perfectly_nested_loop |
static int | nbr_nested_loop |
static int | max_depth_perfect |
static int | max_depth_no_perfect |
static int | cpt |
static bool | first_turn |
enum contenu_t |
Definition at line 377 of file stats.c.
References pips_assert, and true.
Referenced by loop_statistics().
Definition at line 383 of file stats.c.
References call_function, entity_name, hash_put(), is_a_call, is_a_continue, and stack_head().
Referenced by loop_statistics().
|
static |
Definition at line 407 of file stats.c.
References cpt, first_turn, malloc(), max_depth_no_perfect, max_depth_perfect, nbr_interested_loop, nbr_loop, nbr_nested_loop, nbr_no_perf_nest_loop_of_depth, nbr_no_perfectly_nested_loop, nbr_perf_nest_loop_of_depth, and nbr_perfectly_nested_loop.
Referenced by loop_statistics(), and terapix_gram_management().
Definition at line 54 of file stats.c.
References cpt, first_turn, and pips_assert.
Referenced by loop_statistics().
Definition at line 61 of file stats.c.
References cpt, depth, first_turn, hash_get(), hash_put(), intptr_t, is_a_no_perf_nes_loop, is_a_no_perf_nes_loop_t, is_a_perf_nes_loop, loop_body, nbr_interested_loop, nbr_loop, and stack_head().
Referenced by loop_statistics().
bool loop_statistics | ( | const | string | ) |
cproto-generated files
name | ame |
Definition at line 450 of file stats.c.
References call_domain, call_flt(), call_rwt(), concatenate(), db_build_file_resource_name(), db_get_current_workspace_directory(), db_get_memory_resource(), DB_PUT_FILE_RESOURCE, debug_off, debug_on, expression_domain, free(), gen_context_multi_recurse(), gen_false(), gen_null(), gen_true(), hash_pointer, hash_table_free(), hash_table_make(), initialize(), local_name_to_top_level_entity(), loop_domain, loop_flt(), loop_rwt(), nbr_no_perf_nest_loop_of_depth, nbr_perf_nest_loop_of_depth, pips_debug, put_result(), reset_current_module_entity(), seq_flt(), seq_rwt(), sequence_domain, set_current_module_entity(), stack_free(), stack_make(), statement_domain, stmt_flt(), stmt_rwt(), strdup(), test_domain, test_flt(), test_rwt(), uns_flt(), uns_rwt(), unstructured_domain, whileloop_domain, and wl_rwt().
|
static |
Definition at line 423 of file stats.c.
References fprintf(), max_depth_no_perfect, max_depth_perfect, nbr_interested_loop, nbr_loop, nbr_nested_loop, nbr_no_perf_nest_loop_of_depth, nbr_no_perfectly_nested_loop, nbr_perf_nest_loop_of_depth, nbr_perfectly_nested_loop, safe_fclose(), and safe_fopen().
Referenced by loop_statistics().
Definition at line 116 of file stats.c.
References pips_assert.
Referenced by loop_statistics().
Definition at line 121 of file stats.c.
References depth, hash_get(), hash_put(), intptr_t, is_a_continue, is_a_no_perf_nes_loop, is_a_no_perf_nes_loop_t, is_a_perf_nes_loop, is_unknown, MAP, max, max_depth_no_perfect, max_depth_perfect, nbr_nested_loop, nbr_no_perf_nest_loop_of_depth, nbr_no_perfectly_nested_loop, nbr_perf_nest_loop_of_depth, nbr_perfectly_nested_loop, sequence_statements, stack_head(), and STATEMENT.
Referenced by loop_statistics().
Definition at line 97 of file stats.c.
References stack_push().
Referenced by loop_statistics().
pips_assert("information associated to statement", hash_defined_p(context->contenu, s) );
pips_assert("information associated to statement", hash_defined_p(context->depth, s) );
Definition at line 105 of file stats.c.
References pips_assert, and stack_pop().
Referenced by loop_statistics().
Definition at line 276 of file stats.c.
References pips_assert.
Referenced by loop_statistics().
Definition at line 281 of file stats.c.
References depth, hash_get(), hash_put(), intptr_t, is_a_no_perf_nes_loop, is_a_no_perf_nes_loop_t, is_a_perf_nes_loop, is_a_test, is_unknown, max, max_depth_no_perfect, max_depth_perfect, nbr_nested_loop, nbr_no_perf_nest_loop_of_depth, nbr_no_perfectly_nested_loop, nbr_perf_nest_loop_of_depth, nbr_perfectly_nested_loop, s1, stack_head(), test_false, and test_true.
Referenced by loop_statistics().
|
static |
Definition at line 215 of file stats.c.
References pips_assert.
Referenced by loop_statistics().
|
static |
Definition at line 220 of file stats.c.
References blocks, c_in, CONTROL_MAP, control_statement, depth, gen_free_list(), hash_get(), hash_put(), intptr_t, is_a_no_perf_nes_loop, is_a_no_perf_nes_loop_t, is_a_perf_nes_loop, is_unknown, max, max_depth_no_perfect, max_depth_perfect, nbr_nested_loop, nbr_no_perf_nest_loop_of_depth, nbr_no_perfectly_nested_loop, nbr_perf_nest_loop_of_depth, nbr_perfectly_nested_loop, NIL, stack_head(), and unstructured_control.
Referenced by loop_statistics().
Definition at line 399 of file stats.c.
References hash_put(), is_a_while, pips_assert, and stack_head().
Referenced by loop_statistics().
|
static |
Definition at line 41 of file stats.c.
Referenced by check_first_statement(), initialize(), loop_flt(), and loop_rwt().
|
static |
Definition at line 42 of file stats.c.
Referenced by initialize(), loop_flt(), and loop_rwt().
|
static |
Definition at line 41 of file stats.c.
Referenced by initialize(), put_result(), seq_rwt(), test_rwt(), and uns_rwt().
|
static |
Definition at line 41 of file stats.c.
Referenced by initialize(), put_result(), seq_rwt(), test_rwt(), and uns_rwt().
|
static |
Definition at line 39 of file stats.c.
Referenced by initialize(), loop_rwt(), and put_result().
|
static |
Definition at line 39 of file stats.c.
Referenced by initialize(), loop_rwt(), and put_result().
|
static |
Definition at line 40 of file stats.c.
Referenced by initialize(), put_result(), seq_rwt(), test_rwt(), and uns_rwt().
|
static |
include "statistics.h"
Definition at line 38 of file stats.c.
Referenced by initialize(), loop_statistics(), put_result(), seq_rwt(), test_rwt(), and uns_rwt().
|
static |
Definition at line 40 of file stats.c.
Referenced by initialize(), put_result(), seq_rwt(), test_rwt(), and uns_rwt().
|
static |
Definition at line 38 of file stats.c.
Referenced by initialize(), loop_statistics(), put_result(), seq_rwt(), test_rwt(), and uns_rwt().
|
static |
Definition at line 39 of file stats.c.
Referenced by initialize(), put_result(), seq_rwt(), test_rwt(), and uns_rwt().