osprey-gcc/gcc/sbitmap.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Types

type  simple_bitmap_def

Defines

#define SBITMAP_ELT_BITS   ((unsigned) HOST_BITS_PER_WIDEST_FAST_INT)
#define SBITMAP_ELT_TYPE   unsigned HOST_WIDEST_FAST_INT
#define SBITMAP_SET_SIZE(N)   (((N) + SBITMAP_ELT_BITS - 1) / SBITMAP_ELT_BITS)
#define SET_BIT(BITMAP, BITNO)
#define TEST_BIT(BITMAP, BITNO)   ((BITMAP)->elms [(BITNO) / SBITMAP_ELT_BITS] >> (BITNO) % SBITMAP_ELT_BITS & 1)
#define RESET_BIT(BITMAP, BITNO)
#define EXECUTE_IF_SET_IN_SBITMAP(SBITMAP, MIN, N, CODE)
#define EXECUTE_IF_SET_IN_SBITMAP_REV(SBITMAP, N, CODE)
#define sbitmap_free(MAP)   free(MAP)
#define sbitmap_vector_free(VEC)   free(VEC)
#define sbitmap_intersect_of_predecessors   sbitmap_intersect_of_predsucc
#define sbitmap_intersect_of_successors   sbitmap_intersect_of_predsucc
#define sbitmap_union_of_predecessors   sbitmap_union_of_predsucc
#define sbitmap_union_of_successors   sbitmap_union_of_predsucc

Typedefs

typedef struct simple_bitmap_defsbitmap
typedef SBITMAP_ELT_TYPE * sbitmap_ptr

Functions/Subroutines

void dump_sbitmap (FILE *, sbitmap)
void dump_sbitmap_file (FILE *, sbitmap)
void dump_sbitmap_vector (FILE *, const char *, const char *, sbitmap *, int)
sbitmap sbitmap_alloc (unsigned int)
sbitmapsbitmap_vector_alloc (unsigned int, unsigned int)
sbitmap sbitmap_resize (sbitmap, unsigned int, int)
void sbitmap_copy (sbitmap, sbitmap)
int sbitmap_equal (sbitmap, sbitmap)
void sbitmap_zero (sbitmap)
void sbitmap_ones (sbitmap)
void sbitmap_vector_zero (sbitmap *, unsigned int)
void sbitmap_vector_ones (sbitmap *, unsigned int)
void sbitmap_union_of_diff (sbitmap, sbitmap, sbitmap, sbitmap)
bool sbitmap_union_of_diff_cg (sbitmap, sbitmap, sbitmap, sbitmap)
void sbitmap_difference (sbitmap, sbitmap, sbitmap)
void sbitmap_not (sbitmap, sbitmap)
void sbitmap_a_or_b_and_c (sbitmap, sbitmap, sbitmap, sbitmap)
bool sbitmap_a_or_b_and_c_cg (sbitmap, sbitmap, sbitmap, sbitmap)
void sbitmap_a_and_b_or_c (sbitmap, sbitmap, sbitmap, sbitmap)
bool sbitmap_a_and_b_or_c_cg (sbitmap, sbitmap, sbitmap, sbitmap)
bool sbitmap_any_common_bits (sbitmap, sbitmap)
void sbitmap_a_and_b (sbitmap, sbitmap, sbitmap)
bool sbitmap_a_and_b_cg (sbitmap, sbitmap, sbitmap)
void sbitmap_a_or_b (sbitmap, sbitmap, sbitmap)
bool sbitmap_a_or_b_cg (sbitmap, sbitmap, sbitmap)
void sbitmap_a_xor_b (sbitmap, sbitmap, sbitmap)
bool sbitmap_a_xor_b_cg (sbitmap, sbitmap, sbitmap)
bool sbitmap_a_subset_b_p (sbitmap, sbitmap)
int sbitmap_first_set_bit (sbitmap)
int sbitmap_last_set_bit (sbitmap)
void sbitmap_intersect_of_predsucc (sbitmap, sbitmap *, int, struct int_list **)
void sbitmap_union_of_predsucc (sbitmap, sbitmap *, int, struct int_list **)
void sbitmap_intersection_of_succs (sbitmap, sbitmap *, int)
void sbitmap_intersection_of_preds (sbitmap, sbitmap *, int)
void sbitmap_union_of_succs (sbitmap, sbitmap *, int)
void sbitmap_union_of_preds (sbitmap, sbitmap *, int)
void debug_sbitmap (sbitmap)
sbitmap sbitmap_realloc (sbitmap, unsigned int)


Define Documentation

#define EXECUTE_IF_SET_IN_SBITMAP ( SBITMAP,
MIN,
N,
CODE   ) 

Value:

do {                  \
  unsigned int word_num_ = (MIN) / (unsigned int) SBITMAP_ELT_BITS; \
  unsigned int bit_num_ = (MIN) % (unsigned int) SBITMAP_ELT_BITS;  \
  unsigned int size_ = (SBITMAP)->size;         \
  SBITMAP_ELT_TYPE *ptr_ = (SBITMAP)->elms;       \
  SBITMAP_ELT_TYPE word_;           \
                  \
  if (word_num_ < size_)            \
    {                 \
      word_ = ptr_[word_num_] >> bit_num_;        \
                  \
      while (1)               \
  {               \
    for (; word_ != 0; word_ >>= 1, bit_num_++)     \
      {               \
        if ((word_ & 1) != 0)         \
    {             \
      (N) = word_num_ * SBITMAP_ELT_BITS + bit_num_;  \
      CODE;             \
    }             \
      }               \
    word_num_++;              \
    if (word_num_ >= size_)         \
      break;              \
    bit_num_ = 0, word_ = ptr_[word_num_];      \
  }               \
    }                 \
} while (0)

Definition at line 59 of file sbitmap.h.

#define EXECUTE_IF_SET_IN_SBITMAP_REV ( SBITMAP,
N,
CODE   ) 

Value:

do {                  \
  unsigned int word_num_;           \
  unsigned int bit_num_;            \
  unsigned int size_ = (SBITMAP)->size;         \
  SBITMAP_ELT_TYPE *ptr_ = (SBITMAP)->elms;       \
                  \
  for (word_num_ = size_; word_num_ > 0; word_num_--)     \
    {                 \
      SBITMAP_ELT_TYPE word_ = ptr_[word_num_ - 1];     \
                  \
      if (word_ != 0)             \
  for (bit_num_ = SBITMAP_ELT_BITS; bit_num_ > 0; bit_num_--) \
    {               \
      SBITMAP_ELT_TYPE _mask = (SBITMAP_ELT_TYPE)1 << (bit_num_ - 1);\
                  \
      if ((word_ & _mask) != 0)         \
        {               \
    word_ &= ~ _mask;         \
    (N) = (word_num_ - 1) * SBITMAP_ELT_BITS + bit_num_ - 1;\
    CODE;             \
    if (word_ == 0)           \
      break;            \
        }               \
    }               \
    }                 \
} while (0)

Definition at line 89 of file sbitmap.h.

#define RESET_BIT ( BITMAP,
BITNO   ) 

Value:

((BITMAP)->elms [(BITNO) / SBITMAP_ELT_BITS]      \
   &= ~((SBITMAP_ELT_TYPE) 1 << (BITNO) % SBITMAP_ELT_BITS))

Definition at line 54 of file sbitmap.h.

#define SBITMAP_ELT_BITS   ((unsigned) HOST_BITS_PER_WIDEST_FAST_INT)

Definition at line 28 of file sbitmap.h.

#define SBITMAP_ELT_TYPE   unsigned HOST_WIDEST_FAST_INT

Definition at line 29 of file sbitmap.h.

#define sbitmap_free ( MAP   )     free(MAP)

Definition at line 117 of file sbitmap.h.

#define sbitmap_intersect_of_predecessors   sbitmap_intersect_of_predsucc

Definition at line 158 of file sbitmap.h.

#define sbitmap_intersect_of_successors   sbitmap_intersect_of_predsucc

Definition at line 159 of file sbitmap.h.

#define SBITMAP_SET_SIZE (  )     (((N) + SBITMAP_ELT_BITS - 1) / SBITMAP_ELT_BITS)

Definition at line 42 of file sbitmap.h.

#define sbitmap_union_of_predecessors   sbitmap_union_of_predsucc

Definition at line 163 of file sbitmap.h.

#define sbitmap_union_of_successors   sbitmap_union_of_predsucc

Definition at line 164 of file sbitmap.h.

#define sbitmap_vector_free ( VEC   )     free(VEC)

Definition at line 118 of file sbitmap.h.

#define SET_BIT ( BITMAP,
BITNO   ) 

Value:

((BITMAP)->elms [(BITNO) / SBITMAP_ELT_BITS]      \
   |= (SBITMAP_ELT_TYPE) 1 << (BITNO) % SBITMAP_ELT_BITS)

Definition at line 45 of file sbitmap.h.

#define TEST_BIT ( BITMAP,
BITNO   )     ((BITMAP)->elms [(BITNO) / SBITMAP_ELT_BITS] >> (BITNO) % SBITMAP_ELT_BITS & 1)

Definition at line 50 of file sbitmap.h.


Typedef Documentation

typedef SBITMAP_ELT_TYPE* sbitmap_ptr

Definition at line 39 of file sbitmap.h.


Function Documentation

void debug_sbitmap ( sbitmap   ) 

Definition at line 757 of file sbitmap.c.

void dump_sbitmap ( FILE ,
sbitmap   
)

Definition at line 709 of file sbitmap.c.

void dump_sbitmap_file ( FILE ,
sbitmap   
)

Definition at line 732 of file sbitmap.c.

void dump_sbitmap_vector ( FILE ,
const char *  ,
const char *  ,
sbitmap ,
int   
)

Definition at line 764 of file sbitmap.c.

void sbitmap_a_and_b ( sbitmap  ,
sbitmap  ,
sbitmap   
)

Definition at line 325 of file sbitmap.c.

bool sbitmap_a_and_b_cg ( sbitmap  ,
sbitmap  ,
sbitmap   
)

Definition at line 305 of file sbitmap.c.

void sbitmap_a_and_b_or_c ( sbitmap  ,
sbitmap  ,
sbitmap  ,
sbitmap   
)

Definition at line 488 of file sbitmap.c.

bool sbitmap_a_and_b_or_c_cg ( sbitmap  ,
sbitmap  ,
sbitmap  ,
sbitmap   
)

Definition at line 467 of file sbitmap.c.

void sbitmap_a_or_b ( sbitmap  ,
sbitmap  ,
sbitmap   
)

Definition at line 397 of file sbitmap.c.

void sbitmap_a_or_b_and_c ( sbitmap  ,
sbitmap  ,
sbitmap  ,
sbitmap   
)

Definition at line 450 of file sbitmap.c.

bool sbitmap_a_or_b_and_c_cg ( sbitmap  ,
sbitmap  ,
sbitmap  ,
sbitmap   
)

Definition at line 429 of file sbitmap.c.

bool sbitmap_a_or_b_cg ( sbitmap  ,
sbitmap  ,
sbitmap   
)

Definition at line 377 of file sbitmap.c.

bool sbitmap_a_subset_b_p ( sbitmap  ,
sbitmap   
)

Definition at line 412 of file sbitmap.c.

void sbitmap_a_xor_b ( sbitmap  ,
sbitmap  ,
sbitmap   
)

Definition at line 361 of file sbitmap.c.

bool sbitmap_a_xor_b_cg ( sbitmap  ,
sbitmap  ,
sbitmap   
)

Definition at line 341 of file sbitmap.c.

sbitmap sbitmap_alloc ( unsigned  int  ) 

Definition at line 33 of file sbitmap.c.

bool sbitmap_any_common_bits ( sbitmap  ,
sbitmap   
)

Definition at line 323 of file sbitmap.c.

void sbitmap_copy ( sbitmap  ,
sbitmap   
)

Definition at line 154 of file sbitmap.c.

void sbitmap_difference ( sbitmap  ,
sbitmap  ,
sbitmap   
)

Definition at line 276 of file sbitmap.c.

int sbitmap_equal ( sbitmap  ,
sbitmap   
)

Definition at line 162 of file sbitmap.c.

int sbitmap_first_set_bit ( sbitmap   ) 

Definition at line 666 of file sbitmap.c.

void sbitmap_intersect_of_predsucc ( sbitmap  ,
sbitmap ,
int  ,
struct int_list **   
)

void sbitmap_intersection_of_preds ( sbitmap  ,
sbitmap ,
int   
)

Referenced by compute_available().

void sbitmap_intersection_of_succs ( sbitmap  ,
sbitmap ,
int   
)

int sbitmap_last_set_bit ( sbitmap   ) 

Definition at line 678 of file sbitmap.c.

void sbitmap_not ( sbitmap  ,
sbitmap   
)

Definition at line 261 of file sbitmap.c.

void sbitmap_ones ( sbitmap   ) 

Definition at line 180 of file sbitmap.c.

sbitmap sbitmap_realloc ( sbitmap  ,
unsigned  int 
)

Definition at line 110 of file sbitmap.c.

sbitmap sbitmap_resize ( sbitmap  ,
unsigned  int,
int   
)

Definition at line 55 of file sbitmap.c.

void sbitmap_union_of_diff ( sbitmap  ,
sbitmap  ,
sbitmap  ,
sbitmap   
)

Definition at line 245 of file sbitmap.c.

bool sbitmap_union_of_diff_cg ( sbitmap  ,
sbitmap  ,
sbitmap  ,
sbitmap   
)

Definition at line 224 of file sbitmap.c.

void sbitmap_union_of_preds ( sbitmap  ,
sbitmap ,
int   
)

void sbitmap_union_of_predsucc ( sbitmap  ,
sbitmap ,
int  ,
struct int_list **   
)

void sbitmap_union_of_succs ( sbitmap  ,
sbitmap ,
int   
)

sbitmap* sbitmap_vector_alloc ( unsigned  int,
unsigned  int 
)

Definition at line 111 of file sbitmap.c.

void sbitmap_vector_ones ( sbitmap ,
unsigned  int 
)

Definition at line 209 of file sbitmap.c.

void sbitmap_vector_zero ( sbitmap ,
unsigned  int 
)

Definition at line 196 of file sbitmap.c.

void sbitmap_zero ( sbitmap   ) 

Definition at line 171 of file sbitmap.c.


Generated on Wed Apr 8 15:44:23 2009 for Open64 by  doxygen 1.5.6