PIPS
|
#include <stdio.h>
#include <ctype.h>
#include "genC.h"
#include "linear.h"
#include "ri.h"
#include "effects.h"
#include "resources.h"
#include "misc.h"
#include "ri-util.h"
#include "prettyprint.h"
#include "effects-util.h"
#include "control.h"
#include "pipsdbm.h"
#include "text-util.h"
#include "properties.h"
Go to the source code of this file.
Macros | |
#define | NL "\n" |
#define | XMLPRETTY ".xml" |
#define | xml_print(format, args...) |
Functions | |
static void | xml_set_output (FILE *new_fp) |
static void | xml_output (string s) |
static void | xml_print_entity_name (entity e) |
static void | xml_print_type (type t) |
void | xml_print_entity_full (entity e) |
xml_output.c More... | |
static void | xml_print_parameter (entity p, bool is_a_dim) |
void | gather_grid_dim (statement s, void *ctx) |
bool | gpu_xml_dump (string mod_name) |
PIPSMAKE INTERFACE. More... | |
Variables | |
static FILE * | out_fp = 0 |
#define NL "\n" |
Definition at line 48 of file xml_output.c.
#define xml_print | ( | format, | |
args... | |||
) |
Definition at line 62 of file xml_output.c.
#define XMLPRETTY ".xml" |
Definition at line 50 of file xml_output.c.
void gather_grid_dim | ( | statement | s, |
void * | ctx | ||
) |
ctx | tx |
Definition at line 165 of file xml_output.c.
References comment(), CONS, pips_debug, statement_comments, string_undefined_p, and strndup().
Referenced by gpu_xml_dump().
PIPSMAKE INTERFACE.
Set the current module entity required to have many things working in PIPS:
First find grid dimension by looking for magic comments
of const strings
Print current module
mod_name | od_name |
Definition at line 187 of file xml_output.c.
References concatenate(), db_build_file_resource_name(), db_get_current_workspace_directory(), db_get_memory_resource(), DB_PUT_FILE_RESOURCE, debug_off, debug_on, entity_type, entity_user_name(), find_ith_parameter(), FOREACH, functional_parameters, gather_grid_dim(), gen_context_recurse, gen_length(), gen_true2(), get_current_module_entity(), module, module_name_to_entity(), module_statement, NIL, NL, pips_assert, pips_debug, reset_current_module_entity(), reset_current_module_statement(), safe_fclose(), safe_fopen(), same_string_p, set_current_module_entity(), set_current_module_statement(), statement_consistent_p(), statement_domain, strdup(), type_functional, type_functional_p, xml_print, xml_print_parameter(), and xml_set_output().
|
static |
Definition at line 68 of file xml_output.c.
References xml_print.
Referenced by xml_print_entity_full(), xml_print_entity_name(), and xml_print_type().
void xml_print_entity_full | ( | entity | e | ) |
Definition at line 132 of file xml_output.c.
References entity_name, entity_type, xml_output(), and xml_print_type().
|
static |
Definition at line 72 of file xml_output.c.
References entity_name, and xml_output().
Referenced by xml_print_type().
Definition at line 139 of file xml_output.c.
References basic_pointer_p, entity_type, entity_user_name(), NL, string_of_type(), type_variable, ultimate_type(), variable_basic, and xml_print.
Referenced by gpu_xml_dump().
|
static |
Definition at line 76 of file xml_output.c.
References FOREACH, is_type_area, is_type_enum, is_type_functional, is_type_statement, is_type_struct, is_type_union, is_type_unknown, is_type_varargs, is_type_variable, is_type_void, type_enum, type_struct, type_tag, type_undefined, type_union, xml_output(), xml_print, and xml_print_entity_name().
Referenced by xml_print_entity_full().
|
static |
Definition at line 55 of file xml_output.c.
References out_fp.
Referenced by gpu_xml_dump().
|
static |
Definition at line 52 of file xml_output.c.
Referenced by xml_set_output().