osprey/kg++fe/gnu/bitmap.c File Reference

#include "config.h"
#include "system.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 INLINE
#define OBSTACK_CHUNK_SIZE   0
#define OBSTACK_CHUNK_ALLOC   xmalloc
#define OBSTACK_CHUNK_FREE   free
#define __alignof__(type)   0
#define HIGHEST_INDEX   (unsigned int) ~0
#define DOIT(OP)

Functions/Subroutines

static GTY ((deletable("")))
static INLINE void bitmap_element_free (bitmap head, bitmap_element *elt)
static INLINE bitmap_elementbitmap_element_allocate (bitmap head)
void bitmap_release_memory ()
static INLINE int bitmap_element_zerop (bitmap_element *element)
static INLINE void bitmap_element_link (bitmap head, bitmap_element *element)
INLINE void bitmap_clear (bitmap head)
void bitmap_copy (bitmap to, bitmap from)
static INLINE 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)
int bitmap_first_set_bit (bitmap a)
int bitmap_last_set_bit (bitmap a)
int bitmap_operation (bitmap to, bitmap from1, bitmap from2, enum bitmap_bits operation)
int bitmap_equal_p (bitmap a, bitmap b)
void bitmap_ior_and_compl (bitmap to, bitmap from1, bitmap from2)
int bitmap_union_of_diff (bitmap dst, bitmap a, bitmap b, bitmap c)
bitmap bitmap_initialize (bitmap head, int using_obstack)
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)

Variables

static struct obstack bitmap_obstack
static int bitmap_obstack_init = FALSE
bitmap_element bitmap_zero_bits
static bitmap_elementbitmap_free


Define Documentation

#define __alignof__ ( type   )     0

#define DOIT ( OP   ) 

Value:

do {              \
    BITMAP_WORD t, f1, f2;        \
    int i;            \
    for (i = 0; i < BITMAP_ELEMENT_WORDS; ++i)    \
      {             \
  f1 = from1_tmp->bits[i];      \
  f2 = from2_tmp->bits[i];      \
  t = f1 OP f2;         \
  changed |= (t != to_tmp->bits[i]);    \
  to_tmp->bits[i] = t;        \
      }             \
  } while (0)

#define HIGHEST_INDEX   (unsigned int) ~0

Referenced by bitmap_operation().

#define INLINE

Definition at line 36 of file bitmap.c.

Referenced by Check_Inline_Script(), Parse_inline_script(), and Verify_Inline_Script().

#define OBSTACK_CHUNK_ALLOC   xmalloc

#define OBSTACK_CHUNK_FREE   free

#define OBSTACK_CHUNK_SIZE   0


Function Documentation

int bitmap_bit_p ( bitmap  head,
int  bit 
)

Definition at line 412 of file bitmap.c.

Referenced by add_call_clobber_ops(), add_call_read_ops(), add_conflicts_if_valid(), add_dependance(), add_dependence(), add_deps_for_def(), add_deps_for_use(), add_forw_dep(), add_forward_dependence(), add_livein_if_notdef(), add_new_name_mapping(), add_or_update_back_dep_1(), add_static_var(), analyze_edges_for_bb(), augment_live_range(), bfin_bb_in_loop(), bfin_discover_loop(), bitmap_find_leader(), bitmap_set_and(), bitmap_set_and_compl(), bitmap_set_contains(), bitmap_set_contains_value(), bitmap_set_replace_value(), build_tree_conflict_graph(), c_finish_omp_clauses(), calc_idoms(), calculate_live_on_entry(), check_all_va_list_escapes(), check_cast(), check_df(), check_for_plus_in_loops_1(), check_va_list_escapes(), close_addressof_down(), close_type_exposed_parameter(), close_type_full_escape(), close_type_seen(), collect_object_sizes_for(), collect_pattern_seqs(), combine_reloads(), compute_always_reached(), compute_builtin_object_size(), compute_dominance_frontiers_1(), compute_flow_insensitive_aliasing(), compute_global_livein(), compute_vuse_representatives(), cprop_into_successor_phis(), detect_spill_temps(), df_analyze_subcfg(), df_bb_du_chain_create(), df_bb_rd_local_compute(), df_bb_refs_update(), df_bb_reg_live_end_p(), df_bb_reg_live_start_p(), df_bb_ud_chain_create(), df_create_unused_note(), df_def_dominates_uses_p(), df_insn_dominates_uses_p(), df_lr_bb_local_compute(), df_lr_local_compute(), df_modified_p(), df_prune_to_subcfg(), df_rd_bb_local_compute_process_def(), df_refs_record(), df_refs_reg_replace(), df_ri_bb_compute(), df_ru_bb_local_compute_process_def(), df_ru_bb_local_compute_process_use(), df_set_dead_notes_for_mw(), df_set_unused_notes_for_mw(), df_ur_bb_local_compute(), df_urec_mark_reg_use_for_earlyclobber(), do_da_constraint(), do_ds_constraint(), do_sd_constraint(), dse_optimize_stmt(), dump_live_info(), duplicate_computed_gotos(), expand_case(), expr_expected_value(), find_dummy_reload(), find_invariants_body(), find_replaceable_in_bb(), find_va_list_reference(), finish_expr(), finish_omp_clauses(), frv_ifcvt_modify_insn(), get_loop_body_in_bfs_order(), get_loop_body_in_if_conv_order(), get_maxval_strlen(), get_strlen(), GTY(), has_proper_scope_for_analysis(), insert_into_preds_of_block(), insns_match_p(), instantiate_parameters_1(), int_add_graph_edge(), ipa_type_escape_field_does_not_clobber_p(), ipa_type_escape_type_contained_p(), is_call_clobbered(), is_sra_candidate_decl(), latch_dominating_def(), live_in_edge(), live_worklist(), lookup_avail_expr(), mark_block_for_update(), mark_def_interesting(), mark_def_sites(), mark_reg_use_for_earlyclobber(), mark_type(), mark_use_interesting(), merge_moves(), merge_object_sizes(), move_sese_region_to_fn(), need_imm_uses_for(), partition_is_global(), pred_blocks_visited_p(), prepare_def_operand_for_rename(), prepare_def_site_for(), prepare_names_to_update(), prepare_use_operand_for_rename(), propagate_freq(), prune_to_subcfg(), prune_unused_phi_nodes(), push_reload(), record_single_argument_cond_exprs(), record_var_is_nonzero(), remove_all_phi_nodes_for(), remove_suspicious_death_notes(), rewrite_operand(), rewrite_program(), rewrite_program2(), rewrite_update_init_block(), rewrite_update_phi_arguments(), rewrite_update_stmt(), rewrite_virtual_phi_arguments(), s390_chunkify_pool(), s390_chunkify_start(), s390_find_pool(), schedule_ebb(), schedule_ebbs(), setup_pointers_and_addressables(), sra_type_can_be_decomposed_p(), ssa_mark_def_sites(), ssa_mark_phi_uses(), symbol_marked_for_renaming(), type_can_be_decomposed_p(), type_can_instantiate_all_elements(), type_escape_execute(), update_caller_keys(), va_list_counter_struct_op(), va_list_ptr_read(), va_list_ptr_write(), valid_graph_edge(), value_exists_in_set_bitmap(), verify_call_clobbering(), verify_flow_insensitive_alias_info(), verify_use(), and vuses_dies_in_block_x().

INLINE void bitmap_clear ( bitmap  head  ) 

Definition at line 264 of file bitmap.c.

Referenced by analyze_edges_for_bb(), bitmap_and_compl(), bitmap_and_compl_into(), bitmap_compl_and_into(), bitmap_copy(), bitmap_equal_p(), bitmap_ior_and_compl(), bitmap_ior_and_compl_into(), bitmap_obstack_free(), bitmap_union_of_diff(), bitmap_xor(), bitmap_xor_into(), calculate_live_on_entry(), ccp_fold_builtin(), cgraph_decide_inlining_of_small_functions(), check_df(), clear_control_dependence_bitmap(), clear_modify_mem_tables(), collect_pattern_seqs(), condense_varmap_nodes(), decide_instantiations(), delete_all_dependences(), determine_use_iv_costs(), df_bitmaps_alloc(), df_lr_alloc(), df_lr_init(), df_lr_local_compute(), df_rd_alloc(), df_rd_bb_local_compute(), df_rd_init_solution(), df_record_entry_block_defs(), df_record_exit_block_uses(), df_ri_bb_compute(), df_ru_alloc(), df_ru_bb_local_compute(), df_ru_init_solution(), df_ur_alloc(), df_ur_bb_local_compute(), df_ur_init(), df_urec_alloc(), df_urec_init(), dse_initialize_block_local_data(), execute_todo(), find_more_ref_vops(), free_dependency_caches(), free_loop_data(), group_aliases(), init_alias_info(), mark_def_sites_initialize_block(), move_computations(), nearest_common_dominator_of_uses(), process_unification_queue(), prune_unused_phi_nodes(), reloads_to_loads(), rewrite_program(), rewrite_program2(), schedule_ebbs(), set_value_range(), set_value_range_to_undefined(), set_value_range_to_varying(), ssa_mark_def_sites_initialize_block(), tree_loop_optimizer_init(), tree_ssa_dominator_optimize(), tree_ssa_forward_propagate_single_use_vars(), tree_vectorize(), type_escape_execute(), unmark_all_for_rewrite(), vectorize_loops(), verify_name_tags(), verify_ssa(), and vrp_meet().

void bitmap_clear_bit ( bitmap  head,
int  bit 
)

void bitmap_copy ( bitmap  to,
bitmap  from 
)

static INLINE bitmap_element* bitmap_element_allocate ( bitmap  head  )  [static]

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

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

Definition at line 204 of file bitmap.c.

References bitmap_element, indx, and ptr.

Referenced by bitmap_operation(), and bitmap_set_bit().

static INLINE int bitmap_element_zerop ( bitmap_element element  )  [static]

Definition at line 185 of file bitmap.c.

References BITMAP_ELEMENT_WORDS, and i.

Referenced by bitmap_clear_bit(), and bitmap_operation().

int bitmap_equal_p ( bitmap  a,
bitmap  b 
)

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

int bitmap_first_set_bit ( bitmap  a  ) 

bitmap bitmap_initialize ( bitmap  head,
int  using_obstack 
)

void bitmap_ior_and_compl ( bitmap  to,
bitmap  from1,
bitmap  from2 
)

int bitmap_last_set_bit ( bitmap  a  ) 

int bitmap_operation ( bitmap  to,
bitmap  from1,
bitmap  from2,
enum bitmap_bits  operation 
)

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

void bitmap_release_memory (  ) 

Definition at line 172 of file bitmap.c.

References bitmap_free, bitmap_obstack, bitmap_obstack_init, FALSE, NULL, and obstack_free.

Referenced by regset_release_memory().

void bitmap_set_bit ( bitmap  head,
int  bit 
)

Definition at line 389 of file bitmap.c.

Referenced by add_back_dep(), add_block1(), add_candidate_1(), add_dependance(), add_dependence(), add_equivalence(), add_exit_phis_var(), add_forw_dep(), add_livein_if_notdef(), add_new_name_mapping(), add_or_update_back_dep_1(), add_pointed_to_var(), add_static_var(), add_to_addressable_set(), add_to_repl_tbl(), allocate_bb_info(), analyze_edges_for_bb(), augment_live_range(), bfin_discover_loop(), bitmap_insert_into_set(), bitmap_set_replace_value(), btr_def_live_range(), build_constraint_graph(), build_tree_conflict_graph(), c_finish_omp_clauses(), calc_dfs_tree(), calculate_live_on_exit(), canon_list_insert(), check_dependencies(), check_df(), check_for_plus_in_loops_1(), check_operand(), check_replaceable(), check_va_list_escapes(), close_addressof_down(), close_type_exposed_parameter(), close_type_full_escape(), close_type_seen(), collect_object_sizes_for(), collect_pattern_seqs(), compare_name_with_value(), compare_names(), compute_always_reached(), compute_builtin_object_size(), compute_dominance_frontiers_1(), compute_flow_insensitive_aliasing(), compute_global_livein(), compute_points_to_and_addr_escape(), compute_rvuse_and_antic_safe(), compute_vuse_representatives(), condense_varmap_nodes(), conflicts_between_webs(), create_global_var(), create_name_tags(), create_ssa_var_map(), decide_instantiations(), detect_spill_temps(), detect_web_parts_to_rebuild(), determine_use_iv_costs(), df_alloc(), df_analyze(), df_bb_du_chain_create(), df_bb_lr_local_compute(), df_bb_modify(), df_bb_rd_local_compute(), df_bb_refs_record(), df_bb_reg_info_compute(), df_bb_ru_local_compute(), df_chain_create_bb(), df_create_unused_note(), df_hard_reg_init(), df_insn_modify(), df_lr_bb_local_compute(), df_lr_local_compute(), df_mark_reg(), df_rd_bb_local_compute_process_def(), df_rd_local_compute(), df_record_entry_block_defs(), df_record_exit_block_uses(), df_ref_bitmap(), df_rescan_blocks(), df_ri_bb_compute(), df_ru_bb_local_compute_process_def(), df_ru_bb_local_compute_process_use(), df_ru_local_compute(), df_set_blocks(), df_set_unused_notes_for_mw(), df_ur_bb_local_compute(), df_urec_bb_local_compute(), df_urec_local_compute(), df_urec_mark_reg_change(), df_urec_mark_reg_use_for_earlyclobber(), discover_unique_type(), do_da_constraint(), do_ds_constraint(), do_sd_constraint(), duplicate_computed_gotos(), eliminate(), emit_colors(), estimate_loops_at_level(), execute_optimize_stdarg(), expand_case(), expr_expected_value(), find_candidates_for_sra(), find_defs(), find_depends(), find_exits(), find_idf(), find_uses_to_rename_use(), finish_expr(), finish_omp_clauses(), fix_loop_structure(), frv_ifcvt_modify_final(), gather_mem_refs_stmt(), gen_lowpart_for_combine(), generate_element_init(), get_loop_body_in_bfs_order(), get_loop_body_in_if_conv_order(), get_loops_exits(), get_maxval_strlen(), get_strlen(), insert_stores(), insert_updated_phi_nodes_for(), insns_match_p(), instantiate_parameters_1(), int_add_graph_edge(), invalidate_name_tags(), iv_analysis_loop_init(), iv_ca_set_cp(), live_in_edge(), live_out_1(), live_worklist(), livethrough_conflicts_bb(), look_for_address_of(), lookup_element(), make_live_on_entry(), make_rename_temp(), mark_all_v_defs(), mark_block_for_update(), mark_call_clobbered(), mark_call_clobbered_vars_to_rename(), mark_def_sites(), mark_for_rewrite(), mark_new_vars_to_rename(), mark_phi_for_rewrite(), mark_refs_for_checking(), mark_reg_change(), mark_reg_use_for_earlyclobber(), mark_sym_for_renaming(), mark_threaded_blocks(), mark_type(), mark_used_regs(), maybe_create_global_var(), merge_graph_nodes(), merge_moves(), mips_extra_live_on_entry(), modify_reg_pav(), move_stmt_r(), nearest_common_dominator_of_uses(), note_addressable(), optimize_stmt(), propagate_rhs_into_lhs(), prune_unused_phi_nodes(), record_conflict(), record_equivalences_from_phis(), record_important_candidates(), record_invariant(), record_last_mem_set_info(), record_single_argument_cond_exprs(), record_var_is_nonzero(), record_voperand_set(), register_new_assert_for(), release_ssa_name_after_update_ssa(), reloads_to_loads(), remove_dead_stmt(), remove_eh_handler(), reset_conflicts(), rewrite_mem_refs(), rewrite_program(), rewrite_program2(), s390_add_pool_insn(), s390_chunkify_pool(), s390_chunkify_start(), scan_for_refs(), scev_const_prop(), schedule_ebbs(), set_control_dependence_map_bit(), set_control_dependent_block_to_edge_map_bit(), set_def_block(), set_if_valid(), set_iv(), set_livein_block(), set_pt_anything(), set_uids_in_ptset(), setup_pointers_and_addressables(), slpeel_update_phi_nodes_for_guard1(), solution_set_add(), sra_type_can_be_decomposed_p(), ssa_mark_def_sites(), ssa_mark_def_sites_initialize_block(), ssa_names_to_replace(), static_execute(), topo_visit(), type_can_be_decomposed_p(), type_can_instantiate_all_elements(), update_alias_info(), update_caller_keys(), update_regnos_mentioned(), va_list_ptr_read(), value_insert_into_set_bitmap(), vect_create_data_ref_ptr(), verify_flow_insensitive_alias_info(), verify_name_tags(), and verify_ssa().

int bitmap_union_of_diff ( bitmap  dst,
bitmap  a,
bitmap  b,
bitmap  c 
)

void debug_bitmap ( bitmap  head  ) 

Definition at line 822 of file bitmap.c.

void debug_bitmap_file ( FILE file,
bitmap  head 
)

Definition at line 775 of file bitmap.c.

Referenced by debug_bitmap(), and verify_local_live_at_start().

static GTY ( (deletable(""))   )  [static]

Definition at line 45 of file bitmap.c.

References bitmap_free.


Variable Documentation

Definition at line 44 of file bitmap.c.

Referenced by bitmap_element_allocate(), bitmap_operation(), bitmap_release_memory(), and GTY().

int bitmap_obstack_init = FALSE [static]

Definition at line 32 of file bitmap.c.

Referenced by bitmap_element_allocate(), and bitmap_release_memory().


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