PIPS
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "genC.h"
#include "sac_private.h"
Go to the source code of this file.
Typedefs | |
typedef void * | operator_id_sons |
typedef void* operator_id_sons |
Definition at line 7 of file sac_private.c.
matchTree apply_matchTreeSons | ( | matchTreeSons | f, |
intptr_t | k | ||
) |
Definition at line 99 of file sac_private.c.
References f(), HASH_GET, intptr_t, and matchTreeSons_hash_table.
Referenced by select_tree_branch().
bool bound_matchTreeSons_p | ( | matchTreeSons | f, |
intptr_t | k | ||
) |
Definition at line 111 of file sac_private.c.
References f(), HASH_BOUND_P, intptr_t, and matchTreeSons_hash_table.
Referenced by select_tree_branch().
Definition at line 123 of file sac_private.c.
References gen_check(), and match_domain.
Referenced by match_assign_contents(), and match_consistent_p().
Definition at line 24 of file sac_private.c.
References gen_check(), and matchTree_domain.
Referenced by matchTree_assign_contents(), and matchTree_consistent_p().
matchTreeSons check_matchTreeSons | ( | matchTreeSons | p | ) |
Definition at line 66 of file sac_private.c.
References gen_check(), and matchTreeSons_domain.
Referenced by matchTreeSons_assign_contents(), and matchTreeSons_consistent_p().
Definition at line 165 of file sac_private.c.
References gen_check(), and opcode_domain.
Referenced by opcode_assign_contents(), and opcode_consistent_p().
opcodeClass check_opcodeClass | ( | opcodeClass | p | ) |
Definition at line 430 of file sac_private.c.
References gen_check(), and opcodeClass_domain.
Referenced by opcodeClass_assign_contents(), and opcodeClass_consistent_p().
operator_id_tree check_operator_id_tree | ( | operator_id_tree | p | ) |
Definition at line 207 of file sac_private.c.
References gen_check(), and operator_id_tree_domain.
Referenced by operator_id_tree_assign_contents(), and operator_id_tree_consistent_p().
patternArg check_patternArg | ( | patternArg | p | ) |
Definition at line 249 of file sac_private.c.
References gen_check(), and patternArg_domain.
Referenced by patternArg_assign_contents(), and patternArg_consistent_p().
Definition at line 304 of file sac_private.c.
References gen_check(), and patternx_domain.
Referenced by patternx_assign_contents(), and patternx_consistent_p().
reductionInfo check_reductionInfo | ( | reductionInfo | p | ) |
Definition at line 346 of file sac_private.c.
References gen_check(), and reductionInfo_domain.
Referenced by reductionInfo_assign_contents(), and reductionInfo_consistent_p().
simdstatement check_simdstatement | ( | simdstatement | p | ) |
Definition at line 388 of file sac_private.c.
References gen_check(), and simdstatement_domain.
Referenced by simdstatement_assign_contents(), and simdstatement_consistent_p().
transformation check_transformation | ( | transformation | p | ) |
Definition at line 480 of file sac_private.c.
References gen_check(), and transformation_domain.
Referenced by transformation_assign_contents(), and transformation_consistent_p().
MATCH.
Definition at line 117 of file sac_private.c.
References gen_copy_tree().
MATCHTREE.
Definition at line 18 of file sac_private.c.
References gen_copy_tree().
matchTreeSons copy_matchTreeSons | ( | matchTreeSons | p | ) |
MATCHTREESONS.
Definition at line 60 of file sac_private.c.
References gen_copy_tree().
OPCODE.
Definition at line 159 of file sac_private.c.
References gen_copy_tree().
opcodeClass copy_opcodeClass | ( | opcodeClass | p | ) |
OPCODECLASS.
Definition at line 424 of file sac_private.c.
References gen_copy_tree().
operator_id_tree copy_operator_id_tree | ( | operator_id_tree | p | ) |
OPERATOR_ID_TREE.
Definition at line 201 of file sac_private.c.
References gen_copy_tree().
patternArg copy_patternArg | ( | patternArg | p | ) |
PATTERNARG.
Definition at line 243 of file sac_private.c.
References gen_copy_tree().
PATTERNX.
Definition at line 298 of file sac_private.c.
References gen_copy_tree().
reductionInfo copy_reductionInfo | ( | reductionInfo | p | ) |
REDUCTIONINFO.
Definition at line 340 of file sac_private.c.
References gen_copy_tree().
simdstatement copy_simdstatement | ( | simdstatement | p | ) |
SIMDSTATEMENT.
Definition at line 382 of file sac_private.c.
References gen_copy_tree().
transformation copy_transformation | ( | transformation | p | ) |
TRANSFORMATION.
Definition at line 474 of file sac_private.c.
References gen_copy_tree().
matchTree delete_matchTreeSons | ( | matchTreeSons | f, |
intptr_t | k | ||
) |
Definition at line 108 of file sac_private.c.
References f(), HASH_DELETE, intptr_t, and matchTreeSons_hash_table.
void extend_matchTreeSons | ( | matchTreeSons | f, |
intptr_t | k, | ||
matchTree | v | ||
) |
Definition at line 105 of file sac_private.c.
References f(), HASH_EXTEND, intptr_t, and matchTreeSons_hash_table.
Referenced by insert_tree_branch().
void free_match | ( | match | p | ) |
Definition at line 120 of file sac_private.c.
References gen_free().
void free_matchTree | ( | matchTree | p | ) |
Definition at line 21 of file sac_private.c.
References gen_free().
void free_matchTreeSons | ( | matchTreeSons | p | ) |
Definition at line 63 of file sac_private.c.
References gen_free().
void free_opcode | ( | opcode | p | ) |
Definition at line 162 of file sac_private.c.
References gen_free().
void free_opcodeClass | ( | opcodeClass | p | ) |
Definition at line 427 of file sac_private.c.
References gen_free().
void free_operator_id_tree | ( | operator_id_tree | p | ) |
Definition at line 204 of file sac_private.c.
References gen_free().
void free_patternArg | ( | patternArg | p | ) |
Definition at line 246 of file sac_private.c.
References gen_free().
void free_patternx | ( | patternx | p | ) |
Definition at line 301 of file sac_private.c.
References gen_free().
void free_reductionInfo | ( | reductionInfo | p | ) |
Definition at line 343 of file sac_private.c.
References gen_free().
void free_simdstatement | ( | simdstatement | p | ) |
Definition at line 385 of file sac_private.c.
References gen_free().
void free_transformation | ( | transformation | p | ) |
Definition at line 477 of file sac_private.c.
References gen_free().
opcodeClass gen_find_opcodeClass | ( | char * | s | ) |
Definition at line 454 of file sac_private.c.
References gen_find_tabulated(), and opcodeClass_domain.
Referenced by get_opcodeClass().
Definition at line 133 of file sac_private.c.
References gen_typed_cons(), and MATCH_NEWGEN_DOMAIN.
Definition at line 34 of file sac_private.c.
References gen_typed_cons(), and MATCHTREE_NEWGEN_DOMAIN.
list gen_matchTreeSons_cons | ( | matchTreeSons | p, |
list | l | ||
) |
Definition at line 76 of file sac_private.c.
References gen_typed_cons(), and MATCHTREESONS_NEWGEN_DOMAIN.
Definition at line 175 of file sac_private.c.
References gen_typed_cons(), and OPCODE_NEWGEN_DOMAIN.
list gen_opcodeClass_cons | ( | opcodeClass | p, |
list | l | ||
) |
Definition at line 440 of file sac_private.c.
References gen_typed_cons(), and OPCODECLASS_NEWGEN_DOMAIN.
list gen_operator_id_tree_cons | ( | operator_id_tree | p, |
list | l | ||
) |
Definition at line 217 of file sac_private.c.
References gen_typed_cons(), and OPERATOR_ID_TREE_NEWGEN_DOMAIN.
list gen_patternArg_cons | ( | patternArg | p, |
list | l | ||
) |
Definition at line 259 of file sac_private.c.
References gen_typed_cons(), and PATTERNARG_NEWGEN_DOMAIN.
Definition at line 314 of file sac_private.c.
References gen_typed_cons(), and PATTERNX_NEWGEN_DOMAIN.
list gen_reductionInfo_cons | ( | reductionInfo | p, |
list | l | ||
) |
Definition at line 356 of file sac_private.c.
References gen_typed_cons(), and REDUCTIONINFO_NEWGEN_DOMAIN.
list gen_simdstatement_cons | ( | simdstatement | p, |
list | l | ||
) |
Definition at line 398 of file sac_private.c.
References gen_typed_cons(), and SIMDSTATEMENT_NEWGEN_DOMAIN.
list gen_transformation_cons | ( | transformation | p, |
list | l | ||
) |
Definition at line 490 of file sac_private.c.
References gen_typed_cons(), and TRANSFORMATION_NEWGEN_DOMAIN.
match make_match | ( | opcodeClass | a1, |
list | a2 | ||
) |
Definition at line 153 of file sac_private.c.
References gen_alloc(), GEN_CHECK_ALLOC, and match_domain.
Referenced by match_statement().
matchTree make_matchTree | ( | list | a1, |
matchTreeSons | a2 | ||
) |
Definition at line 54 of file sac_private.c.
References gen_alloc(), GEN_CHECK_ALLOC, and matchTree_domain.
Referenced by make_tree().
matchTreeSons make_matchTreeSons | ( | void | ) |
Definition at line 96 of file sac_private.c.
References gen_alloc(), GEN_CHECK_ALLOC, and matchTreeSons_domain.
Referenced by make_tree().
Definition at line 195 of file sac_private.c.
References gen_alloc(), GEN_CHECK_ALLOC, and opcode_domain.
Referenced by generate_opcode().
opcodeClass make_opcodeClass | ( | string | a1, |
intptr_t | a2, | ||
list | a3 | ||
) |
Definition at line 468 of file sac_private.c.
References gen_alloc(), GEN_CHECK_ALLOC, and opcodeClass_domain.
Referenced by insert_opcodeClass().
operator_id_tree make_operator_id_tree | ( | intptr_t | a1, |
operator_id_sons | a2 | ||
) |
Definition at line 237 of file sac_private.c.
References gen_alloc(), GEN_CHECK_ALLOC, and operator_id_tree_domain.
Referenced by insert_mapping(), and simd_operator_mappings().
patternArg make_patternArg | ( | enum patternArg_utype | tag, |
void * | val | ||
) |
Definition at line 286 of file sac_private.c.
References gen_alloc(), GEN_CHECK_ALLOC, and patternArg_domain.
Referenced by make_patternArg_dynamic(), and make_patternArg_static().
patternArg make_patternArg_dynamic | ( | void | ) |
Definition at line 292 of file sac_private.c.
References is_patternArg_dynamic, make_patternArg(), and UU.
patternArg make_patternArg_static | ( | intptr_t | _field_ | ) |
Definition at line 289 of file sac_private.c.
References intptr_t, is_patternArg_static, and make_patternArg().
patternx make_patternx | ( | opcodeClass | a1, |
list | a2 | ||
) |
Definition at line 334 of file sac_private.c.
References gen_alloc(), GEN_CHECK_ALLOC, and patternx_domain.
Referenced by insert_pattern().
reductionInfo make_reductionInfo | ( | reduction | a1, |
intptr_t | a2, | ||
entity | a3 | ||
) |
Definition at line 376 of file sac_private.c.
References gen_alloc(), GEN_CHECK_ALLOC, and reductionInfo_domain.
Referenced by add_reduction().
simdstatement make_simdstatement | ( | opcode | a1, |
intptr_t | a2, | ||
entity * | a3, | ||
expression * | a4 | ||
) |
Definition at line 418 of file sac_private.c.
References gen_alloc(), GEN_CHECK_ALLOC, and simdstatement_domain.
Referenced by make_simd_statement().
transformation make_transformation | ( | string | a1, |
intptr_t | a2, | ||
intptr_t | a3, | ||
intptr_t | a4, | ||
intptr_t | a5, | ||
intptr_t | a6, | ||
int * | a7 | ||
) |
Definition at line 510 of file sac_private.c.
References gen_alloc(), GEN_CHECK_ALLOC, and transformation_domain.
Referenced by insert_transformation().
Definition at line 136 of file sac_private.c.
References check_match(), match_defined_p(), and message_assert.
Definition at line 126 of file sac_private.c.
References check_match(), and gen_consistent_p().
Definition at line 130 of file sac_private.c.
References gen_defined_p().
Referenced by match_assign_contents().
void match_non_recursive_free | ( | match | p | ) |
Definition at line 143 of file sac_private.c.
References free().
Definition at line 37 of file sac_private.c.
References check_matchTree(), matchTree_defined_p(), and message_assert.
Definition at line 27 of file sac_private.c.
References check_matchTree(), and gen_consistent_p().
Definition at line 31 of file sac_private.c.
References gen_defined_p().
Referenced by matchTree_assign_contents().
void matchTree_non_recursive_free | ( | matchTree | p | ) |
Definition at line 44 of file sac_private.c.
References free().
void matchTreeSons_assign_contents | ( | matchTreeSons | r, |
matchTreeSons | v | ||
) |
Definition at line 79 of file sac_private.c.
References check_matchTreeSons(), matchTreeSons_defined_p(), and message_assert.
bool matchTreeSons_consistent_p | ( | matchTreeSons | p | ) |
Definition at line 69 of file sac_private.c.
References check_matchTreeSons(), and gen_consistent_p().
bool matchTreeSons_defined_p | ( | matchTreeSons | p | ) |
Definition at line 73 of file sac_private.c.
References gen_defined_p().
Referenced by matchTreeSons_assign_contents().
void matchTreeSons_non_recursive_free | ( | matchTreeSons | p | ) |
Definition at line 86 of file sac_private.c.
References free().
Definition at line 178 of file sac_private.c.
References check_opcode(), message_assert, and opcode_defined_p().
Definition at line 168 of file sac_private.c.
References check_opcode(), and gen_consistent_p().
Definition at line 172 of file sac_private.c.
References gen_defined_p().
Referenced by opcode_assign_contents().
void opcode_non_recursive_free | ( | opcode | p | ) |
Definition at line 185 of file sac_private.c.
References free().
void opcodeClass_assign_contents | ( | opcodeClass | r, |
opcodeClass | v | ||
) |
Definition at line 443 of file sac_private.c.
References check_opcodeClass(), message_assert, and opcodeClass_defined_p().
bool opcodeClass_consistent_p | ( | opcodeClass | p | ) |
Definition at line 433 of file sac_private.c.
References check_opcodeClass(), and gen_consistent_p().
bool opcodeClass_defined_p | ( | opcodeClass | p | ) |
Definition at line 437 of file sac_private.c.
References gen_defined_p().
Referenced by opcodeClass_assign_contents().
void opcodeClass_non_recursive_free | ( | opcodeClass | p | ) |
Definition at line 450 of file sac_private.c.
References free().
void operator_id_tree_assign_contents | ( | operator_id_tree | r, |
operator_id_tree | v | ||
) |
Definition at line 220 of file sac_private.c.
References check_operator_id_tree(), message_assert, and operator_id_tree_defined_p().
bool operator_id_tree_consistent_p | ( | operator_id_tree | p | ) |
Definition at line 210 of file sac_private.c.
References check_operator_id_tree(), and gen_consistent_p().
bool operator_id_tree_defined_p | ( | operator_id_tree | p | ) |
Definition at line 214 of file sac_private.c.
References gen_defined_p().
Referenced by operator_id_tree_assign_contents().
void operator_id_tree_non_recursive_free | ( | operator_id_tree | p | ) |
Definition at line 227 of file sac_private.c.
References free().
void patternArg_assign_contents | ( | patternArg | r, |
patternArg | v | ||
) |
Definition at line 262 of file sac_private.c.
References check_patternArg(), message_assert, and patternArg_defined_p().
bool patternArg_consistent_p | ( | patternArg | p | ) |
Definition at line 252 of file sac_private.c.
References check_patternArg(), and gen_consistent_p().
bool patternArg_defined_p | ( | patternArg | p | ) |
Definition at line 256 of file sac_private.c.
References gen_defined_p().
Referenced by patternArg_assign_contents().
void patternArg_non_recursive_free | ( | patternArg | p | ) |
Definition at line 269 of file sac_private.c.
References free().
string patternArg_tag_as_string | ( | enum patternArg_utype | tag | ) |
Definition at line 279 of file sac_private.c.
References is_patternArg_dynamic, is_patternArg_static, and string_undefined.
Definition at line 317 of file sac_private.c.
References check_patternx(), message_assert, and patternx_defined_p().
Definition at line 307 of file sac_private.c.
References check_patternx(), and gen_consistent_p().
Definition at line 311 of file sac_private.c.
References gen_defined_p().
Referenced by patternx_assign_contents().
void patternx_non_recursive_free | ( | patternx | p | ) |
Definition at line 324 of file sac_private.c.
References free().
match read_match | ( | FILE * | f | ) |
Definition at line 150 of file sac_private.c.
References f(), and gen_read().
matchTree read_matchTree | ( | FILE * | f | ) |
Definition at line 51 of file sac_private.c.
References f(), and gen_read().
matchTreeSons read_matchTreeSons | ( | FILE * | f | ) |
Definition at line 93 of file sac_private.c.
References f(), and gen_read().
opcode read_opcode | ( | FILE * | f | ) |
Definition at line 192 of file sac_private.c.
References f(), and gen_read().
operator_id_tree read_operator_id_tree | ( | FILE * | f | ) |
Definition at line 234 of file sac_private.c.
References f(), and gen_read().
patternArg read_patternArg | ( | FILE * | f | ) |
Definition at line 276 of file sac_private.c.
References f(), and gen_read().
patternx read_patternx | ( | FILE * | f | ) |
Definition at line 331 of file sac_private.c.
References f(), and gen_read().
reductionInfo read_reductionInfo | ( | FILE * | f | ) |
Definition at line 373 of file sac_private.c.
References f(), and gen_read().
simdstatement read_simdstatement | ( | FILE * | f | ) |
Definition at line 415 of file sac_private.c.
References f(), and gen_read().
void read_tabulated_opcodeClass | ( | FILE * | f | ) |
Definition at line 460 of file sac_private.c.
References abort, f(), fprintf(), gen_read_tabulated(), and opcodeClass_domain.
transformation read_transformation | ( | FILE * | f | ) |
Definition at line 507 of file sac_private.c.
References f(), and gen_read().
void reductionInfo_assign_contents | ( | reductionInfo | r, |
reductionInfo | v | ||
) |
Definition at line 359 of file sac_private.c.
References check_reductionInfo(), message_assert, and reductionInfo_defined_p().
bool reductionInfo_consistent_p | ( | reductionInfo | p | ) |
Definition at line 349 of file sac_private.c.
References check_reductionInfo(), and gen_consistent_p().
bool reductionInfo_defined_p | ( | reductionInfo | p | ) |
Definition at line 353 of file sac_private.c.
References gen_defined_p().
Referenced by reductionInfo_assign_contents().
void reductionInfo_non_recursive_free | ( | reductionInfo | p | ) |
Definition at line 366 of file sac_private.c.
References free().
void simdstatement_assign_contents | ( | simdstatement | r, |
simdstatement | v | ||
) |
Definition at line 401 of file sac_private.c.
References check_simdstatement(), message_assert, and simdstatement_defined_p().
bool simdstatement_consistent_p | ( | simdstatement | p | ) |
Definition at line 391 of file sac_private.c.
References check_simdstatement(), and gen_consistent_p().
bool simdstatement_defined_p | ( | simdstatement | p | ) |
Definition at line 395 of file sac_private.c.
References gen_defined_p().
Referenced by simdstatement_assign_contents().
void simdstatement_non_recursive_free | ( | simdstatement | p | ) |
Definition at line 408 of file sac_private.c.
References free().
void transformation_assign_contents | ( | transformation | r, |
transformation | v | ||
) |
Definition at line 493 of file sac_private.c.
References check_transformation(), message_assert, and transformation_defined_p().
bool transformation_consistent_p | ( | transformation | p | ) |
Definition at line 483 of file sac_private.c.
References check_transformation(), and gen_consistent_p().
bool transformation_defined_p | ( | transformation | p | ) |
Definition at line 487 of file sac_private.c.
References gen_defined_p().
Referenced by transformation_assign_contents().
void transformation_non_recursive_free | ( | transformation | p | ) |
Definition at line 500 of file sac_private.c.
References free().
void update_matchTreeSons | ( | matchTreeSons | f, |
intptr_t | k, | ||
matchTree | v | ||
) |
Definition at line 102 of file sac_private.c.
References f(), HASH_UPDATE, intptr_t, and matchTreeSons_hash_table.
void write_match | ( | FILE * | f, |
match | p | ||
) |
Definition at line 147 of file sac_private.c.
References f(), and gen_write().
void write_matchTree | ( | FILE * | f, |
matchTree | p | ||
) |
Definition at line 48 of file sac_private.c.
References f(), and gen_write().
void write_matchTreeSons | ( | FILE * | f, |
matchTreeSons | p | ||
) |
Definition at line 90 of file sac_private.c.
References f(), and gen_write().
void write_opcode | ( | FILE * | f, |
opcode | p | ||
) |
Definition at line 189 of file sac_private.c.
References f(), and gen_write().
void write_operator_id_tree | ( | FILE * | f, |
operator_id_tree | p | ||
) |
Definition at line 231 of file sac_private.c.
References f(), and gen_write().
void write_patternArg | ( | FILE * | f, |
patternArg | p | ||
) |
Definition at line 273 of file sac_private.c.
References f(), and gen_write().
void write_patternx | ( | FILE * | f, |
patternx | p | ||
) |
Definition at line 328 of file sac_private.c.
References f(), and gen_write().
void write_reductionInfo | ( | FILE * | f, |
reductionInfo | p | ||
) |
Definition at line 370 of file sac_private.c.
References f(), and gen_write().
void write_simdstatement | ( | FILE * | f, |
simdstatement | p | ||
) |
Definition at line 412 of file sac_private.c.
References f(), and gen_write().
void write_tabulated_opcodeClass | ( | FILE * | f | ) |
Definition at line 457 of file sac_private.c.
References f(), gen_write_tabulated(), and opcodeClass_domain.
void write_transformation | ( | FILE * | f, |
transformation | p | ||
) |
Definition at line 504 of file sac_private.c.
References f(), and gen_write().