PIPS
|
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <limits.h>
#include "genC.h"
#include "boolean.h"
#include "arithmetique.h"
#include "vecteur.h"
#include "contrainte.h"
#include "ray_dte.h"
#include "sommet.h"
#include "sg.h"
#include "sc.h"
#include "polyedre.h"
#include "matrix.h"
#include "ri.h"
#include "effects.h"
#include "graph.h"
#include "paf_ri.h"
#include "database.h"
#include "misc.h"
#include "ri-util.h"
#include "effects-util.h"
#include "text.h"
#include "static_controlize.h"
#include "text-util.h"
#include "pipsdbm.h"
#include "resources.h"
#include "prettyprint.h"
#include "paf-util.h"
Go to the source code of this file.
Macros | |
#define | MAX_STATIC_CONTROL_LINE_NUMBER 2048 |
#define | CODE_WITH_STATIC_CONTROLIZE_EXT ".stco" |
#define | MAX_CHAR_NUMBER 39 |
Typedefs | |
typedef void * | arc_label |
Name : prettyprint.c package : static_controlize Author : Arnauld LESERVOT Date : May 93 Modified : Documents : "Implementation of Array Data Flow Graph in Pips" Comments : More... | |
typedef void * | vertex_label |
Functions | |
bool | print_code_static_control (const string module_name) |
================================================================ More... | |
text | text_static_control (entity module __attribute__((unused)), int margin __attribute__((unused)), statement stat) |
================================================================ More... | |
text | store_sc_text_line (static_control sc) |
================================================================ More... | |
cons * | words_test_list (list obj) |
================================================================ More... | |
cons * | words_loop_list (list obj) |
================================================================ More... | |
list | words_entity_list (list obj) |
================================================================ More... | |
Variables | |
static statement_mapping | Gsc_map |
Global variables. More... | |
#define CODE_WITH_STATIC_CONTROLIZE_EXT ".stco" |
Definition at line 78 of file prettyprint.c.
#define MAX_CHAR_NUMBER 39 |
Definition at line 189 of file prettyprint.c.
#define MAX_STATIC_CONTROL_LINE_NUMBER 2048 |
Definition at line 77 of file prettyprint.c.
typedef void* arc_label |
Name : prettyprint.c package : static_controlize Author : Arnauld LESERVOT Date : May 93 Modified : Documents : "Implementation of Array Data Flow Graph in Pips" Comments :
Ansi includes
Newgen includes Pips includes
Types arc_label and vertex_label must be defined although they are not used
Definition at line 61 of file prettyprint.c.
typedef void* vertex_label |
Definition at line 62 of file prettyprint.c.
================================================================
cproto-generated files
void print_code_static_control((char*) module_name) AL 05/93 Prettyprints a static_control mapping attached to a module_name.
module_name | odule_name |
Definition at line 87 of file prettyprint.c.
References close_prettyprint(), CODE_WITH_STATIC_CONTROLIZE_EXT, db_get_memory_resource(), debug_off, debug_on, Gsc_map, ifdebug, init_prettyprint(), local_name_to_top_level_entity(), make_text(), make_text_resource(), MERGE_TEXTS, module, module_name(), NIL, text_module(), text_static_control(), and user_log().
text store_sc_text_line | ( | static_control | sc | ) |
================================================================
text store_sc_text_line((static_control) sc) AL 05/93 Stores a static_control prettyprinted.
pips_assert("store_text_line", sefs_list != NIL);
sc | c |
Definition at line 152 of file prettyprint.c.
References ADD_SENTENCE_TO_TEXT, comment(), concatenate(), get_prettyprint_language_tag(), is_language_c, is_sentence_formatted, make_sentence(), make_text(), NIL, static_control_loops, static_control_params, static_control_tests, static_control_yes, strdup(), words_entity_list(), words_loop_list(), words_test_list(), and words_to_string().
Referenced by text_static_control().
text text_static_control | ( | entity module | __attribute__(unused), |
int margin | __attribute__(unused), | ||
statement | stat | ||
) |
================================================================
text text_static_control((entity) module, (int) margin, (statement) stat) Function hook used by package text-util to prettyprint a static_control.
Definition at line 139 of file prettyprint.c.
References GET_STATEMENT_MAPPING, Gsc_map, and store_sc_text_line().
Referenced by print_code_static_control().
================================================================
cons *words_entity_list((list) obj) AL 05/93 Returns a list of strings from a list of entities.
FI: Should be moved in ri-util/entity.c or entities.c when it exists
obj | bj |
Definition at line 265 of file prettyprint.c.
References ADD_ELEMENT_TO_LIST, CHAIN_SWORD, concatenate(), ENTITY, entity_local_name(), FOREACH, NIL, pips_debug, strdup(), and STRING.
Referenced by print_structurals(), and store_sc_text_line().
================================================================
cons *words_loop_list((list) obj) AL 05/93 Returns a list of strings from a list of loops.
obj | bj |
Definition at line 226 of file prettyprint.c.
References CHAIN_SWORD, entity_local_name(), FOREACH, gen_copy_seq(), gen_nconc(), get_prettyprint_language_tag(), is_language_c, LOOP, loop_index, loop_range, NIL, pips_debug, range_lower, range_upper, strdup(), and Words_Expression().
Referenced by store_sc_text_line().
================================================================
cons *words_test_list((list) obj) AL 05/93 Makes a list of strings from a list of test expressions.
obj | bj |
Definition at line 195 of file prettyprint.c.
References CAR, CHAIN_SWORD, exp, EXPRESSION, gen_copy_seq(), gen_nconc(), get_prettyprint_language_tag(), is_language_c, MAPL, NIL, pips_debug, strdup(), and Words_Expression().
Referenced by store_sc_text_line().
|
static |
Global variables.
Definition at line 81 of file prettyprint.c.
Referenced by print_code_static_control(), and text_static_control().