Polly 22.0.0git
isl_ctx.c File Reference
#include <isl_ctx_private.h>
#include <isl/vec.h>
#include <isl_options_private.h>

Go to the source code of this file.

Macros

#define __isl_calloc(type, size)
#define __isl_calloc_type(type)

Functions

isl_stat isl_stat_non_null (void *obj)
isl_bool isl_bool_not (isl_bool b)
isl_bool isl_bool_ok (int b)
static void * check_non_null (isl_ctx *ctx, void *p, size_t size)
int isl_ctx_next_operation (isl_ctx *ctx)
void * isl_malloc_or_die (isl_ctx *ctx, size_t size)
void * isl_calloc_or_die (isl_ctx *ctx, size_t nmemb, size_t size)
void * isl_realloc_or_die (isl_ctx *ctx, void *ptr, size_t size)
void isl_ctx_set_full_error (isl_ctx *ctx, enum isl_error error, const char *msg, const char *file, int line)
void isl_handle_error (isl_ctx *ctx, enum isl_error error, const char *msg, const char *file, int line)
static struct isl_optionsfind_nested_options (struct isl_args *args, void *opt, struct isl_args *wanted)
static struct isl_optionsfind_nested_isl_options (struct isl_args *args, void *opt)
void * isl_ctx_peek_options (isl_ctx *ctx, struct isl_args *args)
isl_ctxisl_ctx_alloc_with_options (struct isl_args *args, void *user_opt)
struct isl_ctxisl_ctx_alloc ()
void isl_ctx_ref (struct isl_ctx *ctx)
void isl_ctx_deref (struct isl_ctx *ctx)
static void print_stats (isl_ctx *ctx)
void isl_ctx_free (struct isl_ctx *ctx)
struct isl_optionsisl_ctx_options (isl_ctx *ctx)
enum isl_error isl_ctx_last_error (isl_ctx *ctx)
const char * isl_ctx_last_error_msg (isl_ctx *ctx)
const char * isl_ctx_last_error_file (isl_ctx *ctx)
int isl_ctx_last_error_line (isl_ctx *ctx)
void isl_ctx_reset_error (isl_ctx *ctx)
void isl_ctx_set_error (isl_ctx *ctx, enum isl_error error)
void isl_ctx_abort (isl_ctx *ctx)
void isl_ctx_resume (isl_ctx *ctx)
int isl_ctx_aborted (isl_ctx *ctx)
int isl_ctx_parse_options (isl_ctx *ctx, int argc, char **argv, unsigned flags)
void isl_ctx_set_max_operations (isl_ctx *ctx, unsigned long max_operations)
unsigned long isl_ctx_get_max_operations (isl_ctx *ctx)
void isl_ctx_reset_operations (isl_ctx *ctx)

Macro Definition Documentation

◆ __isl_calloc

#define __isl_calloc ( type,
size )
Value:
((type *)calloc(1, size))
enum isl_fold type
Definition isl_test.c:4017
const char * size
Definition isl_test.c:1570

Definition at line 14 of file isl_ctx.c.

◆ __isl_calloc_type

#define __isl_calloc_type ( type)
Value:
#define __isl_calloc(type, size)
Definition isl_ctx.c:14

Definition at line 15 of file isl_ctx.c.

Referenced by isl_ctx_alloc_with_options().

Function Documentation

◆ check_non_null()

void * check_non_null ( isl_ctx * ctx,
void * p,
size_t size )
static

Definition at line 57 of file isl_ctx.c.

References isl_die, isl_error_alloc, p, and size.

Referenced by isl_calloc_or_die(), isl_malloc_or_die(), and isl_realloc_or_die().

◆ find_nested_isl_options()

struct isl_options * find_nested_isl_options ( struct isl_args * args,
void * opt )
static

Definition at line 181 of file isl_ctx.c.

References find_nested_options().

Referenced by isl_ctx_alloc_with_options().

◆ find_nested_options()

struct isl_options * find_nested_options ( struct isl_args * args,
void * opt,
struct isl_args * wanted )
static

◆ isl_bool_not()

isl_bool isl_bool_not ( isl_bool b)

◆ isl_bool_ok()

isl_bool isl_bool_ok ( int b)

Definition at line 46 of file isl_ctx.c.

References b(), isl_bool_false, and isl_bool_true.

Referenced by any_scheduled_after(), bin_try_get_match(), constraint_equal(), context_tab_insert_div(), coscheduled_node(), domain_less(), edge_has_src_and_dst(), FN(), FN(), FN(), FN(), has_constraint(), has_ineq(), has_sign(), incremental_on_entire_domain(), is_independent(), isl_aff_involves_locals(), isl_aff_is_cst(), isl_aff_is_nan(), isl_aff_plain_is_zero(), isl_ast_build_need_schedule_map(), isl_ast_expr_is_equal(), isl_ast_node_for_is_degenerate(), isl_ast_node_if_has_else_node(), isl_basic_set_involves_locals(), isl_constraint_is_equality(), isl_constraint_is_lower_bound(), isl_constraint_is_upper_bound(), isl_id_eq(), isl_id_has_name_and_user(), isl_local_div_is_marked_unknown(), isl_local_space_is_div_equality(), isl_mat_has_linearly_independent_rows(), isl_point_is_void(), isl_poly_is_cst(), isl_poly_is_equal(), isl_poly_is_infty(), isl_poly_is_nan(), isl_poly_is_neginfty(), isl_poly_is_negone(), isl_poly_is_one(), isl_poly_is_zero(), isl_qpolynomial_fold_is_empty(), isl_schedule_band_get_permutable(), isl_schedule_band_member_get_coincident(), isl_schedule_node_has_children(), isl_schedule_node_has_next_sibling(), isl_schedule_node_has_parent(), isl_schedule_node_has_previous_sibling(), isl_schedule_tree_is_subtree_anchored(), isl_schedule_tree_plain_is_equal(), isl_space_domain_is_wrapping(), isl_space_has_dim_id(), isl_space_has_dim_name(), isl_space_has_tuple_id(), isl_space_has_tuple_name(), isl_space_is_map(), isl_space_is_wrapping(), isl_space_range_is_wrapping(), isl_stream_yaml_next(), isl_tab_need_undo(), isl_token_has_str(), isl_union_map_contains(), isl_union_map_isa_map(), isl_val_abs_eq(), isl_val_eq(), isl_val_eq_si(), isl_val_gt_si(), isl_val_is_divisible_by(), isl_val_is_infty(), isl_val_is_int(), isl_val_is_nan(), isl_val_is_neg(), isl_val_is_neginfty(), isl_val_is_negone(), isl_val_is_nonneg(), isl_val_is_nonpos(), isl_val_is_one(), isl_val_is_pos(), isl_val_is_rat(), isl_val_is_zero(), isl_val_le(), isl_val_lt(), isl_val_ne(), isl_vec_is_equal(), isl_vec_is_zero(), max_constraint_equal(), next_is_opposite(), next_is_sequence(), ok_to_merge_coincident(), parallel_constraints(), same_name(), test_isl_bool(), and uset_is_bound().

◆ isl_calloc_or_die()

void * isl_calloc_or_die ( isl_ctx * ctx,
size_t nmemb,
size_t size )

Definition at line 99 of file isl_ctx.c.

References check_non_null(), isl_ctx_next_operation(), and size.

◆ isl_ctx_abort()

void isl_ctx_abort ( isl_ctx * ctx)

Definition at line 362 of file isl_ctx.c.

References isl_ctx::abort.

◆ isl_ctx_aborted()

int isl_ctx_aborted ( isl_ctx * ctx)

Definition at line 374 of file isl_ctx.c.

References isl_ctx::abort.

◆ isl_ctx_alloc()

struct isl_ctx * isl_ctx_alloc ( void )

Definition at line 261 of file isl_ctx.c.

References isl_ctx_alloc_with_options().

Referenced by main(), main(), and polly::Scop::Scop().

◆ isl_ctx_alloc_with_options()

◆ isl_ctx_deref()

◆ isl_ctx_free()

◆ isl_ctx_get_max_operations()

unsigned long isl_ctx_get_max_operations ( isl_ctx * ctx)

◆ isl_ctx_last_error()

◆ isl_ctx_last_error_file()

const char * isl_ctx_last_error_file ( isl_ctx * ctx)

Definition at line 335 of file isl_ctx.c.

References isl_ctx::error_file.

◆ isl_ctx_last_error_line()

int isl_ctx_last_error_line ( isl_ctx * ctx)

Definition at line 342 of file isl_ctx.c.

References isl_ctx::error_line.

◆ isl_ctx_last_error_msg()

const char * isl_ctx_last_error_msg ( isl_ctx * ctx)

Definition at line 328 of file isl_ctx.c.

References isl_ctx::error_msg.

◆ isl_ctx_next_operation()

◆ isl_ctx_options()

struct isl_options * isl_ctx_options ( isl_ctx * ctx)

Definition at line 314 of file isl_ctx.c.

References isl_ctx::opt.

◆ isl_ctx_parse_options()

int isl_ctx_parse_options ( isl_ctx * ctx,
int argc,
char ** argv,
unsigned flags )

Definition at line 379 of file isl_ctx.c.

References isl_args_parse(), isl_ctx::user_args, and isl_ctx::user_opt.

Referenced by polly::Scop::Scop().

◆ isl_ctx_peek_options()

void * isl_ctx_peek_options ( isl_ctx * ctx,
struct isl_args * args )

Definition at line 187 of file isl_ctx.c.

References find_nested_options(), isl_ctx::opt, isl_ctx::user_args, and isl_ctx::user_opt.

◆ isl_ctx_ref()

◆ isl_ctx_reset_error()

◆ isl_ctx_reset_operations()

void isl_ctx_reset_operations ( isl_ctx * ctx)

Definition at line 404 of file isl_ctx.c.

References isl_ctx::operations.

Referenced by polly::IslMaxOperationsGuard::IslMaxOperationsGuard().

◆ isl_ctx_resume()

void isl_ctx_resume ( isl_ctx * ctx)

Definition at line 368 of file isl_ctx.c.

References isl_ctx::abort.

◆ isl_ctx_set_error()

void isl_ctx_set_error ( isl_ctx * ctx,
enum isl_error error )

Definition at line 357 of file isl_ctx.c.

References isl_ctx_set_full_error().

Referenced by isl_ctx_next_operation().

◆ isl_ctx_set_full_error()

void isl_ctx_set_full_error ( isl_ctx * ctx,
enum isl_error error,
const char * msg,
const char * file,
int line )

◆ isl_ctx_set_max_operations()

void isl_ctx_set_max_operations ( isl_ctx * ctx,
unsigned long max_operations )

◆ isl_handle_error()

void isl_handle_error ( isl_ctx * ctx,
enum isl_error error,
const char * msg,
const char * file,
int line )

◆ isl_malloc_or_die()

void * isl_malloc_or_die ( isl_ctx * ctx,
size_t size )

Definition at line 89 of file isl_ctx.c.

References check_non_null(), isl_ctx_next_operation(), and size.

◆ isl_realloc_or_die()

void * isl_realloc_or_die ( isl_ctx * ctx,
void * ptr,
size_t size )

Definition at line 109 of file isl_ctx.c.

References check_non_null(), isl_ctx_next_operation(), and size.

◆ isl_stat_non_null()

◆ print_stats()

void print_stats ( isl_ctx * ctx)
static

Definition at line 283 of file isl_ctx.c.

References isl_ctx::operations.

Referenced by isl_ctx_free().