PIPS
|
Go to the source code of this file.
Data Structures | |
struct | _newgen_struct_dag_ |
struct | _newgen_struct_dagvtx_ |
struct | _newgen_struct_pstatement_ |
struct | _newgen_struct_vtxcontent_ |
Typedefs | |
typedef struct _newgen_struct_entity_ * | entity |
typedef struct _newgen_struct_statement_ * | statement |
typedef struct _newgen_struct_dag_ * | dag |
typedef struct _newgen_struct_dagvtx_ * | dagvtx |
typedef struct _newgen_struct_pstatement_ * | pstatement |
typedef struct _newgen_struct_vtxcontent_ * | vtxcontent |
Enumerations | |
enum | pstatement_utype { is_pstatement_statement , is_pstatement_empty } |
#define _gen_freia_spoc_private_start 123 |
Definition at line 3 of file freia_spoc_private.h.
#define _newgen_dag_domain_defined_ |
Definition at line 26 of file freia_spoc_private.h.
#define _newgen_dagvtx_domain_defined_ |
Definition at line 34 of file freia_spoc_private.h.
#define _newgen_entity_domain_defined_ |
Definition at line 11 of file freia_spoc_private.h.
#define _newgen_pstatement_domain_defined_ |
Definition at line 42 of file freia_spoc_private.h.
#define _newgen_statement_domain_defined_ |
newgen_entity_domain_defined
Definition at line 18 of file freia_spoc_private.h.
#define _newgen_vtxcontent_domain_defined_ |
Definition at line 50 of file freia_spoc_private.h.
Definition at line 61 of file freia_spoc_private.h.
Definition at line 59 of file freia_spoc_private.h.
Definition at line 60 of file freia_spoc_private.h.
#define dag_domain (_gen_freia_spoc_private_start+0) |
newgen_statement_domain_defined
Definition at line 24 of file freia_spoc_private.h.
Definition at line 87 of file freia_spoc_private.h.
Definition at line 89 of file freia_spoc_private.h.
#define dag_inputs_ | ( | x | ) | dag_inputs(x) /**old hack compatible */ |
Definition at line 88 of file freia_spoc_private.h.
#define DAG_NEWGEN_DOMAIN (dag_domain) |
Definition at line 27 of file freia_spoc_private.h.
#define dag_NEWGEN_DOMAIN (dag_domain) |
Definition at line 28 of file freia_spoc_private.h.
Definition at line 91 of file freia_spoc_private.h.
#define dag_outputs_ | ( | x | ) | dag_outputs(x) /**old hack compatible */ |
Definition at line 90 of file freia_spoc_private.h.
#define DAG_TYPE dag |
Definition at line 62 of file freia_spoc_private.h.
#define dag_TYPE dag |
Definition at line 63 of file freia_spoc_private.h.
#define dag_undefined ((dag)gen_chunk_undefined) |
Definition at line 64 of file freia_spoc_private.h.
#define dag_undefined_p | ( | x | ) | ((x)==dag_undefined) |
Definition at line 65 of file freia_spoc_private.h.
Definition at line 93 of file freia_spoc_private.h.
#define dag_vertices_ | ( | x | ) | dag_vertices(x) /**old hack compatible */ |
Definition at line 92 of file freia_spoc_private.h.
DAGVTX.
Definition at line 97 of file freia_spoc_private.h.
Definition at line 100 of file freia_spoc_private.h.
Definition at line 98 of file freia_spoc_private.h.
Definition at line 99 of file freia_spoc_private.h.
Definition at line 127 of file freia_spoc_private.h.
#define dagvtx_content_ | ( | x | ) | dagvtx_content(x) /**old hack compatible */ |
Definition at line 126 of file freia_spoc_private.h.
#define dagvtx_domain (_gen_freia_spoc_private_start+1) |
newgen_dag_domain_defined
Definition at line 32 of file freia_spoc_private.h.
Definition at line 125 of file freia_spoc_private.h.
#define DAGVTX_NEWGEN_DOMAIN (dagvtx_domain) |
Definition at line 35 of file freia_spoc_private.h.
#define dagvtx_NEWGEN_DOMAIN (dagvtx_domain) |
Definition at line 36 of file freia_spoc_private.h.
Definition at line 129 of file freia_spoc_private.h.
#define dagvtx_succs_ | ( | x | ) | dagvtx_succs(x) /**old hack compatible */ |
Definition at line 128 of file freia_spoc_private.h.
#define DAGVTX_TYPE dagvtx |
Definition at line 101 of file freia_spoc_private.h.
#define dagvtx_TYPE dagvtx |
Definition at line 102 of file freia_spoc_private.h.
#define dagvtx_undefined ((dagvtx)gen_chunk_undefined) |
Definition at line 103 of file freia_spoc_private.h.
#define dagvtx_undefined_p | ( | x | ) | ((x)==dagvtx_undefined) |
Definition at line 104 of file freia_spoc_private.h.
#define ENTITY_NEWGEN_DOMAIN (entity_domain) |
Definition at line 12 of file freia_spoc_private.h.
#define entity_NEWGEN_DOMAIN (entity_domain) |
Definition at line 13 of file freia_spoc_private.h.
#define freia_spoc_private_spec "\--NEWGEN-START 123\n\import entity from \"ri.newgen\";\n\import statement from \"ri.newgen\";\n\dag = inputs:dagvtx* x outputs:dagvtx* x vertices:dagvtx*;\n\dagvtx = content:vtxcontent x succs:dagvtx*;\n\pstatement = persistant statement:statement + empty:unit;\n\vtxcontent = optype:int x opid:int x source:pstatement x inputs:entity* x out:entity;\n\" |
Definition at line 225 of file freia_spoc_private.h.
#define gen_DAG_cons gen_dag_cons |
Definition at line 72 of file freia_spoc_private.h.
#define gen_DAGVTX_cons gen_dagvtx_cons |
Definition at line 111 of file freia_spoc_private.h.
#define gen_PSTATEMENT_cons gen_pstatement_cons |
Definition at line 147 of file freia_spoc_private.h.
#define gen_VTXCONTENT_cons gen_vtxcontent_cons |
Definition at line 196 of file freia_spoc_private.h.
#define PSTATEMENT | ( | x | ) | ((pstatement)((x).p)) |
PSTATEMENT.
Definition at line 133 of file freia_spoc_private.h.
Definition at line 136 of file freia_spoc_private.h.
#define pstatement_CAST | ( | x | ) | PSTATEMENT(x) |
Definition at line 134 of file freia_spoc_private.h.
#define PSTATEMENT_CAST | ( | x | ) | PSTATEMENT(x) |
Definition at line 135 of file freia_spoc_private.h.
#define pstatement_domain (_gen_freia_spoc_private_start+2) |
newgen_dagvtx_domain_defined
Definition at line 40 of file freia_spoc_private.h.
Definition at line 171 of file freia_spoc_private.h.
Definition at line 178 of file freia_spoc_private.h.
#define pstatement_empty_ | ( | x | ) | pstatement_empty(x) /**old hack compatible */ |
Definition at line 177 of file freia_spoc_private.h.
#define pstatement_empty_p | ( | x | ) | (pstatement_tag(x)==is_pstatement_empty) |
Definition at line 176 of file freia_spoc_private.h.
#define PSTATEMENT_NEWGEN_DOMAIN (pstatement_domain) |
Definition at line 43 of file freia_spoc_private.h.
#define pstatement_NEWGEN_DOMAIN (pstatement_domain) |
Definition at line 44 of file freia_spoc_private.h.
Definition at line 175 of file freia_spoc_private.h.
#define pstatement_statement_ | ( | x | ) | pstatement_statement(x) /**old hack compatible */ |
Definition at line 174 of file freia_spoc_private.h.
#define pstatement_statement_p | ( | x | ) | (pstatement_tag(x)==is_pstatement_statement) |
Definition at line 173 of file freia_spoc_private.h.
Definition at line 172 of file freia_spoc_private.h.
#define PSTATEMENT_TYPE pstatement |
Definition at line 137 of file freia_spoc_private.h.
#define pstatement_TYPE pstatement |
Definition at line 138 of file freia_spoc_private.h.
#define pstatement_undefined ((pstatement)gen_chunk_undefined) |
Definition at line 139 of file freia_spoc_private.h.
#define pstatement_undefined_p | ( | x | ) | ((x)==pstatement_undefined) |
Definition at line 140 of file freia_spoc_private.h.
#define STATEMENT_NEWGEN_DOMAIN (statement_domain) |
Definition at line 19 of file freia_spoc_private.h.
#define statement_NEWGEN_DOMAIN (statement_domain) |
Definition at line 20 of file freia_spoc_private.h.
#define VTXCONTENT | ( | x | ) | ((vtxcontent)((x).p)) |
VTXCONTENT.
Definition at line 182 of file freia_spoc_private.h.
Definition at line 185 of file freia_spoc_private.h.
#define vtxcontent_CAST | ( | x | ) | VTXCONTENT(x) |
Definition at line 183 of file freia_spoc_private.h.
#define VTXCONTENT_CAST | ( | x | ) | VTXCONTENT(x) |
Definition at line 184 of file freia_spoc_private.h.
#define vtxcontent_domain (_gen_freia_spoc_private_start+3) |
newgen_pstatement_domain_defined
Definition at line 48 of file freia_spoc_private.h.
Definition at line 213 of file freia_spoc_private.h.
Definition at line 221 of file freia_spoc_private.h.
#define vtxcontent_inputs_ | ( | x | ) | vtxcontent_inputs(x) /**old hack compatible */ |
Definition at line 220 of file freia_spoc_private.h.
#define VTXCONTENT_NEWGEN_DOMAIN (vtxcontent_domain) |
Definition at line 51 of file freia_spoc_private.h.
#define vtxcontent_NEWGEN_DOMAIN (vtxcontent_domain) |
Definition at line 52 of file freia_spoc_private.h.
Definition at line 217 of file freia_spoc_private.h.
#define vtxcontent_opid_ | ( | x | ) | vtxcontent_opid(x) /**old hack compatible */ |
Definition at line 216 of file freia_spoc_private.h.
Definition at line 215 of file freia_spoc_private.h.
#define vtxcontent_optype_ | ( | x | ) | vtxcontent_optype(x) /**old hack compatible */ |
Definition at line 214 of file freia_spoc_private.h.
Definition at line 223 of file freia_spoc_private.h.
#define vtxcontent_out_ | ( | x | ) | vtxcontent_out(x) /**old hack compatible */ |
Definition at line 222 of file freia_spoc_private.h.
Definition at line 219 of file freia_spoc_private.h.
#define vtxcontent_source_ | ( | x | ) | vtxcontent_source(x) /**old hack compatible */ |
Definition at line 218 of file freia_spoc_private.h.
#define VTXCONTENT_TYPE vtxcontent |
Definition at line 186 of file freia_spoc_private.h.
#define vtxcontent_TYPE vtxcontent |
Definition at line 187 of file freia_spoc_private.h.
#define vtxcontent_undefined ((vtxcontent)gen_chunk_undefined) |
Definition at line 188 of file freia_spoc_private.h.
#define vtxcontent_undefined_p | ( | x | ) | ((x)==vtxcontent_undefined) |
Definition at line 189 of file freia_spoc_private.h.
typedef struct _newgen_struct_dag_* dag |
Definition at line 29 of file freia_spoc_private.h.
typedef struct _newgen_struct_dagvtx_* dagvtx |
Definition at line 37 of file freia_spoc_private.h.
typedef struct _newgen_struct_entity_* entity |
Definition at line 14 of file freia_spoc_private.h.
typedef struct _newgen_struct_pstatement_* pstatement |
Definition at line 45 of file freia_spoc_private.h.
typedef struct _newgen_struct_statement_* statement |
Definition at line 21 of file freia_spoc_private.h.
typedef struct _newgen_struct_vtxcontent_* vtxcontent |
Definition at line 53 of file freia_spoc_private.h.
enum pstatement_utype |
Enumerator | |
---|---|
is_pstatement_statement | |
is_pstatement_empty |
Definition at line 153 of file freia_spoc_private.h.
Definition at line 22 of file freia_spoc_private.c.
References dag_domain, and gen_check().
Referenced by dag_assign_contents(), and dag_consistent_p().
Definition at line 64 of file freia_spoc_private.c.
References dagvtx_domain, and gen_check().
Referenced by dagvtx_assign_contents(), and dagvtx_consistent_p().
pstatement check_pstatement | ( | pstatement | p | ) |
Definition at line 106 of file freia_spoc_private.c.
References gen_check(), and pstatement_domain.
Referenced by pstatement_assign_contents(), and pstatement_consistent_p().
vtxcontent check_vtxcontent | ( | vtxcontent | p | ) |
Definition at line 161 of file freia_spoc_private.c.
References gen_check(), and vtxcontent_domain.
Referenced by vtxcontent_assign_contents(), and vtxcontent_consistent_p().
DAG.
Definition at line 16 of file freia_spoc_private.c.
References gen_copy_tree().
Referenced by dag_split_on_scalars().
DAGVTX.
Definition at line 58 of file freia_spoc_private.c.
References gen_copy_tree().
Referenced by copy_dagvtx_norec().
pstatement copy_pstatement | ( | pstatement | p | ) |
PSTATEMENT.
Definition at line 100 of file freia_spoc_private.c.
References gen_copy_tree().
vtxcontent copy_vtxcontent | ( | vtxcontent | p | ) |
VTXCONTENT.
Definition at line 155 of file freia_spoc_private.c.
References gen_copy_tree().
Definition at line 35 of file freia_spoc_private.c.
References check_dag(), dag_defined_p(), and message_assert.
Definition at line 25 of file freia_spoc_private.c.
References check_dag(), and gen_consistent_p().
Definition at line 29 of file freia_spoc_private.c.
References gen_defined_p().
Referenced by dag_assign_contents().
void dag_non_recursive_free | ( | dag | p | ) |
Definition at line 42 of file freia_spoc_private.c.
References free().
Definition at line 77 of file freia_spoc_private.c.
References check_dagvtx(), dagvtx_defined_p(), and message_assert.
Definition at line 67 of file freia_spoc_private.c.
References check_dagvtx(), and gen_consistent_p().
Definition at line 71 of file freia_spoc_private.c.
References gen_defined_p().
Referenced by dagvtx_assign_contents().
void dagvtx_non_recursive_free | ( | dagvtx | p | ) |
Definition at line 84 of file freia_spoc_private.c.
References free().
void free_dag | ( | dag | p | ) |
Definition at line 19 of file freia_spoc_private.c.
References gen_free().
Referenced by dag_split_on_scalars(), freia_compile(), and opencl_generate_special_kernel_ops().
void free_dagvtx | ( | dagvtx | p | ) |
Definition at line 61 of file freia_spoc_private.c.
References gen_free().
Referenced by freia_dag_optimize(), freia_spoc_pipeline(), and freia_terapix_call().
void free_pstatement | ( | pstatement | p | ) |
Definition at line 103 of file freia_spoc_private.c.
References gen_free().
void free_vtxcontent | ( | vtxcontent | p | ) |
Definition at line 158 of file freia_spoc_private.c.
References gen_free().
Definition at line 32 of file freia_spoc_private.c.
References DAG_NEWGEN_DOMAIN, and gen_typed_cons().
Definition at line 74 of file freia_spoc_private.c.
References DAGVTX_NEWGEN_DOMAIN, and gen_typed_cons().
list gen_pstatement_cons | ( | pstatement | p, |
list | l | ||
) |
Definition at line 116 of file freia_spoc_private.c.
References gen_typed_cons(), and PSTATEMENT_NEWGEN_DOMAIN.
list gen_vtxcontent_cons | ( | vtxcontent | p, |
list | l | ||
) |
Definition at line 171 of file freia_spoc_private.c.
References gen_typed_cons(), and VTXCONTENT_NEWGEN_DOMAIN.
Definition at line 52 of file freia_spoc_private.c.
References dag_domain, gen_alloc(), and GEN_CHECK_ALLOC.
Referenced by compile_this_list(), dag_split_connected_components(), dag_split_on_scalars(), freia_build_dag(), mppa_dag_split(), and opencl_generate_special_kernel_ops().
dagvtx make_dagvtx | ( | vtxcontent | a1, |
list | a2 | ||
) |
Definition at line 94 of file freia_spoc_private.c.
References dagvtx_domain, gen_alloc(), and GEN_CHECK_ALLOC.
Referenced by dag_append_freia_call(), dag_append_vertex(), dag_remove_vertex(), and mppa_dag_split().
pstatement make_pstatement | ( | enum | pstatement_utype, |
void * | val | ||
) |
Definition at line 143 of file freia_spoc_private.c.
References gen_alloc(), GEN_CHECK_ALLOC, and pstatement_domain.
Referenced by make_pstatement_empty(), and make_pstatement_statement().
pstatement make_pstatement_empty | ( | void | ) |
Definition at line 149 of file freia_spoc_private.c.
References is_pstatement_empty, make_pstatement(), and UU.
Referenced by dag_append_vertex(), dag_remove_vertex(), and mppa_dag_split().
pstatement make_pstatement_statement | ( | statement | _field_ | ) |
Definition at line 146 of file freia_spoc_private.c.
References intptr_t, is_pstatement_statement, and make_pstatement().
Referenced by dag_append_freia_call().
vtxcontent make_vtxcontent | ( | intptr_t | a1, |
intptr_t | a2, | ||
pstatement | a3, | ||
list | a4, | ||
entity | a5 | ||
) |
Definition at line 191 of file freia_spoc_private.c.
References gen_alloc(), GEN_CHECK_ALLOC, and vtxcontent_domain.
Referenced by dag_append_freia_call(), dag_append_vertex(), dag_remove_vertex(), and mppa_dag_split().
void pstatement_assign_contents | ( | pstatement | r, |
pstatement | v | ||
) |
Definition at line 119 of file freia_spoc_private.c.
References check_pstatement(), message_assert, and pstatement_defined_p().
bool pstatement_consistent_p | ( | pstatement | p | ) |
Definition at line 109 of file freia_spoc_private.c.
References check_pstatement(), and gen_consistent_p().
bool pstatement_defined_p | ( | pstatement | p | ) |
Definition at line 113 of file freia_spoc_private.c.
References gen_defined_p().
Referenced by pstatement_assign_contents().
void pstatement_non_recursive_free | ( | pstatement | p | ) |
Definition at line 126 of file freia_spoc_private.c.
References free().
string pstatement_tag_as_string | ( | enum | pstatement_utype | ) |
Definition at line 136 of file freia_spoc_private.c.
References is_pstatement_empty, is_pstatement_statement, and string_undefined.
dag read_dag | ( | FILE * | f | ) |
Definition at line 49 of file freia_spoc_private.c.
References f(), and gen_read().
dagvtx read_dagvtx | ( | FILE * | f | ) |
Definition at line 91 of file freia_spoc_private.c.
References f(), and gen_read().
pstatement read_pstatement | ( | FILE * | f | ) |
Definition at line 133 of file freia_spoc_private.c.
References f(), and gen_read().
vtxcontent read_vtxcontent | ( | FILE * | f | ) |
Definition at line 188 of file freia_spoc_private.c.
References f(), and gen_read().
void vtxcontent_assign_contents | ( | vtxcontent | r, |
vtxcontent | v | ||
) |
Definition at line 174 of file freia_spoc_private.c.
References check_vtxcontent(), message_assert, and vtxcontent_defined_p().
bool vtxcontent_consistent_p | ( | vtxcontent | p | ) |
Definition at line 164 of file freia_spoc_private.c.
References check_vtxcontent(), and gen_consistent_p().
bool vtxcontent_defined_p | ( | vtxcontent | p | ) |
Definition at line 168 of file freia_spoc_private.c.
References gen_defined_p().
Referenced by vtxcontent_assign_contents().
void vtxcontent_non_recursive_free | ( | vtxcontent | p | ) |
Definition at line 181 of file freia_spoc_private.c.
References free().
void write_dag | ( | FILE * | f, |
dag | p | ||
) |
Definition at line 46 of file freia_spoc_private.c.
References f(), and gen_write().
void write_dagvtx | ( | FILE * | f, |
dagvtx | p | ||
) |
Definition at line 88 of file freia_spoc_private.c.
References f(), and gen_write().
void write_pstatement | ( | FILE * | f, |
pstatement | p | ||
) |
Definition at line 130 of file freia_spoc_private.c.
References f(), and gen_write().
void write_vtxcontent | ( | FILE * | f, |
vtxcontent | p | ||
) |
Definition at line 185 of file freia_spoc_private.c.
References f(), and gen_write().