OpenScop  0.9.0
Defines
macros.h File Reference
#include "util.h"
Include dependency graph for macros.h:
This graph shows which files directly or indirectly include this file:

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 Documentation

#define OSL_BACKEND_C   0

Definition at line 91 of file macros.h.

#define OSL_BACKEND_FORTRAN   1

Definition at line 92 of file macros.h.

#define OSL_coucou (   n)
Value:
do {                                                              \
           int i = n +0;                                                   \
           fprintf(stderr,"[osl] Coucou %d (%s).\n", i, __func__);         \
         } while (0)

Definition at line 127 of file macros.h.

#define OSL_DEBUG   0

Definition at line 70 of file macros.h.

#define OSL_debug (   msg)
#define OSL_error (   msg)
Value:
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"

Definition at line 108 of file macros.h.

#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)
Value:
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 
)
Value:
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,
 
)    ((x) > (y)? (x) : (y))
#define OSL_MAX_ARRAYS   128

Definition at line 96 of file macros.h.

#define OSL_MAX_STRING   2048
#define OSL_min (   x,
 
)    ((x) < (y)? (x) : (y))

Definition at line 183 of file macros.h.

#define OSL_MIN_STRING   100

Definition at line 95 of file macros.h.

#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
#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
#define OSL_PRECISION_SP   32
#define OSL_realloc (   ptr,
  type,
  size 
)
#define OSL_strdup (   destination,
  source 
)
#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
#define OSL_TYPE_CONTEXT   2
#define OSL_TYPE_DOMAIN   3
#define OSL_TYPE_GENERIC   0

Definition at line 98 of file macros.h.

#define OSL_TYPE_MAY_WRITE   8
#define OSL_TYPE_READ   6
#define OSL_TYPE_SCATTERING   4
#define OSL_TYPE_STRING   1

Definition at line 99 of file macros.h.

#define OSL_TYPE_WRITE   7
#define OSL_UNDEFINED   -1
#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)