osprey-gcc-4.2.0/gcc/bitmap.c File Reference

#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "rtl.h"
#include "flags.h"
#include "obstack.h"
#include "ggc.h"
#include "bitmap.h"
#include "gt-bitmap.h"

Include dependency graph for bitmap.c:

Go to the source code of this file.

Defines

#define __alignof__(type)   0

Functions/Subroutines

static GTY ((deletable))
static void bitmap_element_free (bitmap head, bitmap_element *elt)
static bitmap_elementbitmap_element_allocate (bitmap head)
void bitmap_elt_clear_from (bitmap head, bitmap_element *elt)
void bitmap_clear (bitmap head)
void bitmap_obstack_initialize (bitmap_obstack *bit_obstack)
void bitmap_obstack_release (bitmap_obstack *bit_obstack)
bitmap bitmap_obstack_alloc (bitmap_obstack *bit_obstack)
bitmap bitmap_gc_alloc (void)
void bitmap_obstack_free (bitmap map)
static int bitmap_element_zerop (bitmap_element *element)
static void bitmap_element_link (bitmap head, bitmap_element *element)
static bitmap_elementbitmap_elt_insert_after (bitmap head, bitmap_element *elt, unsigned int indx)
void bitmap_copy (bitmap to, bitmap from)
static bitmap_elementbitmap_find_bit (bitmap head, unsigned int bit)
void bitmap_clear_bit (bitmap head, int bit)
void bitmap_set_bit (bitmap head, int bit)
int bitmap_bit_p (bitmap head, int bit)
static unsigned long bitmap_popcount (BITMAP_WORD a)
unsigned long bitmap_count_bits (bitmap a)
unsigned bitmap_first_set_bit (bitmap a)
void bitmap_and (bitmap dst, bitmap a, bitmap b)
void bitmap_and_into (bitmap a, bitmap b)
void bitmap_and_compl (bitmap dst, bitmap a, bitmap b)
bool bitmap_and_compl_into (bitmap a, bitmap b)
void bitmap_clear_range (bitmap head, unsigned int start, unsigned int count)
void bitmap_compl_and_into (bitmap a, bitmap b)
bool bitmap_ior (bitmap dst, bitmap a, bitmap b)
bool bitmap_ior_into (bitmap a, bitmap b)
void bitmap_xor (bitmap dst, bitmap a, bitmap b)
void bitmap_xor_into (bitmap a, bitmap b)
bool bitmap_equal_p (bitmap a, bitmap b)
bool bitmap_intersect_p (bitmap a, bitmap b)
bool bitmap_intersect_compl_p (bitmap a, bitmap b)
bool bitmap_ior_and_compl (bitmap dst, bitmap a, bitmap from1, bitmap from2)
bool bitmap_ior_and_compl_into (bitmap a, bitmap from1, bitmap from2)
void debug_bitmap_file (FILE *file, bitmap head)
void debug_bitmap (bitmap head)
void bitmap_print (FILE *file, bitmap head, const char *prefix, const char *suffix)
hashval_t bitmap_hash (bitmap head)

Variables

bitmap_element bitmap_zero_bits
bitmap_obstack bitmap_default_obstack
static unsigned char popcount_table []


Define Documentation

#define __alignof__ ( type   )     0


Function Documentation

void bitmap_and ( bitmap  dst,
bitmap  a,
bitmap  b 
)

void bitmap_and_compl ( bitmap  dst,
bitmap  a,
bitmap  b 
)

bool bitmap_and_compl_into ( bitmap  a,
bitmap  b 
)

void bitmap_and_into ( bitmap  a,
bitmap  b 
)

int bitmap_bit_p ( bitmap  head,
int  bit 
)

Definition at line 514 of file bitmap.c.

References bitmap_element, BITMAP_ELEMENT_WORDS, bitmap_find_bit(), BITMAP_WORD_BITS, and ptr.

void bitmap_clear ( bitmap  head  )  [inline]

Definition at line 190 of file bitmap.c.

References bitmap_element, bitmap_elt_clear_from(), element, and next.

void bitmap_clear_bit ( bitmap  head,
int  bit 
)

void bitmap_clear_range ( bitmap  head,
unsigned int  start,
unsigned int  count 
)

void bitmap_compl_and_into ( bitmap  a,
bitmap  b 
)

void bitmap_copy ( bitmap  to,
bitmap  from 
)

unsigned long bitmap_count_bits ( bitmap  a  ) 

Definition at line 559 of file bitmap.c.

References bitmap_element, BITMAP_ELEMENT_WORDS, bitmap_popcount(), and count.

Referenced by df_rd_dump(), df_ru_dump(), and prune_unused_phi_nodes().

static bitmap_element* bitmap_element_allocate ( bitmap  head  )  [inline, static]

Definition at line 101 of file bitmap.c.

References bitmap_element, bitmap_obstack, element, GGC_NEW, memset, and XOBNEW.

static void bitmap_element_free ( bitmap  head,
bitmap_element elt 
) [inline, static]

Definition at line 71 of file bitmap.c.

References bitmap_element, next, and prev.

static void bitmap_element_link ( bitmap  head,
bitmap_element element 
) [inline, static]

Definition at line 299 of file bitmap.c.

References bitmap_element, indx, and ptr.

static int bitmap_element_zerop ( bitmap_element element  )  [inline, static]

Definition at line 281 of file bitmap.c.

References BITMAP_ELEMENT_WORDS, and i.

void bitmap_elt_clear_from ( bitmap  head,
bitmap_element elt 
)

Definition at line 150 of file bitmap.c.

References bitmap_element, bitmap_obstack, NULL, and prev.

static bitmap_element* bitmap_elt_insert_after ( bitmap  head,
bitmap_element elt,
unsigned int  indx 
) [static]

Definition at line 356 of file bitmap.c.

References bitmap_element, bitmap_element_allocate(), gcc_assert, node, and NULL.

bool bitmap_equal_p ( bitmap  a,
bitmap  b 
)

static bitmap_element* bitmap_find_bit ( bitmap  head,
unsigned int  bit 
) [inline, static]

Definition at line 428 of file bitmap.c.

References bitmap_element, BITMAP_ELEMENT_ALL_BITS, element, and indx.

unsigned bitmap_first_set_bit ( bitmap  a  ) 

bitmap bitmap_gc_alloc ( void   ) 

Definition at line 254 of file bitmap.c.

References bitmap_initialize(), GGC_NEW, map, and NULL.

hashval_t bitmap_hash ( bitmap  head  ) 

Definition at line 1525 of file bitmap.c.

References bitmap_element, BITMAP_ELEMENT_WORDS, and ptr.

Referenced by ptr_info_hash().

bool bitmap_intersect_compl_p ( bitmap  a,
bitmap  b 
)

Definition at line 1402 of file bitmap.c.

References bitmap_element, BITMAP_ELEMENT_WORDS, and NULL.

bool bitmap_intersect_p ( bitmap  a,
bitmap  b 
)

Definition at line 1374 of file bitmap.c.

References bitmap_element, and BITMAP_ELEMENT_WORDS.

bool bitmap_ior ( bitmap  dst,
bitmap  a,
bitmap  b 
)

bool bitmap_ior_and_compl ( bitmap  dst,
bitmap  a,
bitmap  from1,
bitmap  from2 
)

bool bitmap_ior_and_compl_into ( bitmap  a,
bitmap  from1,
bitmap  from2 
)

bool bitmap_ior_into ( bitmap  a,
bitmap  b 
)

bitmap bitmap_obstack_alloc ( bitmap_obstack bit_obstack  ) 

Definition at line 235 of file bitmap.c.

References bitmap_default_obstack, bitmap_head, bitmap_initialize(), map, and XOBNEW.

void bitmap_obstack_free ( bitmap  map  ) 

Definition at line 267 of file bitmap.c.

References bitmap_clear().

void bitmap_obstack_initialize ( bitmap_obstack bit_obstack  ) 

void bitmap_obstack_release ( bitmap_obstack bit_obstack  ) 

Definition at line 221 of file bitmap.c.

References bitmap_default_obstack, NULL, and obstack_free.

static unsigned long bitmap_popcount ( BITMAP_WORD  a  )  [static]

Definition at line 545 of file bitmap.c.

References BITMAP_WORD_BITS, i, and ret.

Referenced by bitmap_count_bits().

void bitmap_print ( FILE file,
bitmap  head,
const char *  prefix,
const char *  suffix 
)

Definition at line 1508 of file bitmap.c.

References comma, EXECUTE_IF_SET_IN_BITMAP, fprintf(), fputs(), and i.

void bitmap_set_bit ( bitmap  head,
int  bit 
)

void bitmap_xor ( bitmap  dst,
bitmap  a,
bitmap  b 
)

void bitmap_xor_into ( bitmap  a,
bitmap  b 
)

void debug_bitmap ( bitmap  head  ) 

Definition at line 1499 of file bitmap.c.

References debug_bitmap_file().

void debug_bitmap_file ( FILE file,
bitmap  head 
)

static GTY ( (deletable)   )  [static]

Definition at line 35 of file bitmap.c.

References bitmap_obstack, and NULL.


Variable Documentation

Definition at line 34 of file bitmap.c.

Definition at line 33 of file bitmap.c.

unsigned char popcount_table[] [static]

Initial value:

{
    0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,
    1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,
    1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,
    2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,
    1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,
    2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,
    2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,
    3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,4,5,5,6,5,6,6,7,5,6,6,7,6,7,7,8,
}

Definition at line 532 of file bitmap.c.


Generated on Wed Apr 8 15:11:52 2009 for Open64 by  doxygen 1.5.6