GCC Middle and Back End API Reference
ipa-reference.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bitmap ipa_reference_get_read_global (struct cgraph_node *fn)
 
bitmap ipa_reference_get_written_global (struct cgraph_node *fn)
 
void ipa_reference_cc_finalize (void)
 
int ipa_reference_var_uid (tree t)
 

Function Documentation

◆ ipa_reference_cc_finalize()

void ipa_reference_cc_finalize ( void )
Reset all state within ipa-reference.cc so that we can rerun the compiler
within the same process.  For use by toplev::finalize.   

References bitmap_obstack_release(), ipa_init_p, ipa_ref_opt_sum_summaries, ipa_reference_vars_map, NULL, optimization_summary_obstack, symbol_table::remove_varpool_removal_hook(), symtab, and varpool_node_hooks.

Referenced by toplev::finalize().

◆ ipa_reference_get_read_global()

bitmap ipa_reference_get_read_global ( struct cgraph_node * fn)
IPA handling of references.
   Copyright (C) 2004-2024 Free Software Foundation, Inc.
   Contributed by Kenneth Zadeck <zadeck@naturalbridge.com>

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
In ipa-reference.cc   
Return a bitmap indexed by ipa_reference_var_uid for the static variables
that are *not* read during the execution of the function FN.  Returns
NULL if no data is available.   

References AVAIL_AVAILABLE, AVAIL_INTERPOSABLE, AVAIL_NOT_AVAILABLE, current_function_decl, symtab_node::decl, ECF_LEAF, flags_from_decl_or_type(), cgraph_node::function_symbol(), get_reference_optimization_summary(), ggc_alloc(), no_module_statics, NULL, opt_for_fn, and ipa_reference_optimization_summary_d::statics_read.

Referenced by ref_maybe_used_by_call_p_1().

◆ ipa_reference_get_written_global()

bitmap ipa_reference_get_written_global ( struct cgraph_node * fn)
Return a bitmap indexed by ipa_reference_var_uid for the static variables
that are *not* written during the execution of the function FN.  Note
that variables written may or may not be read during the function
call.  Returns NULL if no data is available.   

References AVAIL_AVAILABLE, AVAIL_INTERPOSABLE, AVAIL_NOT_AVAILABLE, current_function_decl, symtab_node::decl, ECF_LEAF, flags_from_decl_or_type(), cgraph_node::function_symbol(), get_reference_optimization_summary(), ggc_alloc(), no_module_statics, NULL, opt_for_fn, and ipa_reference_optimization_summary_d::statics_written.

Referenced by call_may_clobber_ref_p_1().

◆ ipa_reference_var_uid()