OpenScop
0.9.0
|
#include "util.h"
Go to the source code of this file.
Defines | |
#define | OSL_DEBUG 0 |
#define | OSL_URI_SCOP "OpenScop" |
#define | OSL_PRECISION_ENV "OSL_PRECISION" |
#define | OSL_PRECISION_ENV_SP "32" |
#define | OSL_PRECISION_ENV_DP "64" |
#define | OSL_PRECISION_ENV_MP "0" |
#define | OSL_PRECISION_SP 32 |
#define | OSL_PRECISION_DP 64 |
#define | OSL_PRECISION_MP 0 |
#define | OSL_FMT_SP "%4ld" |
#define | OSL_FMT_DP "%4lld" |
#define | OSL_FMT_MP "%4s" |
#define | OSL_FMT_LENGTH 4 |
#define | OSL_FMT_TXT_SP "%ld" |
#define | OSL_FMT_TXT_DP "%lld" |
#define | OSL_FMT_TXT_MP "%s" |
#define | OSL_BACKEND_C 0 |
#define | OSL_BACKEND_FORTRAN 1 |
#define | OSL_UNDEFINED -1 |
#define | OSL_MAX_STRING 2048 |
#define | OSL_MIN_STRING 100 |
#define | OSL_MAX_ARRAYS 128 |
#define | OSL_TYPE_GENERIC 0 |
#define | OSL_TYPE_STRING 1 |
#define | OSL_TYPE_CONTEXT 2 |
#define | OSL_TYPE_DOMAIN 3 |
#define | OSL_TYPE_SCATTERING 4 |
#define | OSL_TYPE_ACCESS 5 |
#define | OSL_TYPE_READ 6 |
#define | OSL_TYPE_WRITE 7 |
#define | OSL_TYPE_MAY_WRITE 8 |
#define | OSL_FAKE_ARRAY "fakearray" |
#define | OSL_SYMBOL_TYPE_ITERATOR 1 |
#define | OSL_SYMBOL_TYPE_PARAMETER 2 |
#define | OSL_SYMBOL_TYPE_ARRAY 3 |
#define | OSL_SYMBOL_TYPE_FUNCTION 4 |
#define | OSL_STRING_UNDEFINED "UNDEFINED" |
#define | OSL_STRING_CONTEXT "CONTEXT" |
#define | OSL_STRING_DOMAIN "DOMAIN" |
#define | OSL_STRING_SCATTERING "SCATTERING" |
#define | OSL_STRING_READ "READ" |
#define | OSL_STRING_WRITE "WRITE" |
#define | OSL_STRING_MAY_WRITE "MAY_WRITE" |
#define | OSL_coucou(n) |
#define | OSL_debug(msg) |
#define | OSL_info(msg) |
#define | OSL_warning(msg) |
#define | OSL_error(msg) |
#define | OSL_overflow(msg) OSL_error(msg) |
#define | OSL_malloc(ptr, type, size) |
#define | OSL_realloc(ptr, type, size) |
#define | OSL_strdup(destination, source) |
#define | OSL_max(x, y) ((x) > (y)? (x) : (y)) |
#define | OSL_min(x, y) ((x) < (y)? (x) : (y)) |
#define OSL_BACKEND_C 0 |
#define OSL_BACKEND_FORTRAN 1 |
#define OSL_coucou | ( | n | ) |
#define OSL_debug | ( | msg | ) |
do { \ if (OSL_DEBUG) \ fprintf(stderr,"[osl] Debug: " msg " (%s).\n", __func__); \ } while (0)
Definition at line 133 of file macros.h.
Referenced by osl_arrays_sread(), osl_clay_sread(), osl_comment_sread(), osl_coordinates_sread(), osl_dependence_psread(), osl_extbody_sread(), osl_generic_read_one(), osl_generic_sread_one(), osl_irregular_sread(), osl_loop_sread(), osl_null_sread(), osl_relation_integrity_check(), osl_relation_sprint_comment(), osl_relation_strings(), osl_scatnames_sread(), osl_scop_get_nb_parameters(), osl_scop_pread(), osl_symbols_sread(), and osl_util_read_uptoflag().
#define OSL_error | ( | msg | ) |
do { \ fprintf(stderr,"[osl] Error: " msg " (%s).\n", __func__); \ exit(1); \ } while (0)
Definition at line 149 of file macros.h.
Referenced by osl_clay_sread(), osl_comment_sread(), osl_generic_add(), osl_int_abs(), osl_int_add(), osl_int_add_si(), osl_int_assign(), osl_int_clear(), osl_int_div_exact(), osl_int_divisible(), osl_int_eq(), osl_int_floor_div_q(), osl_int_floor_div_q_r(), osl_int_floor_div_r(), osl_int_gcd(), osl_int_get_d(), osl_int_get_si(), osl_int_init(), osl_int_init_set_si(), osl_int_mod(), osl_int_mone(), osl_int_mul(), osl_int_mul_si(), osl_int_neg(), osl_int_one(), osl_int_oppose(), osl_int_pos(), osl_int_set_si(), osl_int_size_in_base_10(), osl_int_size_in_base_2(), osl_int_sprint(), osl_int_sprint_txt(), osl_int_sscanf(), osl_int_swap(), osl_int_zero(), osl_interface_add(), osl_irregular_sread(), osl_relation_add_vector(), osl_relation_clone_nconstraints(), osl_relation_concat_constraints(), osl_relation_extend_output(), osl_relation_insert_blank_column(), osl_relation_insert_columns(), osl_relation_insert_constraints(), osl_relation_is_simple_output(), osl_relation_list_pread(), osl_relation_nclone(), osl_relation_pmalloc(), osl_relation_pread(), osl_relation_psread(), osl_relation_read_type(), osl_relation_remove_column(), osl_relation_remove_row(), osl_relation_replace_constraints(), osl_relation_replace_vector(), osl_relation_sub_vector(), osl_relation_swap_constraints(), osl_scop_check_compatible_scoplib(), osl_scop_pread(), osl_scop_print_scoplib(), osl_statement_dispatch(), osl_strings_generate(), osl_symbols_sread(), osl_util_read_int(), osl_util_read_line(), osl_util_read_string(), osl_util_read_tag(), osl_util_read_uptoflag(), osl_vector_add(), osl_vector_add_scalar(), osl_vector_sub(), osl_vector_tag_equality(), and osl_vector_tag_inequality().
#define OSL_FAKE_ARRAY "fakearray" |
#define OSL_FMT_DP "%4lld" |
Definition at line 83 of file macros.h.
Referenced by osl_int_sprint().
#define OSL_FMT_LENGTH 4 |
Definition at line 85 of file macros.h.
Referenced by osl_relation_column_string(), and osl_relation_column_string_scoplib().
#define OSL_FMT_MP "%4s" |
Definition at line 84 of file macros.h.
Referenced by osl_int_sprint().
#define OSL_FMT_SP "%4ld" |
Definition at line 82 of file macros.h.
Referenced by osl_int_sprint().
#define OSL_FMT_TXT_DP "%lld" |
Definition at line 87 of file macros.h.
Referenced by osl_int_sprint_txt(), and osl_int_sscanf().
#define OSL_FMT_TXT_MP "%s" |
Definition at line 88 of file macros.h.
Referenced by osl_int_sprint_txt().
#define OSL_FMT_TXT_SP "%ld" |
Definition at line 86 of file macros.h.
Referenced by osl_int_sprint_txt(), and osl_int_sscanf().
#define OSL_info | ( | msg | ) |
do { \ fprintf(stderr,"[osl] Info: " msg " (%s).\n", __func__); \ } while (0)
Definition at line 139 of file macros.h.
Referenced by osl_arrays_equal(), osl_body_equal(), osl_clay_equal(), osl_comment_equal(), osl_coordinates_equal(), osl_extbody_equal(), osl_loop_equal(), osl_null_equal(), osl_scop_equal(), and osl_statement_equal().
#define OSL_malloc | ( | ptr, | |
type, | |||
size | |||
) |
do { \ if (((ptr) = (type)malloc(size)) == NULL) \ OSL_error("memory overflow"); \ } while (0)
Definition at line 157 of file macros.h.
Referenced by osl_arrays_clone(), osl_arrays_malloc(), osl_arrays_sprint(), osl_arrays_sread(), osl_body_malloc(), osl_body_sprint(), osl_body_sread(), osl_clay_malloc(), osl_clay_sprint(), osl_comment_malloc(), osl_comment_sprint(), osl_coordinates_malloc(), osl_coordinates_sprint(), osl_dependence_malloc(), osl_dependence_sprint(), osl_extbody_clone(), osl_extbody_malloc(), osl_extbody_sprint(), osl_extbody_sread(), osl_generic_malloc(), osl_generic_sprint(), osl_int_init(), osl_int_init_set_si(), osl_int_malloc(), osl_interface_malloc(), osl_irregular_malloc(), osl_irregular_sprint(), osl_irregular_sread(), osl_loop_clone_one(), osl_loop_malloc(), osl_loop_sprint(), osl_loop_sread(), osl_names_malloc(), osl_null_malloc(), osl_null_sprint(), osl_pluto_unroll_malloc(), osl_relation_column_string(), osl_relation_column_string_scoplib(), osl_relation_expression_element(), osl_relation_list_malloc(), osl_relation_pmalloc(), osl_relation_spprint(), osl_relation_spprint_polylib(), osl_relation_spprint_polylib_scoplib(), osl_relation_spprint_scoplib(), osl_relation_sprint_comment(), osl_relation_sprint_type(), osl_relation_strings(), osl_relation_subexpression(), osl_scatnames_malloc(), osl_scop_malloc(), osl_statement_malloc(), osl_strings_clone(), osl_strings_encapsulate(), osl_strings_generate(), osl_strings_malloc(), osl_strings_sprint(), osl_strings_sread(), osl_symbols_malloc(), osl_symbols_sprint(), osl_textual_malloc(), osl_util_identifier_substitution(), osl_util_read_line(), osl_util_read_string(), osl_util_read_tag(), osl_util_read_uptoflag(), osl_util_strdup(), osl_util_tag_content(), and osl_vector_pmalloc().
#define OSL_max | ( | x, | |
y | |||
) | ((x) > (y)? (x) : (y)) |
Definition at line 181 of file macros.h.
Referenced by osl_relation_extend_output(), osl_relation_get_attributes(), osl_relation_list_get_attributes(), osl_scop_get_attributes(), osl_scop_normalize_scattering(), and osl_statement_get_attributes().
#define OSL_MAX_ARRAYS 128 |
#define OSL_MAX_STRING 2048 |
Definition at line 94 of file macros.h.
Referenced by osl_arrays_sprint(), osl_body_sprint(), osl_clay_sprint(), osl_clay_sread(), osl_comment_sprint(), osl_comment_sread(), osl_coordinates_sprint(), osl_dependence_sprint(), osl_extbody_sprint(), osl_generic_sprint(), osl_int_print(), osl_irregular_sprint(), osl_irregular_sread(), osl_loop_sprint(), osl_pluto_unroll_sprint(), osl_relation_column_string(), osl_relation_column_string_scoplib(), osl_relation_expression_element(), osl_relation_pread(), osl_relation_psread(), osl_relation_spprint(), osl_relation_spprint_polylib(), osl_relation_spprint_polylib_scoplib(), osl_relation_spprint_scoplib(), osl_relation_sprint_comment(), osl_relation_sprint_type(), osl_relation_strings(), osl_relation_subexpression(), osl_strings_read(), osl_strings_sprint(), osl_strings_sread(), osl_symbols_sprint(), osl_symbols_sread(), osl_util_identifier_substitution(), osl_util_read_int(), osl_util_read_line(), osl_util_read_string(), osl_util_read_tag(), osl_util_read_uptoflag(), osl_util_safe_strcat(), and osl_util_skip_blank_and_comments().
#define OSL_MIN_STRING 100 |
#define OSL_overflow | ( | msg | ) | OSL_error(msg) |
Definition at line 155 of file macros.h.
Referenced by osl_int_add(), osl_int_add_si(), osl_int_get_si(), osl_int_mul(), and osl_int_mul_si().
#define OSL_PRECISION_DP 64 |
Definition at line 79 of file macros.h.
Referenced by osl_int_abs(), osl_int_add(), osl_int_add_si(), osl_int_assign(), osl_int_clear(), osl_int_div_exact(), osl_int_divisible(), osl_int_dump_precision(), osl_int_eq(), osl_int_floor_div_q(), osl_int_floor_div_q_r(), osl_int_floor_div_r(), osl_int_gcd(), osl_int_get_d(), osl_int_get_si(), osl_int_init(), osl_int_init_set_si(), osl_int_is_precision_supported(), osl_int_mod(), osl_int_mone(), osl_int_mul(), osl_int_mul_si(), osl_int_neg(), osl_int_one(), osl_int_oppose(), osl_int_pos(), osl_int_set_si(), osl_int_size_in_base_10(), osl_int_size_in_base_2(), osl_int_sprint(), osl_int_sprint_txt(), osl_int_sscanf(), osl_int_swap(), osl_int_zero(), osl_relation_pmalloc(), and osl_util_get_precision().
#define OSL_PRECISION_ENV "OSL_PRECISION" |
Definition at line 74 of file macros.h.
Referenced by osl_util_get_precision().
#define OSL_PRECISION_ENV_DP "64" |
Definition at line 76 of file macros.h.
Referenced by osl_util_get_precision().
#define OSL_PRECISION_ENV_MP "0" |
Definition at line 77 of file macros.h.
Referenced by osl_util_get_precision().
#define OSL_PRECISION_ENV_SP "32" |
Definition at line 75 of file macros.h.
Referenced by osl_util_get_precision().
#define OSL_PRECISION_MP 0 |
Definition at line 80 of file macros.h.
Referenced by osl_int_abs(), osl_int_add(), osl_int_add_si(), osl_int_assign(), osl_int_clear(), osl_int_div_exact(), osl_int_divisible(), osl_int_dump_precision(), osl_int_eq(), osl_int_floor_div_q(), osl_int_floor_div_q_r(), osl_int_floor_div_r(), osl_int_gcd(), osl_int_get_d(), osl_int_get_si(), osl_int_init(), osl_int_init_set_si(), osl_int_is_precision_supported(), osl_int_mod(), osl_int_mone(), osl_int_mul(), osl_int_mul_si(), osl_int_neg(), osl_int_one(), osl_int_oppose(), osl_int_pos(), osl_int_set_si(), osl_int_size_in_base_10(), osl_int_size_in_base_2(), osl_int_sprint(), osl_int_sprint_txt(), osl_int_sscanf(), osl_int_sub(), osl_int_swap(), osl_int_zero(), osl_relation_pmalloc(), and osl_util_get_precision().
#define OSL_PRECISION_SP 32 |
Definition at line 78 of file macros.h.
Referenced by osl_int_abs(), osl_int_add(), osl_int_add_si(), osl_int_assign(), osl_int_clear(), osl_int_div_exact(), osl_int_divisible(), osl_int_dump_precision(), osl_int_eq(), osl_int_floor_div_q(), osl_int_floor_div_q_r(), osl_int_floor_div_r(), osl_int_gcd(), osl_int_get_d(), osl_int_get_si(), osl_int_init(), osl_int_init_set_si(), osl_int_is_precision_supported(), osl_int_mod(), osl_int_mone(), osl_int_mul(), osl_int_mul_si(), osl_int_neg(), osl_int_one(), osl_int_oppose(), osl_int_pos(), osl_int_set_si(), osl_int_size_in_base_10(), osl_int_size_in_base_2(), osl_int_sprint(), osl_int_sprint_txt(), osl_int_sscanf(), osl_int_swap(), osl_int_zero(), osl_relation_pmalloc(), and osl_util_get_precision().
#define OSL_realloc | ( | ptr, | |
type, | |||
size | |||
) |
do { \ if (((ptr) = (type)realloc(ptr, size)) == NULL) \ OSL_error("memory overflow"); \ } while (0)
Definition at line 163 of file macros.h.
Referenced by osl_arrays_sprint(), osl_clay_sprint(), osl_comment_sprint(), osl_coordinates_sprint(), osl_extbody_add(), osl_irregular_sprint(), osl_loop_sprint(), osl_pluto_unroll_fill(), osl_pluto_unroll_sprint(), osl_strings_add(), osl_symbols_sprint(), osl_util_read_line(), osl_util_read_string(), osl_util_read_uptoflag(), and osl_util_safe_strcat().
#define OSL_strdup | ( | destination, | |
source | |||
) |
do { \ if (source != NULL) { \ if (((destination) = osl_util_strdup(source)) == NULL) \ OSL_error("memory overflow"); \ } \ else { \ destination = NULL; \ OSL_warning("strdup of a NULL string"); \ } \ } while (0)
Definition at line 169 of file macros.h.
Referenced by osl_arrays_clone(), osl_arrays_interface(), osl_arrays_to_strings(), osl_body_interface(), osl_clay_clone(), osl_clay_idump(), osl_clay_interface(), osl_clay_sread(), osl_comment_clone(), osl_comment_idump(), osl_comment_interface(), osl_comment_sread(), osl_coordinates_clone(), osl_coordinates_interface(), osl_dependence_interface(), osl_extbody_interface(), osl_interface_nclone(), osl_irregular_add_control(), osl_irregular_add_exit(), osl_irregular_add_predicates(), osl_irregular_clone(), osl_irregular_interface(), osl_irregular_sread(), osl_loop_clone_one(), osl_loop_interface(), osl_null_interface(), osl_pluto_unroll_interface(), osl_relation_interface(), osl_relation_strings(), osl_scatnames_interface(), osl_scop_clone(), osl_scop_pread(), osl_strings_clone(), osl_strings_generate(), osl_strings_interface(), osl_strings_sread(), osl_symbols_interface(), osl_textual_clone(), osl_textual_idump(), osl_textual_interface(), and osl_textual_sread().
#define OSL_STRING_CONTEXT "CONTEXT" |
Definition at line 116 of file macros.h.
Referenced by osl_relation_read_type(), and osl_relation_sprint_type().
#define OSL_STRING_DOMAIN "DOMAIN" |
Definition at line 117 of file macros.h.
Referenced by osl_relation_read_type(), and osl_relation_sprint_type().
#define OSL_STRING_MAY_WRITE "MAY_WRITE" |
Definition at line 121 of file macros.h.
Referenced by osl_relation_read_type(), and osl_relation_sprint_type().
#define OSL_STRING_READ "READ" |
Definition at line 119 of file macros.h.
Referenced by osl_relation_read_type(), and osl_relation_sprint_type().
#define OSL_STRING_SCATTERING "SCATTERING" |
Definition at line 118 of file macros.h.
Referenced by osl_relation_read_type(), and osl_relation_sprint_type().
#define OSL_STRING_UNDEFINED "UNDEFINED" |
Definition at line 115 of file macros.h.
Referenced by osl_relation_read_type(), and osl_relation_sprint_type().
#define OSL_STRING_WRITE "WRITE" |
Definition at line 120 of file macros.h.
Referenced by osl_relation_read_type(), and osl_relation_sprint_type().
#define OSL_SYMBOL_TYPE_ARRAY 3 |
Definition at line 112 of file macros.h.
Referenced by osl_symbols_idump(), osl_symbols_sprint(), and osl_symbols_sread().
#define OSL_SYMBOL_TYPE_FUNCTION 4 |
Definition at line 113 of file macros.h.
Referenced by osl_symbols_idump(), osl_symbols_sprint(), and osl_symbols_sread().
#define OSL_SYMBOL_TYPE_ITERATOR 1 |
Definition at line 110 of file macros.h.
Referenced by osl_symbols_idump(), osl_symbols_sprint(), and osl_symbols_sread().
#define OSL_SYMBOL_TYPE_PARAMETER 2 |
Definition at line 111 of file macros.h.
Referenced by osl_symbols_idump(), osl_symbols_sprint(), and osl_symbols_sread().
#define OSL_TYPE_ACCESS 5 |
Definition at line 103 of file macros.h.
Referenced by osl_relation_get_attributes(), osl_relation_integrity_check(), osl_relation_is_access(), osl_relation_list_filter(), osl_statement_dispatch(), and osl_statement_integrity_check().
#define OSL_TYPE_CONTEXT 2 |
Definition at line 100 of file macros.h.
Referenced by osl_relation_get_attributes(), osl_relation_integrity_check(), osl_relation_read_type(), osl_relation_sprint_type(), osl_relation_strings(), and osl_scop_integrity_check().
#define OSL_TYPE_DOMAIN 3 |
Definition at line 101 of file macros.h.
Referenced by osl_relation_column_string_scoplib(), osl_relation_get_attributes(), osl_relation_integrity_check(), osl_relation_read_type(), osl_relation_spprint_polylib_scoplib(), osl_relation_sprint_type(), osl_relation_strings(), osl_statement_dispatch(), and osl_statement_integrity_check().
#define OSL_TYPE_GENERIC 0 |
#define OSL_TYPE_MAY_WRITE 8 |
Definition at line 106 of file macros.h.
Referenced by osl_relation_is_access(), osl_relation_list_pprint_access_array_scoplib(), osl_relation_read_type(), and osl_relation_sprint_type().
#define OSL_TYPE_READ 6 |
Definition at line 104 of file macros.h.
Referenced by osl_relation_is_access(), osl_relation_list_pprint_access_array_scoplib(), osl_relation_read_type(), osl_relation_spprint_polylib_scoplib(), and osl_relation_sprint_type().
#define OSL_TYPE_SCATTERING 4 |
Definition at line 102 of file macros.h.
Referenced by osl_relation_get_attributes(), osl_relation_read_type(), osl_relation_spprint_polylib_scoplib(), osl_relation_sprint_type(), osl_statement_dispatch(), and osl_statement_integrity_check().
#define OSL_TYPE_STRING 1 |
#define OSL_TYPE_WRITE 7 |
Definition at line 105 of file macros.h.
Referenced by osl_relation_is_access(), osl_relation_list_pprint_access_array_scoplib(), osl_relation_read_type(), osl_relation_spprint_polylib_scoplib(), and osl_relation_sprint_type().
#define OSL_UNDEFINED -1 |
Definition at line 93 of file macros.h.
Referenced by osl_coordinates_malloc(), osl_dependence_idump(), osl_dependence_malloc(), osl_dependence_sprint(), osl_relation_check_attribute(), osl_relation_check_nb_columns(), osl_relation_get_array_id(), osl_relation_get_attributes(), osl_relation_integrity_check(), osl_relation_list_get_attributes(), osl_relation_names(), osl_relation_pmalloc(), osl_relation_read_type(), osl_relation_sprint_type(), osl_scop_get_attributes(), osl_scop_integrity_check(), osl_scop_names(), osl_statement_get_attributes(), osl_statement_integrity_check(), osl_statement_names(), osl_symbols_idump(), osl_symbols_malloc(), osl_symbols_sprint(), and osl_symbols_sread().
#define OSL_URI_SCOP "OpenScop" |
Definition at line 72 of file macros.h.
Referenced by osl_generic_read(), osl_scop_pread(), and osl_scop_print().
#define OSL_warning | ( | msg | ) |
do { \ fprintf(stderr,"[osl] Warning: " msg " (%s).\n", __func__); \ } while (0)
Definition at line 144 of file macros.h.
Referenced by osl_generic_clone(), osl_generic_equal(), osl_generic_free(), osl_generic_read_one(), osl_generic_remove_node(), osl_generic_shell(), osl_generic_sread_one(), osl_interface_lookup(), osl_pluto_unroll_fill(), osl_relation_check_attribute(), osl_relation_check_nb_columns(), osl_relation_concat_constraints(), osl_relation_get_array_id(), osl_relation_integrity_check(), osl_relation_read_type(), osl_relation_sprint_type(), osl_scop_pread(), osl_scop_print(), osl_statement_get_nb_iterators(), osl_statement_integrity_check(), and osl_util_get_precision().