Polly 20.0.0git
Macros | Functions
isl_blk.c File Reference
#include <isl_blk.h>
#include <isl_ctx_private.h>

Go to the source code of this file.

Macros

#define ISL_BLK_MAX_MISS   100
 

Functions

struct isl_blk isl_blk_empty ()
 
static int isl_blk_is_empty (struct isl_blk block)
 
static struct isl_blk isl_blk_error ()
 
int isl_blk_is_error (struct isl_blk block)
 
static void isl_blk_free_force (struct isl_ctx *ctx, struct isl_blk block)
 
static struct isl_blk extend (struct isl_ctx *ctx, struct isl_blk block, size_t new_n)
 
struct isl_blk isl_blk_alloc (struct isl_ctx *ctx, size_t n)
 
struct isl_blk isl_blk_extend (struct isl_ctx *ctx, struct isl_blk block, size_t new_n)
 
void isl_blk_free (struct isl_ctx *ctx, struct isl_blk block)
 
void isl_blk_clear_cache (struct isl_ctx *ctx)
 

Macro Definition Documentation

◆ ISL_BLK_MAX_MISS

#define ISL_BLK_MAX_MISS   100

Definition at line 14 of file isl_blk.c.

Function Documentation

◆ extend()

static struct isl_blk extend ( struct isl_ctx ctx,
struct isl_blk  block,
size_t  new_n 
)
static

Definition at line 51 of file isl_blk.c.

References isl_blk::data, isl_blk_error(), isl_blk_free_force(), isl_int_init, isl_realloc_array, and p.

Referenced by isl_blk_alloc(), and isl_blk_extend().

◆ isl_blk_alloc()

struct isl_blk isl_blk_alloc ( struct isl_ctx ctx,
size_t  n 
)

◆ isl_blk_clear_cache()

void isl_blk_clear_cache ( struct isl_ctx ctx)

Definition at line 127 of file isl_blk.c.

References isl_ctx::cache, isl_blk_free_force(), and isl_ctx::n_cached.

Referenced by isl_ctx_free().

◆ isl_blk_empty()

struct isl_blk isl_blk_empty ( void  )

Definition at line 16 of file isl_blk.c.

References isl_blk::data, and isl_blk::size.

Referenced by basic_map_init(), isl_blk_alloc(), and isl_mat_sub_alloc6().

◆ isl_blk_error()

static struct isl_blk isl_blk_error ( )
static

Definition at line 29 of file isl_blk.c.

References isl_blk::data, and isl_blk::size.

Referenced by extend().

◆ isl_blk_extend()

struct isl_blk isl_blk_extend ( struct isl_ctx ctx,
struct isl_blk  block,
size_t  new_n 
)

◆ isl_blk_free()

void isl_blk_free ( struct isl_ctx ctx,
struct isl_blk  block 
)

◆ isl_blk_free_force()

static void isl_blk_free_force ( struct isl_ctx ctx,
struct isl_blk  block 
)
static

Definition at line 42 of file isl_blk.c.

References isl_blk::data, isl_int_clear, and isl_blk::size.

Referenced by extend(), isl_blk_alloc(), isl_blk_clear_cache(), and isl_blk_free().

◆ isl_blk_is_empty()

static int isl_blk_is_empty ( struct isl_blk  block)
static

Definition at line 24 of file isl_blk.c.

References isl_blk::data, and isl_blk::size.

Referenced by isl_blk_extend(), and isl_blk_free().

◆ isl_blk_is_error()

int isl_blk_is_error ( struct isl_blk  block)