Blame SOURCES/gcc11-isl-dl.patch

bee558
--- gcc/Makefile.in.jj	2015-06-06 10:00:25.000000000 +0200
bee558
+++ gcc/Makefile.in	2015-11-04 14:56:02.643536437 +0100
bee558
@@ -1063,7 +1063,7 @@ BUILD_LIBDEPS= $(BUILD_LIBIBERTY)
bee558
 # and the system's installed libraries.
bee558
 LIBS = @LIBS@ libcommon.a $(CPPLIB) $(LIBINTL) $(LIBICONV) $(LIBBACKTRACE) \
bee558
 	$(LIBIBERTY) $(LIBDECNUMBER) $(HOST_LIBS)
bee558
-BACKENDLIBS = $(ISLLIBS) $(GMPLIBS) $(PLUGINLIBS) $(HOST_LIBS) \
bee558
+BACKENDLIBS = $(if $(ISLLIBS),-ldl) $(GMPLIBS) $(PLUGINLIBS) $(HOST_LIBS) \
bee558
 	$(ZLIB) $(ZSTD_LIB)
bee558
 # Any system libraries needed just for GNAT.
bee558
 SYSLIBS = @GNAT_LIBEXC@
bee558
@@ -2302,6 +2302,15 @@ $(out_object_file): $(out_file)
bee558
 $(common_out_object_file): $(common_out_file)
bee558
 	$(COMPILE) $<
bee558
 	$(POSTCOMPILE)
bee558
+
bee558
+graphite%.o : \
bee558
+  ALL_CFLAGS := -O $(filter-out -fkeep-inline-functions, $(ALL_CFLAGS))
bee558
+graphite.o : \
bee558
+  ALL_CFLAGS := -O $(filter-out -fkeep-inline-functions, $(ALL_CFLAGS))
bee558
+graphite%.o : \
bee558
+  ALL_CXXFLAGS := -O $(filter-out -fkeep-inline-functions, $(ALL_CXXFLAGS))
bee558
+graphite.o : \
bee558
+  ALL_CXXFLAGS := -O $(filter-out -fkeep-inline-functions, $(ALL_CXXFLAGS))
bee558
 #
bee558
 # Generate header and source files from the machine description,
bee558
 # and compile them.
bee558
--- gcc/graphite.h.jj	2016-01-27 12:44:06.000000000 +0100
bee558
+++ gcc/graphite.h	2016-01-27 13:26:38.309876856 +0100
bee558
@@ -24,6 +24,591 @@ along with GCC; see the file COPYING3.
bee558
 
bee558
 #include "sese.h"
bee558
 
bee558
+#include <isl/version.h>
bee558
+#include <dlfcn.h>
bee558
+
bee558
+#define DYNSYMS \
bee558
+  DYNSYM (isl_aff_add_coefficient_si); \
bee558
+  DYNSYM (isl_aff_free); \
bee558
+  DYNSYM (isl_aff_get_space); \
bee558
+  DYNSYM (isl_aff_set_coefficient_si); \
bee558
+  DYNSYM (isl_aff_set_constant_si); \
bee558
+  DYNSYM (isl_aff_zero_on_domain); \
bee558
+  DYNSYM (isl_band_free); \
bee558
+  DYNSYM (isl_band_get_children); \
bee558
+  DYNSYM (isl_band_get_partial_schedule); \
bee558
+  DYNSYM (isl_band_has_children); \
bee558
+  DYNSYM (isl_band_list_free); \
bee558
+  DYNSYM (isl_band_list_get_band); \
bee558
+  DYNSYM (isl_band_list_get_ctx); \
bee558
+  DYNSYM (isl_band_list_n_band); \
bee558
+  DYNSYM (isl_band_n_member); \
bee558
+  DYNSYM (isl_basic_map_add_constraint); \
bee558
+  DYNSYM (isl_basic_map_project_out); \
bee558
+  DYNSYM (isl_basic_map_universe); \
bee558
+  DYNSYM (isl_constraint_set_coefficient_si); \
bee558
+  DYNSYM (isl_constraint_set_constant_si); \
bee558
+  DYNSYM (isl_ctx_alloc); \
bee558
+  DYNSYM (isl_ctx_free); \
bee558
+  DYNSYM (isl_equality_alloc); \
bee558
+  DYNSYM (isl_id_alloc); \
bee558
+  DYNSYM (isl_id_copy); \
bee558
+  DYNSYM (isl_id_free); \
bee558
+  DYNSYM (isl_inequality_alloc); \
bee558
+  DYNSYM (isl_local_space_copy); \
bee558
+  DYNSYM (isl_local_space_free); \
bee558
+  DYNSYM (isl_local_space_from_space); \
bee558
+  DYNSYM (isl_local_space_range); \
bee558
+  DYNSYM (isl_map_add_constraint); \
bee558
+  DYNSYM (isl_map_add_dims); \
bee558
+  DYNSYM (isl_map_align_params); \
bee558
+  DYNSYM (isl_map_apply_range); \
bee558
+  DYNSYM (isl_map_copy); \
bee558
+  DYNSYM (isl_map_dim); \
bee558
+  DYNSYM (isl_map_dump); \
bee558
+  DYNSYM (isl_map_equate); \
bee558
+  DYNSYM (isl_map_fix_si); \
bee558
+  DYNSYM (isl_map_flat_product); \
bee558
+  DYNSYM (isl_map_flat_range_product); \
bee558
+  DYNSYM (isl_map_free); \
bee558
+  DYNSYM (isl_map_from_basic_map); \
bee558
+  DYNSYM (isl_map_from_pw_aff); \
bee558
+  DYNSYM (isl_map_from_union_map); \
bee558
+  DYNSYM (isl_map_get_ctx); \
bee558
+  DYNSYM (isl_map_get_space); \
bee558
+  DYNSYM (isl_map_get_tuple_id); \
bee558
+  DYNSYM (isl_map_insert_dims); \
bee558
+  DYNSYM (isl_map_intersect); \
bee558
+  DYNSYM (isl_map_intersect_domain); \
bee558
+  DYNSYM (isl_map_intersect_range); \
bee558
+  DYNSYM (isl_map_is_empty); \
bee558
+  DYNSYM (isl_map_lex_ge); \
bee558
+  DYNSYM (isl_map_lex_le); \
bee558
+  DYNSYM (isl_map_n_out); \
bee558
+  DYNSYM (isl_map_range); \
bee558
+  DYNSYM (isl_map_set_tuple_id); \
bee558
+  DYNSYM (isl_map_universe); \
bee558
+  DYNSYM (isl_options_set_on_error); \
bee558
+  DYNSYM (isl_options_set_schedule_serialize_sccs); \
bee558
+  DYNSYM (isl_printer_set_yaml_style); \
bee558
+  DYNSYM (isl_options_set_schedule_max_constant_term); \
bee558
+  DYNSYM (isl_options_set_schedule_maximize_band_depth); \
bee558
+  DYNSYM (isl_printer_free); \
bee558
+  DYNSYM (isl_printer_print_aff); \
bee558
+  DYNSYM (isl_printer_print_constraint); \
bee558
+  DYNSYM (isl_printer_print_map); \
bee558
+  DYNSYM (isl_printer_print_set); \
bee558
+  DYNSYM (isl_printer_to_file); \
bee558
+  DYNSYM (isl_pw_aff_add); \
bee558
+  DYNSYM (isl_pw_aff_alloc); \
bee558
+  DYNSYM (isl_pw_aff_copy); \
bee558
+  DYNSYM (isl_pw_aff_eq_set); \
bee558
+  DYNSYM (isl_pw_aff_free); \
bee558
+  DYNSYM (isl_pw_aff_from_aff); \
bee558
+  DYNSYM (isl_pw_aff_ge_set); \
bee558
+  DYNSYM (isl_pw_aff_gt_set); \
bee558
+  DYNSYM (isl_pw_aff_is_cst); \
bee558
+  DYNSYM (isl_pw_aff_le_set); \
bee558
+  DYNSYM (isl_pw_aff_lt_set); \
bee558
+  DYNSYM (isl_pw_aff_mul); \
bee558
+  DYNSYM (isl_pw_aff_ne_set); \
bee558
+  DYNSYM (isl_pw_aff_nonneg_set); \
bee558
+  DYNSYM (isl_pw_aff_set_tuple_id); \
bee558
+  DYNSYM (isl_pw_aff_sub); \
bee558
+  DYNSYM (isl_pw_aff_zero_set); \
bee558
+  DYNSYM (isl_schedule_free); \
bee558
+  DYNSYM (isl_schedule_get_band_forest); \
bee558
+  DYNSYM (isl_set_add_constraint); \
bee558
+  DYNSYM (isl_set_add_dims); \
bee558
+  DYNSYM (isl_set_apply); \
bee558
+  DYNSYM (isl_set_coalesce); \
bee558
+  DYNSYM (isl_set_copy); \
bee558
+  DYNSYM (isl_set_dim); \
bee558
+  DYNSYM (isl_set_fix_si); \
bee558
+  DYNSYM (isl_set_free); \
bee558
+  DYNSYM (isl_set_get_space); \
bee558
+  DYNSYM (isl_set_get_tuple_id); \
bee558
+  DYNSYM (isl_set_intersect); \
bee558
+  DYNSYM (isl_set_is_empty); \
bee558
+  DYNSYM (isl_set_n_dim); \
bee558
+  DYNSYM (isl_set_nat_universe); \
bee558
+  DYNSYM (isl_set_project_out); \
bee558
+  DYNSYM (isl_set_set_tuple_id); \
bee558
+  DYNSYM (isl_set_universe); \
bee558
+  DYNSYM (isl_space_add_dims); \
bee558
+  DYNSYM (isl_space_alloc); \
bee558
+  DYNSYM (isl_space_copy); \
bee558
+  DYNSYM (isl_space_dim); \
bee558
+  DYNSYM (isl_space_domain); \
bee558
+  DYNSYM (isl_space_find_dim_by_id); \
bee558
+  DYNSYM (isl_space_free); \
bee558
+  DYNSYM (isl_space_from_domain); \
bee558
+  DYNSYM (isl_space_get_tuple_id); \
bee558
+  DYNSYM (isl_space_params_alloc); \
bee558
+  DYNSYM (isl_space_range); \
bee558
+  DYNSYM (isl_space_set_alloc); \
bee558
+  DYNSYM (isl_space_set_dim_id); \
bee558
+  DYNSYM (isl_space_set_tuple_id); \
bee558
+  DYNSYM (isl_union_map_add_map); \
bee558
+  DYNSYM (isl_union_map_align_params); \
bee558
+  DYNSYM (isl_union_map_apply_domain); \
bee558
+  DYNSYM (isl_union_map_apply_range); \
bee558
+  DYNSYM (isl_union_map_compute_flow); \
bee558
+  DYNSYM (isl_union_map_copy); \
bee558
+  DYNSYM (isl_union_map_empty); \
bee558
+  DYNSYM (isl_union_map_flat_range_product); \
bee558
+  DYNSYM (isl_union_map_foreach_map); \
bee558
+  DYNSYM (isl_union_map_free); \
bee558
+  DYNSYM (isl_union_map_from_map); \
bee558
+  DYNSYM (isl_union_map_get_ctx); \
bee558
+  DYNSYM (isl_union_map_get_space); \
bee558
+  DYNSYM (isl_union_map_gist_domain); \
bee558
+  DYNSYM (isl_union_map_gist_range); \
bee558
+  DYNSYM (isl_union_map_intersect_domain); \
bee558
+  DYNSYM (isl_union_map_is_empty); \
bee558
+  DYNSYM (isl_union_map_subtract); \
bee558
+  DYNSYM (isl_union_map_union); \
bee558
+  DYNSYM (isl_union_set_add_set); \
bee558
+  DYNSYM (isl_union_set_compute_schedule); \
bee558
+  DYNSYM (isl_union_set_copy); \
bee558
+  DYNSYM (isl_union_set_empty); \
bee558
+  DYNSYM (isl_union_set_from_set); \
bee558
+  DYNSYM (isl_aff_add_constant_val); \
bee558
+  DYNSYM (isl_aff_get_coefficient_val); \
bee558
+  DYNSYM (isl_aff_get_ctx); \
bee558
+  DYNSYM (isl_aff_mod_val); \
bee558
+  DYNSYM (isl_ast_build_ast_from_schedule); \
bee558
+  DYNSYM (isl_ast_build_free); \
bee558
+  DYNSYM (isl_ast_build_from_context); \
bee558
+  DYNSYM (isl_ast_build_get_ctx); \
bee558
+  DYNSYM (isl_ast_build_get_schedule); \
bee558
+  DYNSYM (isl_ast_build_get_schedule_space); \
bee558
+  DYNSYM (isl_ast_build_set_before_each_for); \
bee558
+  DYNSYM (isl_ast_build_set_options); \
bee558
+  DYNSYM (isl_ast_expr_free); \
bee558
+  DYNSYM (isl_ast_expr_from_val); \
bee558
+  DYNSYM (isl_ast_expr_get_ctx); \
bee558
+  DYNSYM (isl_ast_expr_get_id); \
bee558
+  DYNSYM (isl_ast_expr_get_op_arg); \
bee558
+  DYNSYM (isl_ast_expr_get_op_n_arg); \
bee558
+  DYNSYM (isl_ast_expr_get_op_type); \
bee558
+  DYNSYM (isl_ast_expr_get_type); \
bee558
+  DYNSYM (isl_ast_expr_get_val); \
bee558
+  DYNSYM (isl_ast_expr_sub); \
bee558
+  DYNSYM (isl_ast_node_block_get_children); \
bee558
+  DYNSYM (isl_ast_node_for_get_body); \
bee558
+  DYNSYM (isl_ast_node_for_get_cond); \
bee558
+  DYNSYM (isl_ast_node_for_get_inc); \
bee558
+  DYNSYM (isl_ast_node_for_get_init); \
bee558
+  DYNSYM (isl_ast_node_for_get_iterator); \
bee558
+  DYNSYM (isl_ast_node_free); \
bee558
+  DYNSYM (isl_ast_node_get_annotation); \
bee558
+  DYNSYM (isl_ast_node_get_type); \
bee558
+  DYNSYM (isl_ast_node_if_get_cond); \
bee558
+  DYNSYM (isl_ast_node_if_get_else); \
bee558
+  DYNSYM (isl_ast_node_if_get_then); \
bee558
+  DYNSYM (isl_ast_node_list_free); \
bee558
+  DYNSYM (isl_ast_node_list_get_ast_node); \
bee558
+  DYNSYM (isl_ast_node_list_n_ast_node); \
bee558
+  DYNSYM (isl_ast_node_user_get_expr); \
bee558
+  DYNSYM (isl_constraint_set_coefficient_val); \
bee558
+  DYNSYM (isl_constraint_set_constant_val); \
bee558
+  DYNSYM (isl_id_get_user); \
bee558
+  DYNSYM (isl_local_space_get_ctx); \
bee558
+  DYNSYM (isl_map_fix_val); \
bee558
+  DYNSYM (isl_options_set_ast_build_atomic_upper_bound); \
bee558
+  DYNSYM (isl_printer_print_ast_node); \
bee558
+  DYNSYM (isl_printer_print_str); \
bee558
+  DYNSYM (isl_printer_set_output_format); \
bee558
+  DYNSYM (isl_pw_aff_mod_val); \
bee558
+  DYNSYM (isl_schedule_constraints_compute_schedule); \
bee558
+  DYNSYM (isl_schedule_constraints_on_domain); \
bee558
+  DYNSYM (isl_schedule_constraints_set_coincidence); \
bee558
+  DYNSYM (isl_schedule_constraints_set_proximity); \
bee558
+  DYNSYM (isl_schedule_constraints_set_validity); \
bee558
+  DYNSYM (isl_set_get_dim_id); \
bee558
+  DYNSYM (isl_set_max_val); \
bee558
+  DYNSYM (isl_set_min_val); \
bee558
+  DYNSYM (isl_set_params); \
bee558
+  DYNSYM (isl_space_align_params); \
bee558
+  DYNSYM (isl_space_map_from_domain_and_range); \
bee558
+  DYNSYM (isl_space_set_tuple_name); \
bee558
+  DYNSYM (isl_space_wrap); \
bee558
+  DYNSYM (isl_union_map_from_domain_and_range); \
bee558
+  DYNSYM (isl_union_map_range); \
bee558
+  DYNSYM (isl_union_set_union); \
bee558
+  DYNSYM (isl_union_set_universe); \
bee558
+  DYNSYM (isl_val_2exp); \
bee558
+  DYNSYM (isl_val_add_ui); \
bee558
+  DYNSYM (isl_val_copy); \
bee558
+  DYNSYM (isl_val_free); \
bee558
+  DYNSYM (isl_val_int_from_si); \
bee558
+  DYNSYM (isl_val_int_from_ui); \
bee558
+  DYNSYM (isl_val_mul); \
bee558
+  DYNSYM (isl_val_neg); \
bee558
+  DYNSYM (isl_val_sub); \
bee558
+  DYNSYM (isl_printer_print_union_map); \
bee558
+  DYNSYM (isl_pw_aff_get_ctx); \
bee558
+  DYNSYM (isl_val_is_int); \
bee558
+  DYNSYM (isl_ctx_get_max_operations); \
bee558
+  DYNSYM (isl_ctx_set_max_operations); \
bee558
+  DYNSYM (isl_ctx_last_error); \
bee558
+  DYNSYM (isl_ctx_reset_operations); \
bee558
+  DYNSYM (isl_map_coalesce); \
bee558
+  DYNSYM (isl_printer_print_schedule); \
bee558
+  DYNSYM (isl_set_set_dim_id); \
bee558
+  DYNSYM (isl_union_map_coalesce); \
bee558
+  DYNSYM (isl_multi_val_set_val); \
bee558
+  DYNSYM (isl_multi_val_zero); \
bee558
+  DYNSYM (isl_options_set_schedule_max_coefficient); \
bee558
+  DYNSYM (isl_options_set_tile_scale_tile_loops); \
bee558
+  DYNSYM (isl_schedule_copy); \
bee558
+  DYNSYM (isl_schedule_get_map); \
bee558
+  DYNSYM (isl_schedule_map_schedule_node_bottom_up); \
bee558
+  DYNSYM (isl_schedule_node_band_get_permutable); \
bee558
+  DYNSYM (isl_schedule_node_band_get_space); \
bee558
+  DYNSYM (isl_schedule_node_band_tile); \
bee558
+  DYNSYM (isl_schedule_node_child); \
bee558
+  DYNSYM (isl_schedule_node_free); \
bee558
+  DYNSYM (isl_schedule_node_get_child); \
bee558
+  DYNSYM (isl_schedule_node_get_ctx); \
bee558
+  DYNSYM (isl_schedule_node_get_type); \
bee558
+  DYNSYM (isl_schedule_node_n_children); \
bee558
+  DYNSYM (isl_union_map_is_equal); \
bee558
+  DYNSYM (isl_union_access_info_compute_flow); \
bee558
+  DYNSYM (isl_union_access_info_from_sink); \
bee558
+  DYNSYM (isl_union_access_info_set_may_source); \
bee558
+  DYNSYM (isl_union_access_info_set_must_source); \
bee558
+  DYNSYM (isl_union_access_info_set_schedule); \
bee558
+  DYNSYM (isl_union_flow_free); \
bee558
+  DYNSYM (isl_union_flow_get_may_dependence); \
bee558
+  DYNSYM (isl_union_flow_get_must_dependence); \
bee558
+  DYNSYM (isl_aff_var_on_domain); \
bee558
+  DYNSYM (isl_multi_aff_from_aff); \
bee558
+  DYNSYM (isl_schedule_get_ctx); \
bee558
+  DYNSYM (isl_multi_aff_set_tuple_id); \
bee558
+  DYNSYM (isl_multi_aff_dim); \
bee558
+  DYNSYM (isl_schedule_get_domain); \
bee558
+  DYNSYM (isl_union_set_is_empty); \
bee558
+  DYNSYM (isl_union_set_get_space); \
bee558
+  DYNSYM (isl_union_pw_multi_aff_empty); \
bee558
+  DYNSYM (isl_union_set_foreach_set); \
bee558
+  DYNSYM (isl_union_set_free); \
bee558
+  DYNSYM (isl_multi_union_pw_aff_from_union_pw_multi_aff); \
bee558
+  DYNSYM (isl_multi_union_pw_aff_apply_multi_aff); \
bee558
+  DYNSYM (isl_schedule_insert_partial_schedule); \
bee558
+  DYNSYM (isl_union_pw_multi_aff_free); \
bee558
+  DYNSYM (isl_pw_multi_aff_project_out_map); \
bee558
+  DYNSYM (isl_union_pw_multi_aff_add_pw_multi_aff); \
bee558
+  DYNSYM (isl_schedule_from_domain); \
bee558
+  DYNSYM (isl_schedule_sequence); \
bee558
+  DYNSYM (isl_ast_build_node_from_schedule); \
bee558
+  DYNSYM (isl_ast_node_mark_get_node); \
bee558
+  DYNSYM (isl_schedule_node_band_member_get_ast_loop_type); \
bee558
+  DYNSYM (isl_schedule_node_band_member_set_ast_loop_type); \
bee558
+  DYNSYM (isl_val_n_abs_num_chunks); \
bee558
+  DYNSYM (isl_val_get_abs_num_chunks); \
bee558
+  DYNSYM (isl_val_int_from_chunks); \
bee558
+  DYNSYM (isl_val_is_neg); \
bee558
+  DYNSYM (isl_version); \
bee558
+  DYNSYM (isl_options_get_on_error); \
bee558
+  DYNSYM (isl_ctx_reset_error);
bee558
+
bee558
+extern struct isl_pointers_s__
bee558
+{
bee558
+  bool inited;
bee558
+  void *h;
bee558
+#define DYNSYM(x) __typeof (x) *p_##x
bee558
+  DYNSYMS
bee558
+#undef DYNSYM
bee558
+} isl_pointers__;
bee558
+
bee558
+#define isl_aff_add_coefficient_si (*isl_pointers__.p_isl_aff_add_coefficient_si)
bee558
+#define isl_aff_free (*isl_pointers__.p_isl_aff_free)
bee558
+#define isl_aff_get_space (*isl_pointers__.p_isl_aff_get_space)
bee558
+#define isl_aff_set_coefficient_si (*isl_pointers__.p_isl_aff_set_coefficient_si)
bee558
+#define isl_aff_set_constant_si (*isl_pointers__.p_isl_aff_set_constant_si)
bee558
+#define isl_aff_zero_on_domain (*isl_pointers__.p_isl_aff_zero_on_domain)
bee558
+#define isl_band_free (*isl_pointers__.p_isl_band_free)
bee558
+#define isl_band_get_children (*isl_pointers__.p_isl_band_get_children)
bee558
+#define isl_band_get_partial_schedule (*isl_pointers__.p_isl_band_get_partial_schedule)
bee558
+#define isl_band_has_children (*isl_pointers__.p_isl_band_has_children)
bee558
+#define isl_band_list_free (*isl_pointers__.p_isl_band_list_free)
bee558
+#define isl_band_list_get_band (*isl_pointers__.p_isl_band_list_get_band)
bee558
+#define isl_band_list_get_ctx (*isl_pointers__.p_isl_band_list_get_ctx)
bee558
+#define isl_band_list_n_band (*isl_pointers__.p_isl_band_list_n_band)
bee558
+#define isl_band_n_member (*isl_pointers__.p_isl_band_n_member)
bee558
+#define isl_basic_map_add_constraint (*isl_pointers__.p_isl_basic_map_add_constraint)
bee558
+#define isl_basic_map_project_out (*isl_pointers__.p_isl_basic_map_project_out)
bee558
+#define isl_basic_map_universe (*isl_pointers__.p_isl_basic_map_universe)
bee558
+#define isl_constraint_set_coefficient_si (*isl_pointers__.p_isl_constraint_set_coefficient_si)
bee558
+#define isl_constraint_set_constant_si (*isl_pointers__.p_isl_constraint_set_constant_si)
bee558
+#define isl_ctx_alloc (*isl_pointers__.p_isl_ctx_alloc)
bee558
+#define isl_ctx_free (*isl_pointers__.p_isl_ctx_free)
bee558
+#define isl_equality_alloc (*isl_pointers__.p_isl_equality_alloc)
bee558
+#define isl_id_alloc (*isl_pointers__.p_isl_id_alloc)
bee558
+#define isl_id_copy (*isl_pointers__.p_isl_id_copy)
bee558
+#define isl_id_free (*isl_pointers__.p_isl_id_free)
bee558
+#define isl_inequality_alloc (*isl_pointers__.p_isl_inequality_alloc)
bee558
+#define isl_local_space_copy (*isl_pointers__.p_isl_local_space_copy)
bee558
+#define isl_local_space_free (*isl_pointers__.p_isl_local_space_free)
bee558
+#define isl_local_space_from_space (*isl_pointers__.p_isl_local_space_from_space)
bee558
+#define isl_local_space_range (*isl_pointers__.p_isl_local_space_range)
bee558
+#define isl_map_add_constraint (*isl_pointers__.p_isl_map_add_constraint)
bee558
+#define isl_map_add_dims (*isl_pointers__.p_isl_map_add_dims)
bee558
+#define isl_map_align_params (*isl_pointers__.p_isl_map_align_params)
bee558
+#define isl_map_apply_range (*isl_pointers__.p_isl_map_apply_range)
bee558
+#define isl_map_copy (*isl_pointers__.p_isl_map_copy)
bee558
+#define isl_map_dim (*isl_pointers__.p_isl_map_dim)
bee558
+#define isl_map_dump (*isl_pointers__.p_isl_map_dump)
bee558
+#define isl_map_equate (*isl_pointers__.p_isl_map_equate)
bee558
+#define isl_map_fix_si (*isl_pointers__.p_isl_map_fix_si)
bee558
+#define isl_map_flat_product (*isl_pointers__.p_isl_map_flat_product)
bee558
+#define isl_map_flat_range_product (*isl_pointers__.p_isl_map_flat_range_product)
bee558
+#define isl_map_free (*isl_pointers__.p_isl_map_free)
bee558
+#define isl_map_from_basic_map (*isl_pointers__.p_isl_map_from_basic_map)
bee558
+#define isl_map_from_pw_aff (*isl_pointers__.p_isl_map_from_pw_aff)
bee558
+#define isl_map_from_union_map (*isl_pointers__.p_isl_map_from_union_map)
bee558
+#define isl_map_get_ctx (*isl_pointers__.p_isl_map_get_ctx)
bee558
+#define isl_map_get_space (*isl_pointers__.p_isl_map_get_space)
bee558
+#define isl_map_get_tuple_id (*isl_pointers__.p_isl_map_get_tuple_id)
bee558
+#define isl_map_insert_dims (*isl_pointers__.p_isl_map_insert_dims)
bee558
+#define isl_map_intersect (*isl_pointers__.p_isl_map_intersect)
bee558
+#define isl_map_intersect_domain (*isl_pointers__.p_isl_map_intersect_domain)
bee558
+#define isl_map_intersect_range (*isl_pointers__.p_isl_map_intersect_range)
bee558
+#define isl_map_is_empty (*isl_pointers__.p_isl_map_is_empty)
bee558
+#define isl_map_lex_ge (*isl_pointers__.p_isl_map_lex_ge)
bee558
+#define isl_map_lex_le (*isl_pointers__.p_isl_map_lex_le)
bee558
+#define isl_map_n_out (*isl_pointers__.p_isl_map_n_out)
bee558
+#define isl_map_range (*isl_pointers__.p_isl_map_range)
bee558
+#define isl_map_set_tuple_id (*isl_pointers__.p_isl_map_set_tuple_id)
bee558
+#define isl_map_universe (*isl_pointers__.p_isl_map_universe)
bee558
+#define isl_options_set_on_error (*isl_pointers__.p_isl_options_set_on_error)
bee558
+#define isl_options_set_schedule_serialize_sccs (*isl_pointers__.p_isl_options_set_schedule_serialize_sccs)
bee558
+#define isl_printer_set_yaml_style (*isl_pointers__.p_isl_printer_set_yaml_style)
bee558
+#define isl_options_set_schedule_max_constant_term (*isl_pointers__.p_isl_options_set_schedule_max_constant_term)
bee558
+#define isl_options_set_schedule_maximize_band_depth (*isl_pointers__.p_isl_options_set_schedule_maximize_band_depth)
bee558
+#define isl_printer_free (*isl_pointers__.p_isl_printer_free)
bee558
+#define isl_printer_print_aff (*isl_pointers__.p_isl_printer_print_aff)
bee558
+#define isl_printer_print_constraint (*isl_pointers__.p_isl_printer_print_constraint)
bee558
+#define isl_printer_print_map (*isl_pointers__.p_isl_printer_print_map)
bee558
+#define isl_printer_print_set (*isl_pointers__.p_isl_printer_print_set)
bee558
+#define isl_printer_to_file (*isl_pointers__.p_isl_printer_to_file)
bee558
+#define isl_pw_aff_add (*isl_pointers__.p_isl_pw_aff_add)
bee558
+#define isl_pw_aff_alloc (*isl_pointers__.p_isl_pw_aff_alloc)
bee558
+#define isl_pw_aff_copy (*isl_pointers__.p_isl_pw_aff_copy)
bee558
+#define isl_pw_aff_eq_set (*isl_pointers__.p_isl_pw_aff_eq_set)
bee558
+#define isl_pw_aff_free (*isl_pointers__.p_isl_pw_aff_free)
bee558
+#define isl_pw_aff_from_aff (*isl_pointers__.p_isl_pw_aff_from_aff)
bee558
+#define isl_pw_aff_ge_set (*isl_pointers__.p_isl_pw_aff_ge_set)
bee558
+#define isl_pw_aff_gt_set (*isl_pointers__.p_isl_pw_aff_gt_set)
bee558
+#define isl_pw_aff_is_cst (*isl_pointers__.p_isl_pw_aff_is_cst)
bee558
+#define isl_pw_aff_le_set (*isl_pointers__.p_isl_pw_aff_le_set)
bee558
+#define isl_pw_aff_lt_set (*isl_pointers__.p_isl_pw_aff_lt_set)
bee558
+#define isl_pw_aff_mul (*isl_pointers__.p_isl_pw_aff_mul)
bee558
+#define isl_pw_aff_ne_set (*isl_pointers__.p_isl_pw_aff_ne_set)
bee558
+#define isl_pw_aff_nonneg_set (*isl_pointers__.p_isl_pw_aff_nonneg_set)
bee558
+#define isl_pw_aff_set_tuple_id (*isl_pointers__.p_isl_pw_aff_set_tuple_id)
bee558
+#define isl_pw_aff_sub (*isl_pointers__.p_isl_pw_aff_sub)
bee558
+#define isl_pw_aff_zero_set (*isl_pointers__.p_isl_pw_aff_zero_set)
bee558
+#define isl_schedule_free (*isl_pointers__.p_isl_schedule_free)
bee558
+#define isl_schedule_get_band_forest (*isl_pointers__.p_isl_schedule_get_band_forest)
bee558
+#define isl_set_add_constraint (*isl_pointers__.p_isl_set_add_constraint)
bee558
+#define isl_set_add_dims (*isl_pointers__.p_isl_set_add_dims)
bee558
+#define isl_set_apply (*isl_pointers__.p_isl_set_apply)
bee558
+#define isl_set_coalesce (*isl_pointers__.p_isl_set_coalesce)
bee558
+#define isl_set_copy (*isl_pointers__.p_isl_set_copy)
bee558
+#define isl_set_dim (*isl_pointers__.p_isl_set_dim)
bee558
+#define isl_set_fix_si (*isl_pointers__.p_isl_set_fix_si)
bee558
+#define isl_set_free (*isl_pointers__.p_isl_set_free)
bee558
+#define isl_set_get_space (*isl_pointers__.p_isl_set_get_space)
bee558
+#define isl_set_get_tuple_id (*isl_pointers__.p_isl_set_get_tuple_id)
bee558
+#define isl_set_intersect (*isl_pointers__.p_isl_set_intersect)
bee558
+#define isl_set_is_empty (*isl_pointers__.p_isl_set_is_empty)
bee558
+#define isl_set_n_dim (*isl_pointers__.p_isl_set_n_dim)
bee558
+#define isl_set_nat_universe (*isl_pointers__.p_isl_set_nat_universe)
bee558
+#define isl_set_project_out (*isl_pointers__.p_isl_set_project_out)
bee558
+#define isl_set_set_tuple_id (*isl_pointers__.p_isl_set_set_tuple_id)
bee558
+#define isl_set_universe (*isl_pointers__.p_isl_set_universe)
bee558
+#define isl_space_add_dims (*isl_pointers__.p_isl_space_add_dims)
bee558
+#define isl_space_alloc (*isl_pointers__.p_isl_space_alloc)
bee558
+#define isl_space_copy (*isl_pointers__.p_isl_space_copy)
bee558
+#define isl_space_dim (*isl_pointers__.p_isl_space_dim)
bee558
+#define isl_space_domain (*isl_pointers__.p_isl_space_domain)
bee558
+#define isl_space_find_dim_by_id (*isl_pointers__.p_isl_space_find_dim_by_id)
bee558
+#define isl_space_free (*isl_pointers__.p_isl_space_free)
bee558
+#define isl_space_from_domain (*isl_pointers__.p_isl_space_from_domain)
bee558
+#define isl_space_get_tuple_id (*isl_pointers__.p_isl_space_get_tuple_id)
bee558
+#define isl_space_params_alloc (*isl_pointers__.p_isl_space_params_alloc)
bee558
+#define isl_space_range (*isl_pointers__.p_isl_space_range)
bee558
+#define isl_space_set_alloc (*isl_pointers__.p_isl_space_set_alloc)
bee558
+#define isl_space_set_dim_id (*isl_pointers__.p_isl_space_set_dim_id)
bee558
+#define isl_space_set_tuple_id (*isl_pointers__.p_isl_space_set_tuple_id)
bee558
+#define isl_union_map_add_map (*isl_pointers__.p_isl_union_map_add_map)
bee558
+#define isl_union_map_align_params (*isl_pointers__.p_isl_union_map_align_params)
bee558
+#define isl_union_map_apply_domain (*isl_pointers__.p_isl_union_map_apply_domain)
bee558
+#define isl_union_map_apply_range (*isl_pointers__.p_isl_union_map_apply_range)
bee558
+#define isl_union_map_compute_flow (*isl_pointers__.p_isl_union_map_compute_flow)
bee558
+#define isl_union_map_copy (*isl_pointers__.p_isl_union_map_copy)
bee558
+#define isl_union_map_empty (*isl_pointers__.p_isl_union_map_empty)
bee558
+#define isl_union_map_flat_range_product (*isl_pointers__.p_isl_union_map_flat_range_product)
bee558
+#define isl_union_map_foreach_map (*isl_pointers__.p_isl_union_map_foreach_map)
bee558
+#define isl_union_map_free (*isl_pointers__.p_isl_union_map_free)
bee558
+#define isl_union_map_from_map (*isl_pointers__.p_isl_union_map_from_map)
bee558
+#define isl_union_map_get_ctx (*isl_pointers__.p_isl_union_map_get_ctx)
bee558
+#define isl_union_map_get_space (*isl_pointers__.p_isl_union_map_get_space)
bee558
+#define isl_union_map_gist_domain (*isl_pointers__.p_isl_union_map_gist_domain)
bee558
+#define isl_union_map_gist_range (*isl_pointers__.p_isl_union_map_gist_range)
bee558
+#define isl_union_map_intersect_domain (*isl_pointers__.p_isl_union_map_intersect_domain)
bee558
+#define isl_union_map_is_empty (*isl_pointers__.p_isl_union_map_is_empty)
bee558
+#define isl_union_map_subtract (*isl_pointers__.p_isl_union_map_subtract)
bee558
+#define isl_union_map_union (*isl_pointers__.p_isl_union_map_union)
bee558
+#define isl_union_set_add_set (*isl_pointers__.p_isl_union_set_add_set)
bee558
+#define isl_union_set_compute_schedule (*isl_pointers__.p_isl_union_set_compute_schedule)
bee558
+#define isl_union_set_copy (*isl_pointers__.p_isl_union_set_copy)
bee558
+#define isl_union_set_empty (*isl_pointers__.p_isl_union_set_empty)
bee558
+#define isl_union_set_from_set (*isl_pointers__.p_isl_union_set_from_set)
bee558
+#define isl_aff_add_constant_val (*isl_pointers__.p_isl_aff_add_constant_val)
bee558
+#define isl_aff_get_coefficient_val (*isl_pointers__.p_isl_aff_get_coefficient_val)
bee558
+#define isl_aff_get_ctx (*isl_pointers__.p_isl_aff_get_ctx)
bee558
+#define isl_aff_mod_val (*isl_pointers__.p_isl_aff_mod_val)
bee558
+#define isl_ast_build_ast_from_schedule (*isl_pointers__.p_isl_ast_build_ast_from_schedule)
bee558
+#define isl_ast_build_free (*isl_pointers__.p_isl_ast_build_free)
bee558
+#define isl_ast_build_from_context (*isl_pointers__.p_isl_ast_build_from_context)
bee558
+#define isl_ast_build_get_ctx (*isl_pointers__.p_isl_ast_build_get_ctx)
bee558
+#define isl_ast_build_get_schedule (*isl_pointers__.p_isl_ast_build_get_schedule)
bee558
+#define isl_ast_build_get_schedule_space (*isl_pointers__.p_isl_ast_build_get_schedule_space)
bee558
+#define isl_ast_build_set_before_each_for (*isl_pointers__.p_isl_ast_build_set_before_each_for)
bee558
+#define isl_ast_build_set_options (*isl_pointers__.p_isl_ast_build_set_options)
bee558
+#define isl_ast_expr_free (*isl_pointers__.p_isl_ast_expr_free)
bee558
+#define isl_ast_expr_from_val (*isl_pointers__.p_isl_ast_expr_from_val)
bee558
+#define isl_ast_expr_get_ctx (*isl_pointers__.p_isl_ast_expr_get_ctx)
bee558
+#define isl_ast_expr_get_id (*isl_pointers__.p_isl_ast_expr_get_id)
bee558
+#define isl_ast_expr_get_op_arg (*isl_pointers__.p_isl_ast_expr_get_op_arg)
bee558
+#define isl_ast_expr_get_op_n_arg (*isl_pointers__.p_isl_ast_expr_get_op_n_arg)
bee558
+#define isl_ast_expr_get_op_type (*isl_pointers__.p_isl_ast_expr_get_op_type)
bee558
+#define isl_ast_expr_get_type (*isl_pointers__.p_isl_ast_expr_get_type)
bee558
+#define isl_ast_expr_get_val (*isl_pointers__.p_isl_ast_expr_get_val)
bee558
+#define isl_ast_expr_sub (*isl_pointers__.p_isl_ast_expr_sub)
bee558
+#define isl_ast_node_block_get_children (*isl_pointers__.p_isl_ast_node_block_get_children)
bee558
+#define isl_ast_node_for_get_body (*isl_pointers__.p_isl_ast_node_for_get_body)
bee558
+#define isl_ast_node_for_get_cond (*isl_pointers__.p_isl_ast_node_for_get_cond)
bee558
+#define isl_ast_node_for_get_inc (*isl_pointers__.p_isl_ast_node_for_get_inc)
bee558
+#define isl_ast_node_for_get_init (*isl_pointers__.p_isl_ast_node_for_get_init)
bee558
+#define isl_ast_node_for_get_iterator (*isl_pointers__.p_isl_ast_node_for_get_iterator)
bee558
+#define isl_ast_node_free (*isl_pointers__.p_isl_ast_node_free)
bee558
+#define isl_ast_node_get_annotation (*isl_pointers__.p_isl_ast_node_get_annotation)
bee558
+#define isl_ast_node_get_type (*isl_pointers__.p_isl_ast_node_get_type)
bee558
+#define isl_ast_node_if_get_cond (*isl_pointers__.p_isl_ast_node_if_get_cond)
bee558
+#define isl_ast_node_if_get_else (*isl_pointers__.p_isl_ast_node_if_get_else)
bee558
+#define isl_ast_node_if_get_then (*isl_pointers__.p_isl_ast_node_if_get_then)
bee558
+#define isl_ast_node_list_free (*isl_pointers__.p_isl_ast_node_list_free)
bee558
+#define isl_ast_node_list_get_ast_node (*isl_pointers__.p_isl_ast_node_list_get_ast_node)
bee558
+#define isl_ast_node_list_n_ast_node (*isl_pointers__.p_isl_ast_node_list_n_ast_node)
bee558
+#define isl_ast_node_user_get_expr (*isl_pointers__.p_isl_ast_node_user_get_expr)
bee558
+#define isl_constraint_set_coefficient_val (*isl_pointers__.p_isl_constraint_set_coefficient_val)
bee558
+#define isl_constraint_set_constant_val (*isl_pointers__.p_isl_constraint_set_constant_val)
bee558
+#define isl_id_get_user (*isl_pointers__.p_isl_id_get_user)
bee558
+#define isl_local_space_get_ctx (*isl_pointers__.p_isl_local_space_get_ctx)
bee558
+#define isl_map_fix_val (*isl_pointers__.p_isl_map_fix_val)
bee558
+#define isl_options_set_ast_build_atomic_upper_bound (*isl_pointers__.p_isl_options_set_ast_build_atomic_upper_bound)
bee558
+#define isl_printer_print_ast_node (*isl_pointers__.p_isl_printer_print_ast_node)
bee558
+#define isl_printer_print_str (*isl_pointers__.p_isl_printer_print_str)
bee558
+#define isl_printer_set_output_format (*isl_pointers__.p_isl_printer_set_output_format)
bee558
+#define isl_pw_aff_mod_val (*isl_pointers__.p_isl_pw_aff_mod_val)
bee558
+#define isl_schedule_constraints_compute_schedule (*isl_pointers__.p_isl_schedule_constraints_compute_schedule)
bee558
+#define isl_schedule_constraints_on_domain (*isl_pointers__.p_isl_schedule_constraints_on_domain)
bee558
+#define isl_schedule_constraints_set_coincidence (*isl_pointers__.p_isl_schedule_constraints_set_coincidence)
bee558
+#define isl_schedule_constraints_set_proximity (*isl_pointers__.p_isl_schedule_constraints_set_proximity)
bee558
+#define isl_schedule_constraints_set_validity (*isl_pointers__.p_isl_schedule_constraints_set_validity)
bee558
+#define isl_set_get_dim_id (*isl_pointers__.p_isl_set_get_dim_id)
bee558
+#define isl_set_max_val (*isl_pointers__.p_isl_set_max_val)
bee558
+#define isl_set_min_val (*isl_pointers__.p_isl_set_min_val)
bee558
+#define isl_set_params (*isl_pointers__.p_isl_set_params)
bee558
+#define isl_space_align_params (*isl_pointers__.p_isl_space_align_params)
bee558
+#define isl_space_map_from_domain_and_range (*isl_pointers__.p_isl_space_map_from_domain_and_range)
bee558
+#define isl_space_set_tuple_name (*isl_pointers__.p_isl_space_set_tuple_name)
bee558
+#define isl_space_wrap (*isl_pointers__.p_isl_space_wrap)
bee558
+#define isl_union_map_from_domain_and_range (*isl_pointers__.p_isl_union_map_from_domain_and_range)
bee558
+#define isl_union_map_range (*isl_pointers__.p_isl_union_map_range)
bee558
+#define isl_union_set_union (*isl_pointers__.p_isl_union_set_union)
bee558
+#define isl_union_set_universe (*isl_pointers__.p_isl_union_set_universe)
bee558
+#define isl_val_2exp (*isl_pointers__.p_isl_val_2exp)
bee558
+#define isl_val_add_ui (*isl_pointers__.p_isl_val_add_ui)
bee558
+#define isl_val_copy (*isl_pointers__.p_isl_val_copy)
bee558
+#define isl_val_free (*isl_pointers__.p_isl_val_free)
bee558
+#define isl_val_int_from_si (*isl_pointers__.p_isl_val_int_from_si)
bee558
+#define isl_val_int_from_ui (*isl_pointers__.p_isl_val_int_from_ui)
bee558
+#define isl_val_mul (*isl_pointers__.p_isl_val_mul)
bee558
+#define isl_val_neg (*isl_pointers__.p_isl_val_neg)
bee558
+#define isl_val_sub (*isl_pointers__.p_isl_val_sub)
bee558
+#define isl_printer_print_union_map (*isl_pointers__.p_isl_printer_print_union_map)
bee558
+#define isl_pw_aff_get_ctx (*isl_pointers__.p_isl_pw_aff_get_ctx)
bee558
+#define isl_val_is_int (*isl_pointers__.p_isl_val_is_int)
bee558
+#define isl_ctx_get_max_operations (*isl_pointers__.p_isl_ctx_get_max_operations)
bee558
+#define isl_ctx_set_max_operations (*isl_pointers__.p_isl_ctx_set_max_operations)
bee558
+#define isl_ctx_last_error (*isl_pointers__.p_isl_ctx_last_error)
bee558
+#define isl_ctx_reset_operations (*isl_pointers__.p_isl_ctx_reset_operations)
bee558
+#define isl_map_coalesce (*isl_pointers__.p_isl_map_coalesce)
bee558
+#define isl_printer_print_schedule (*isl_pointers__.p_isl_printer_print_schedule)
bee558
+#define isl_set_set_dim_id (*isl_pointers__.p_isl_set_set_dim_id)
bee558
+#define isl_union_map_coalesce (*isl_pointers__.p_isl_union_map_coalesce)
bee558
+#define isl_multi_val_set_val (*isl_pointers__.p_isl_multi_val_set_val)
bee558
+#define isl_multi_val_zero (*isl_pointers__.p_isl_multi_val_zero)
bee558
+#define isl_options_set_schedule_max_coefficient (*isl_pointers__.p_isl_options_set_schedule_max_coefficient)
bee558
+#define isl_options_set_tile_scale_tile_loops (*isl_pointers__.p_isl_options_set_tile_scale_tile_loops)
bee558
+#define isl_schedule_copy (*isl_pointers__.p_isl_schedule_copy)
bee558
+#define isl_schedule_get_map (*isl_pointers__.p_isl_schedule_get_map)
bee558
+#define isl_schedule_map_schedule_node_bottom_up (*isl_pointers__.p_isl_schedule_map_schedule_node_bottom_up)
bee558
+#define isl_schedule_node_band_get_permutable (*isl_pointers__.p_isl_schedule_node_band_get_permutable)
bee558
+#define isl_schedule_node_band_get_space (*isl_pointers__.p_isl_schedule_node_band_get_space)
bee558
+#define isl_schedule_node_band_tile (*isl_pointers__.p_isl_schedule_node_band_tile)
bee558
+#define isl_schedule_node_child (*isl_pointers__.p_isl_schedule_node_child)
bee558
+#define isl_schedule_node_free (*isl_pointers__.p_isl_schedule_node_free)
bee558
+#define isl_schedule_node_get_child (*isl_pointers__.p_isl_schedule_node_get_child)
bee558
+#define isl_schedule_node_get_ctx (*isl_pointers__.p_isl_schedule_node_get_ctx)
bee558
+#define isl_schedule_node_get_type (*isl_pointers__.p_isl_schedule_node_get_type)
bee558
+#define isl_schedule_node_n_children (*isl_pointers__.p_isl_schedule_node_n_children)
bee558
+#define isl_union_map_is_equal (*isl_pointers__.p_isl_union_map_is_equal)
bee558
+#define isl_union_access_info_compute_flow (*isl_pointers__.p_isl_union_access_info_compute_flow)
bee558
+#define isl_union_access_info_from_sink (*isl_pointers__.p_isl_union_access_info_from_sink)
bee558
+#define isl_union_access_info_set_may_source (*isl_pointers__.p_isl_union_access_info_set_may_source)
bee558
+#define isl_union_access_info_set_must_source (*isl_pointers__.p_isl_union_access_info_set_must_source)
bee558
+#define isl_union_access_info_set_schedule (*isl_pointers__.p_isl_union_access_info_set_schedule)
bee558
+#define isl_union_flow_free (*isl_pointers__.p_isl_union_flow_free)
bee558
+#define isl_union_flow_get_may_dependence (*isl_pointers__.p_isl_union_flow_get_may_dependence)
bee558
+#define isl_union_flow_get_must_dependence (*isl_pointers__.p_isl_union_flow_get_must_dependence)
bee558
+#define isl_aff_var_on_domain (*isl_pointers__.p_isl_aff_var_on_domain)
bee558
+#define isl_multi_aff_from_aff (*isl_pointers__.p_isl_multi_aff_from_aff)
bee558
+#define isl_schedule_get_ctx (*isl_pointers__.p_isl_schedule_get_ctx)
bee558
+#define isl_multi_aff_set_tuple_id (*isl_pointers__.p_isl_multi_aff_set_tuple_id)
bee558
+#define isl_multi_aff_dim (*isl_pointers__.p_isl_multi_aff_dim)
bee558
+#define isl_schedule_get_domain (*isl_pointers__.p_isl_schedule_get_domain)
bee558
+#define isl_union_set_is_empty (*isl_pointers__.p_isl_union_set_is_empty)
bee558
+#define isl_union_set_get_space (*isl_pointers__.p_isl_union_set_get_space)
bee558
+#define isl_union_pw_multi_aff_empty (*isl_pointers__.p_isl_union_pw_multi_aff_empty)
bee558
+#define isl_union_set_foreach_set (*isl_pointers__.p_isl_union_set_foreach_set)
bee558
+#define isl_union_set_free (*isl_pointers__.p_isl_union_set_free)
bee558
+#define isl_multi_union_pw_aff_from_union_pw_multi_aff (*isl_pointers__.p_isl_multi_union_pw_aff_from_union_pw_multi_aff)
bee558
+#define isl_multi_union_pw_aff_apply_multi_aff (*isl_pointers__.p_isl_multi_union_pw_aff_apply_multi_aff)
bee558
+#define isl_schedule_insert_partial_schedule (*isl_pointers__.p_isl_schedule_insert_partial_schedule)
bee558
+#define isl_union_pw_multi_aff_free (*isl_pointers__.p_isl_union_pw_multi_aff_free)
bee558
+#define isl_pw_multi_aff_project_out_map (*isl_pointers__.p_isl_pw_multi_aff_project_out_map)
bee558
+#define isl_union_pw_multi_aff_add_pw_multi_aff (*isl_pointers__.p_isl_union_pw_multi_aff_add_pw_multi_aff)
bee558
+#define isl_schedule_from_domain (*isl_pointers__.p_isl_schedule_from_domain)
bee558
+#define isl_schedule_sequence (*isl_pointers__.p_isl_schedule_sequence)
bee558
+#define isl_ast_build_node_from_schedule (*isl_pointers__.p_isl_ast_build_node_from_schedule)
bee558
+#define isl_ast_node_mark_get_node (*isl_pointers__.p_isl_ast_node_mark_get_node)
bee558
+#define isl_schedule_node_band_member_get_ast_loop_type (*isl_pointers__.p_isl_schedule_node_band_member_get_ast_loop_type)
bee558
+#define isl_schedule_node_band_member_set_ast_loop_type (*isl_pointers__.p_isl_schedule_node_band_member_set_ast_loop_type)
bee558
+#define isl_val_n_abs_num_chunks (*isl_pointers__.p_isl_val_n_abs_num_chunks)
bee558
+#define isl_val_get_abs_num_chunks (*isl_pointers__.p_isl_val_get_abs_num_chunks)
bee558
+#define isl_val_int_from_chunks (*isl_pointers__.p_isl_val_int_from_chunks)
bee558
+#define isl_val_is_neg (*isl_pointers__.p_isl_val_is_neg)
bee558
+#define isl_version (*isl_pointers__.p_isl_version)
bee558
+#define isl_options_get_on_error (*isl_pointers__.p_isl_options_get_on_error)
bee558
+#define isl_ctx_reset_error (*isl_pointers__.p_isl_ctx_reset_error)
bee558
+
bee558
 typedef struct poly_dr *poly_dr_p;
bee558
 
bee558
 typedef struct poly_bb *poly_bb_p;
bee558
@@ -448,5 +1033,6 @@ extern tree cached_scalar_evolution_in_r
bee558
 extern void dot_all_sese (FILE *, vec<sese_l> &);
bee558
 extern void dot_sese (sese_l &);
bee558
 extern void dot_cfg ();
bee558
+extern const char *get_isl_version (bool);
bee558
 
bee558
 #endif
bee558
--- gcc/graphite.c.jj	2015-11-04 14:15:32.000000000 +0100
bee558
+++ gcc/graphite.c	2015-11-04 14:56:02.645536409 +0100
bee558
@@ -60,6 +60,35 @@ along with GCC; see the file COPYING3.
bee558
 #include "tree-into-ssa.h"
bee558
 #include "graphite.h"
bee558
 
bee558
+__typeof (isl_pointers__) isl_pointers__;
bee558
+
bee558
+static bool
bee558
+init_isl_pointers (void)
bee558
+{
bee558
+  void *h;
bee558
+
bee558
+  if (isl_pointers__.inited)
bee558
+    return isl_pointers__.h != NULL;
bee558
+  h = dlopen ("libisl.so.15", RTLD_LAZY);
bee558
+  isl_pointers__.h = h;
bee558
+  if (h == NULL)
bee558
+    return false;
bee558
+#define DYNSYM(x) \
bee558
+  do \
bee558
+    { \
bee558
+      union { __typeof (isl_pointers__.p_##x) p; void *q; } u; \
bee558
+      u.q = dlsym (h, #x); \
bee558
+      if (u.q == NULL) \
bee558
+	return false; \
bee558
+      isl_pointers__.p_##x = u.p; \
bee558
+    } \
bee558
+  while (0)
bee558
+  DYNSYMS
bee558
+#undef DYNSYM
bee558
+  isl_pointers__.inited = true;
bee558
+  return true;
bee558
+}
bee558
+
bee558
 /* Print global statistics to FILE.  */
bee558
 
bee558
 static void
bee558
@@ -365,6 +394,15 @@ graphite_transform_loops (void)
bee558
   if (parallelized_function_p (cfun->decl))
bee558
     return;
bee558
 
bee558
+  if (number_of_loops (cfun) <= 1)
bee558
+    return;
bee558
+
bee558
+  if (!init_isl_pointers ())
bee558
+    {
bee558
+      sorry ("Graphite loop optimizations cannot be used");
bee558
+      return;
bee558
+    }
bee558
+
bee558
   calculate_dominance_info (CDI_DOMINATORS);
bee558
 
bee558
   /* We rely on post-dominators during merging of SESE regions so those
bee558
@@ -455,6 +493,14 @@ graphite_transform_loops (void)
bee558
     }
bee558
 }
bee558
 
bee558
+const char *
bee558
+get_isl_version (bool force)
bee558
+{
bee558
+  if (force)
bee558
+    init_isl_pointers ();
bee558
+  return (isl_pointers__.inited && isl_version) ? isl_version () : "none";
bee558
+}
bee558
+
bee558
 #else /* If isl is not available: #ifndef HAVE_isl.  */
bee558
 
bee558
 static void
bee558
--- gcc/toplev.c.jj	2017-02-19 13:02:31.000000000 +0100
bee558
+++ gcc/toplev.c	2017-02-19 16:50:25.536301350 +0100
bee558
@@ -94,6 +94,7 @@ along with GCC; see the file COPYING3.
bee558
 
bee558
 #ifdef HAVE_isl
bee558
 #include <isl/version.h>
bee558
+extern const char *get_isl_version (bool);
bee558
 #endif
bee558
 
bee558
 static void general_init (const char *, bool);
bee558
@@ -683,7 +684,7 @@ print_version (FILE *file, const char *i
bee558
 #ifndef HAVE_isl
bee558
 	   "none"
bee558
 #else
bee558
-	   isl_version ()
bee558
+	   get_isl_version (*indent == 0)
bee558
 #endif
bee558
 	   );
bee558
   if (strcmp (GCC_GMP_STRINGIFY_VERSION, gmp_version))