Clan
0.8.0
|
Go to the source code of this file.
Defines | |
#define | CLAN_VERSION "0.8.0" |
#define | CLAN_DEBUG 0 |
#define | CLAN_TRUE 1 |
#define | CLAN_FALSE 0 |
#define | CLAN_MAX_LOCAL_VARIABLES 100 |
#define | CLAN_MAX_STRING 2048 |
#define | CLAN_MAX_DEPTH 50 |
#define | CLAN_MAX_PARAMETERS 128 |
#define | CLAN_MAX_LOCAL_DIMS 128 |
#define | CLAN_MAX_CONSTRAINTS 256 |
#define | CLAN_MAX_SCOPS 256 |
#define | CLAN_UNDEFINED -1 |
#define | CLAN_KEY_START 1 |
#define | CLAN_TYPE_ITERATOR 1 |
#define | CLAN_TYPE_ITERATOR_DEC 2 |
#define | CLAN_TYPE_PARAMETER 3 |
#define | CLAN_TYPE_ARRAY 4 |
#define | CLAN_TYPE_LOCAL_DIMS 5 |
#define | CLAN_TYPE_STRUCTURE 6 |
#define | CLAN_TYPE_FIELD 7 |
#define | CLAN_TYPE_FUNCTION 8 |
#define | CLAN_TYPE_READ 9 |
#define | CLAN_TYPE_WRITE 10 |
#define | CLAN_TYPE_RDWR 11 |
#define | CLAN_AUTOPRAGMA_FILE "clan_autopragma.c" |
#define | CLAN_info(msg) |
#define | CLAN_debug(msg) |
#define | CLAN_debug_call(function_call) |
#define | CLAN_warning(msg) |
#define | CLAN_error(msg) |
#define | CLAN_malloc(ptr, type, size) |
#define | CLAN_realloc(ptr, type, size) |
#define | CLAN_strdup(destination, source) |
#define | CLAN_max(x, y) ((x) > (y)? (x) : (y)) |
#define | CLAN_min(x, y) ((x) < (y)? (x) : (y)) |
#define CLAN_AUTOPRAGMA_FILE "clan_autopragma.c" |
Definition at line 73 of file macros.h.
Referenced by clan_parser_autoscop(), clan_scop_insert_pragmas(), clan_scop_print_autopragma(), and main().
#define CLAN_DEBUG 0 |
Definition at line 48 of file macros.h.
Referenced by clan_parser_add_ld(), clan_parser_autoscop(), clan_scanner(), clan_scop_print_autopragma(), and yyparse().
#define CLAN_debug | ( | msg | ) |
do { \ if (CLAN_DEBUG) \ fprintf(stderr,"[Clan] Debug: " msg " (%s).\n", __func__); \ } while (0)
Definition at line 85 of file macros.h.
Referenced by clan_parse(), clan_parser_add_ld(), clan_scop_no_pragma(), clan_scop_print_autopragma(), yyerror(), and yyparse().
#define CLAN_debug_call | ( | function_call | ) |
do { \ if (CLAN_DEBUG) \ function_call; \ } while (0)
Definition at line 91 of file macros.h.
Referenced by yyparse().
#define CLAN_error | ( | msg | ) |
do { \ fprintf(stderr,"[Clan] Error: " msg " (%s).\n", __func__); \ exit(1); \ } while (0)
Definition at line 102 of file macros.h.
Referenced by clan_options_read(), clan_options_set(), clan_parser_add_ld(), clan_parser_autoscop(), clan_parser_increment_loop_depth(), clan_relation_extract_bounding(), clan_relation_greater(), clan_relation_new_output_scalar(), clan_relation_new_output_vector(), clan_relation_oppose_row(), clan_relation_stride(), clan_relation_tag_array(), clan_relation_tag_equality(), clan_relation_tag_inequality(), clan_relation_to_expressions(), clan_scop_insert_pragmas(), clan_scop_no_pragma(), clan_scop_print_autopragma(), clan_scop_update_coordinates(), clan_symbol_update_type(), main(), and yyparse().
#define CLAN_FALSE 0 |
Definition at line 50 of file macros.h.
Referenced by clan_parser_autoscop(), clan_parser_state_initialize(), clan_scanner(), clan_scanner_initialize(), clan_scop_no_pragma(), and yyparse().
#define CLAN_info | ( | msg | ) |
#define CLAN_KEY_START 1 |
Definition at line 59 of file macros.h.
Referenced by clan_symbol_generate_new_key().
#define CLAN_malloc | ( | ptr, | |
type, | |||
size | |||
) |
do { \ if (((ptr) = (type)malloc(size)) == NULL) \ CLAN_error("memory overflow"); \ } while (0)
Definition at line 108 of file macros.h.
Referenced by clan_options_malloc(), clan_options_read(), clan_parser_state_malloc(), clan_scanner_initialize(), clan_scop_generate_scatnames(), clan_symbol_array_to_strings(), clan_symbol_malloc(), clan_symbol_to_arrays(), and clan_symbol_to_strings().
#define CLAN_MAX_CONSTRAINTS 256 |
#define CLAN_MAX_DEPTH 50 |
Definition at line 53 of file macros.h.
Referenced by clan_parser_increment_loop_depth(), clan_parser_state_initialize(), clan_parser_state_malloc(), clan_relation_compact(), clan_relation_existential(), clan_relation_extract_bounding(), clan_relation_stride(), clan_vector_term(), and yyparse().
#define CLAN_MAX_LOCAL_DIMS 128 |
Definition at line 55 of file macros.h.
Referenced by clan_parser_add_ld(), clan_parser_state_malloc(), clan_relation_existential(), clan_vector_term(), and yyparse().
#define CLAN_MAX_LOCAL_VARIABLES 100 |
#define CLAN_MAX_PARAMETERS 128 |
Definition at line 54 of file macros.h.
Referenced by clan_parser_state_malloc(), clan_relation_compact(), clan_relation_scattering(), clan_vector_term(), and yyparse().
#define CLAN_MAX_SCOPS 256 |
Definition at line 57 of file macros.h.
Referenced by clan_parser_autoscop(), and clan_scop_insert_pragmas().
#define CLAN_MAX_STRING 2048 |
Definition at line 52 of file macros.h.
Referenced by clan_scop_generate_scatnames(), and clan_scop_no_pragma().
#define CLAN_realloc | ( | ptr, | |
type, | |||
size | |||
) |
do { \ if (((ptr) = (type)realloc(ptr, size)) == NULL) \ CLAN_error("memory overflow"); \ } while (0)
Definition at line 114 of file macros.h.
Referenced by clan_options_read(), and clan_scanner().
#define CLAN_strdup | ( | destination, | |
source | |||
) |
do { \ if (source != NULL) { \ if (((destination) = strdup(source)) == NULL) \ CLAN_error("memory overflow"); \ } \ else { \ destination = NULL; \ CLAN_debug("strdup of a NULL string"); \ } \ } while (0)
Definition at line 120 of file macros.h.
Referenced by clan_options_read(), clan_scop_generate_clay(), clan_scop_generate_coordinates(), clan_scop_generate_scatnames(), clan_symbol_to_arrays(), and yyparse().
#define CLAN_TRUE 1 |
Definition at line 49 of file macros.h.
Referenced by clan_parser_autoscop(), clan_scanner(), clan_scop_no_pragma(), yyerror(), and yyparse().
#define CLAN_TYPE_ARRAY 4 |
Definition at line 64 of file macros.h.
Referenced by clan_symbol_print_structure(), and yyparse().
#define CLAN_TYPE_FIELD 7 |
#define CLAN_TYPE_FUNCTION 8 |
Definition at line 68 of file macros.h.
Referenced by clan_symbol_print_structure(), and yyparse().
#define CLAN_TYPE_ITERATOR 1 |
Definition at line 61 of file macros.h.
Referenced by clan_symbol_new_iterator(), clan_symbol_print_structure(), clan_symbol_update_type(), clan_vector_term(), and yyparse().
#define CLAN_TYPE_ITERATOR_DEC 2 |
#define CLAN_TYPE_LOCAL_DIMS 5 |
#define CLAN_TYPE_PARAMETER 3 |
Definition at line 63 of file macros.h.
Referenced by clan_symbol_print_structure(), clan_symbol_update_type(), and yyparse().
#define CLAN_TYPE_RDWR 11 |
#define CLAN_TYPE_READ 9 |
#define CLAN_TYPE_STRUCTURE 6 |
#define CLAN_TYPE_WRITE 10 |
#define CLAN_UNDEFINED -1 |
Definition at line 58 of file macros.h.
Referenced by clan_parser_autoscop(), clan_parser_state_initialize(), clan_scanner_initialize(), clan_scop_generate_coordinates(), clan_symbol_get_key(), clan_symbol_get_rank(), clan_symbol_get_type(), clan_symbol_malloc(), and yyparse().
#define CLAN_VERSION "0.8.0" |
Definition at line 46 of file macros.h.
Referenced by clan_options_version(), and clan_scop_print().
#define CLAN_warning | ( | msg | ) |
do { \ fprintf(stderr,"[Clan] Warning: " msg " (%s).\n", __func__); \ } while (0)
Definition at line 97 of file macros.h.
Referenced by clan_parser_autoscop(), and yyerror().