26#include "plugin-api.h"
128struct GTY ((tag (
"SYMTAB_SYMBOL"),
129 chain_next (
"%h.next"), chain_prev (
"%h.previous")))
155 const char *name ()
const;
158 const char *dump_name ()
const;
161 const char *asm_name ()
const;
164 const char *dump_asm_name ()
const;
167 const char *get_visibility_string ()
const;
170 const char *get_symtab_type_string ()
const;
174 void register_symbol (
void);
180 void reset (
bool preserve_comdat_group =
false);
186 void dump_graphviz (FILE *f);
226 unsigned int lto_stmt_uid,
230 void remove_stmt_references (
gimple *stmt);
236 void clear_stmts_in_references (
void);
239 void remove_all_references (
void);
242 void remove_all_referring (
void);
245 void dump_references (FILE *file);
248 void dump_referring (FILE *);
253 return ref_list.references.length ();
267 bool semantically_equivalent_p (
symtab_node *target);
303 void remove_from_same_comdat_group (
void);
306 void add_to_same_comdat_group (
symtab_node *old_node);
309 void dissolve_same_comdat_group_list (
void);
313 bool used_from_object_file_p (
void);
330 bool resolve_alias (
symtab_node *target,
bool transparent =
false);
334 void fixup_same_cpp_alias_visibility (
symtab_node *target);
339 bool call_for_symbol_and_aliases (
bool (*callback) (
symtab_node *,
void *),
341 bool include_overwrite);
352 inline tree get_alias_target_tree ();
355 void set_section (
const char *
section);
363 void set_section_for_node (
const char *
section);
367 void set_section_for_node (
const symtab_node &other);
380 bool prevailing_p (
void);
388 void make_decl_local (
void);
397 unsigned int definition_alignment ();
400 bool can_increase_alignment_p ();
406 bool has_aliases_p (
void);
410 bool real_symbol_p (
void);
413 bool output_to_lto_symbol_table_p (
void);
418 bool needed_p (
void);
422 bool native_rtl_p ()
const;
425 bool referred_to_p (
bool include_self =
true);
442 &&
resolution != LDPR_PREVAILING_DEF_IRONLY_EXP)
443 || flag_incremental_link)
444 &&
resolution != LDPR_PREVAILING_DEF_IRONLY));
456 inline bool in_same_comdat_group_p (
symtab_node *target);
460 bool nonzero_address (
bool delete_null_pointer_checks);
463 bool nonzero_address ();
473 int equal_address_to (
symtab_node *s2,
bool memory_accessed =
false);
477 bool address_matters_p ();
482 bool address_can_be_compared_p (
void);
498 ||
decl->decl_with_vis.symtab_node->decl ==
decl);
499 return decl->decl_with_vis.symtab_node;
511 static void check_ifunc_callee_symtab_nodes (
void);
517 static inline void checking_verify_symtab_nodes (
void);
526 ENUM_BITFIELD (ld_plugin_symbol_resolution)
resolution : 8;
690 bool include_overwrite);
721#define FOR_EACH_ALIAS(NODE, ALIAS) \
722 for (unsigned ALIAS##_iter_ = 0; \
723 (NODE)->iterate_direct_aliases (ALIAS##_iter_, ALIAS); \
879#define DEFCIFCODE(code, type, string) CIF_ ## code,
883#include "cif-code.def"
921 unit_id (0), tp_first_run (0), thunk (
false),
922 used_as_abstract_origin (
false),
924 only_called_at_startup (
false), only_called_at_exit (
false),
925 tm_clone (
false), dispatcher_function (
false),
926 dispatcher_resolver_function (
false), is_target_clone (
false),
927 calls_comdat_local (
false),
929 merged_extern_inline (
false), parallelized_function (
false),
931 versionable (
false), can_change_signature (
false),
932 redefined_extern_inline (
false), tm_may_enter_irr (
false),
934 called_by_ifunc_resolver (
false), has_omp_variant_constructs (
false),
942 bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node =
NULL);
946 void record_stmt_references (gimple *stmt);
953 void set_call_stmt_including_clones (gimple *old_stmt, gcall *new_stmt,
954 bool update_speculative =
true);
962 struct symtab_node *ref =
NULL);
970 cgraph_node *function_or_virtual_thunk_symbol
972 struct symtab_node *ref =
NULL);
994 cgraph_node *create_clone (
tree decl, profile_count
count,
995 bool update_original,
996 vec<cgraph_edge *> redirect_callers,
997 bool call_duplication_hook,
998 cgraph_node *new_inlined_to,
999 ipa_param_adjustments *param_adjustments,
1000 const char *suffix);
1005 cgraph_node *create_virtual_clone (
const vec<cgraph_edge *> &redirect_callers,
1006 vec<ipa_replace_map *, va_gc> *tree_map,
1007 ipa_param_adjustments *param_adjustments,
1008 const char * suffix,
unsigned num_suffix);
1012 void remove_from_clone_tree ();
1031 cgraph_node *create_version_clone (
tree new_decl,
1032 vec<cgraph_edge *> redirect_callers,
1034 const char *suffix =
NULL);
1063 cgraph_node *create_version_clone_with_body
1064 (vec<cgraph_edge *> redirect_callers,
1065 vec<ipa_replace_map *, va_gc> *tree_map,
1066 ipa_param_adjustments *param_adjustments,
1068 tree target_attributes =
NULL_TREE,
bool version_decl =
true);
1072 cgraph_function_version_info *insert_new_function_version (
void);
1075 cgraph_function_version_info *function_version (
void);
1079 void analyze (
void);
1084 cgraph_node * create_thunk (
tree alias,
tree,
bool this_adjusting,
1085 HOST_WIDE_INT fixed_offset,
1086 HOST_WIDE_INT virtual_value,
1087 HOST_WIDE_INT indirect_offset,
1088 tree virtual_offset,
1093 inline cgraph_node *get_alias_target (
void);
1102 symtab_node *ref =
NULL);
1106 void expand_all_artificial_thunks ();
1109 void assemble_thunks_and_aliases (
void);
1116 void create_wrapper (cgraph_node *target);
1125 void dump (FILE *f);
1128 void dump_graphviz (FILE *f);
1135 bool get_untransformed_body ();
1142 void materialize_clone (
void);
1148 void release_body (
bool keep_arguments =
false);
1154 void make_local (
void);
1166 cgraph_edge *create_edge (cgraph_node *callee,
1167 gcall *call_stmt, profile_count
count,
1168 bool cloning_p =
false);
1173 cgraph_edge *create_indirect_edge (gcall *call_stmt,
int ecf_flags,
1174 profile_count
count,
1175 bool cloning_p =
false);
1180 void create_edge_including_clones (cgraph_node *callee,
1181 gimple *old_stmt, gcall *stmt,
1182 profile_count
count,
1187 cgraph_edge *get_edge (gimple *call_stmt);
1191 auto_vec<cgraph_edge *> collect_callers (
void);
1194 void remove_callers (
void);
1197 void remove_callees (
void);
1205 bool set_nothrow_flag (
bool nothrow);
1209 bool set_malloc_flag (
bool malloc_p);
1213 bool set_noreturn_flag (
bool noreturn_p);
1224 bool set_const_flag (
bool set_const,
bool looping);
1232 bool set_pure_flag (
bool pure,
bool looping);
1236 bool add_detected_attribute (
const char *attr);
1242 bool call_for_symbol_and_aliases (
bool (*callback) (cgraph_node *,
1244 void *data,
bool include_overwritable);
1250 bool call_for_symbol_thunks_and_aliases (
bool (*callback) (cgraph_node *node,
1253 bool include_overwritable,
1254 bool exclude_virtual_thunks =
false);
1258 inline void mark_force_output (
void);
1261 bool local_p (
void);
1267 bool can_be_local_p (
void);
1271 bool cannot_return_p (
void);
1277 bool only_called_directly_p (
void);
1280 void make_profile_local ();
1286 void apply_scale (profile_count num, profile_count den);
1292 void scale_profile_to (profile_count ipa_count);
1297 inline bool only_called_directly_or_aliased_p (
void);
1315 bool will_be_removed_from_program_if_no_direct_calls_p
1316 (
bool will_inline =
false);
1321 bool can_remove_if_no_direct_calls_and_refs_p (
void);
1327 bool can_remove_if_no_direct_calls_p (
bool will_inline =
false);
1334 inline bool has_gimple_body_p (
void);
1337 bool former_thunk_p (
void);
1341 bool check_calls_comdat_local_p ();
1347 static void dump_cgraph (FILE *f);
1368 static void delete_function_version_by_decl (
tree decl);
1383 static void add_new_function (
tree fndecl,
bool lowered);
1396 static void finalize_function (
tree,
bool);
1426 static inline void checking_verify_cgraph_nodes (
void);
1564 void *
data,
bool include_overwritable);
1636 HOST_WIDE_INT
offset = 0);
1665 bool consider_placement_new =
true,
1666 bool consider_bases =
true);
1687 void dump (FILE *f,
bool newline =
true)
const;
1746class GTY((chain_next (
"%h.next_caller"), chain_prev (
"%h.prev_caller"),
1763 bool update_derived_edges =
true);
1849 if (e->next_callee && e->next_callee->speculative
1850 && e->next_callee->call_stmt == e->call_stmt
1851 && e->next_callee->lto_stmt_uid == e->lto_stmt_uid)
1852 return e->next_callee;
1864 true; e2 = e2->next_callee)
1885 for (
unsigned int i = 0;
caller->iterate_reference (
i, ref);
i++)
1932 *killed_ssas =
nullptr);
1938 bool update_original);
1941 bool verify_count ();
1946 bool cannot_lead_to_return_p (
void);
1949 bool recursive_p (
void);
1952 bool maybe_hot_p ();
1966 inline int get_summary_id ()
1968 return m_summary_id;
1973 static unsigned int rebuild_edges (
void);
1977 static void rebuild_references (
void);
1981 bool possibly_call_in_translation_unit_p (
void);
2099#define CGRAPH_FREQ_BASE 1000
2100#define CGRAPH_FREQ_MAX 100000
2114 void dump (FILE *f);
2162 bool include_overwritable);
2237 bool include_overwritable);
2395 void initialize (
void);
2401 void finalize_compilation_unit (
void);
2408 void process_same_body_aliases (
void);
2411 void compile (
void);
2416 void process_new_functions (
void);
2429 bool remove_unreachable_nodes (FILE *file);
2435 void remove_unreferenced_decls (
void);
2447 bool output_variables (
void);
2451 void output_weakrefs (
void);
2485 inline cgraph_node *first_defined_function (
void);
2497 cgraph_node *first_function_with_gimple_body (
void);
2575 void symtab_initialize_asm_name_hash (
void);
2581 void dump (FILE *f);
2584 void dump_graphviz (FILE *f);
2597 return node->m_summary_id;
2603 if (!edge_released_summary_ids.is_empty ())
2604 edge->m_summary_id = edge_released_summary_ids.pop ();
2606 edge->m_summary_id = edges_max_summary_id++;
2608 return edge->m_summary_id;
2681 bool indir_unknown_callee,
bool cloning_p);
2762 unsigned long number);
2764 unsigned long number);
2767 bool filter_suffix =
false);
2770 ipa_param_adjustments *,
2774 const cgraph_node *clone,
2775 const char *suffix);
2830 source = cn->inlined_to;
2835 target = cn->inlined_to;
2870 for (; node1; node1 = node1->
next)
2926 return (resolution == LDPR_PREVAILING_DEF
2927 || resolution == LDPR_PREEMPTED_REG
2928 || resolution == LDPR_RESOLVED_EXEC
2929 || resolution == LDPR_RESOLVED_DYN);
2968 if (
node->order == -1)
3001 node->next->previous =
node->previous;
3013 if (
node->m_summary_id != -1)
3026#define FOR_EACH_SYMBOL(node) \
3027 for ((node) = symtab->first_symbol (); (node); (node) = (node)->next)
3036 if (
node->definition)
3043#define FOR_EACH_DEFINED_SYMBOL(node) \
3044 for ((node) = symtab->first_defined_symbol (); (node); \
3045 (node) = node->next_defined_symbol ())
3063 for (; node1; node1 = node1->
next)
3069#define FOR_EACH_VARIABLE(node) \
3070 for ((node) = symtab->first_variable (); \
3072 (node) = symtab->next_variable ((node)))
3093 for (; node1; node1 = node1->
next)
3103#define FOR_EACH_STATIC_INITIALIZER(node) \
3104 for ((node) = symtab->first_static_initializer (); (node); \
3105 (node) = symtab->next_static_initializer (node))
3126 for (; node1; node1 = node1->
next)
3135#define FOR_EACH_DEFINED_VARIABLE(node) \
3136 for ((node) = symtab->first_defined_variable (); (node); \
3137 (node) = symtab->next_defined_variable (node))
3158 for (; node1; node1 = node1->
next)
3168#define FOR_EACH_DEFINED_FUNCTION(node) \
3169 for ((node) = symtab->first_defined_function (); (node); \
3170 (node) = symtab->next_defined_function ((node)))
3188 for (; node1; node1 = node1->
next)
3213 for (; node1; node1 = node1->
next)
3223#define FOR_EACH_FUNCTION(node) \
3224 for ((node) = symtab->first_function (); (node); \
3225 (node) = symtab->next_function ((node)))
3228#define FOR_EACH_FUNCTION_REMOVABLE(node) \
3229 cgraph_node *next; \
3230 for ((node) = symtab->first_function (), \
3231 next = (node) ? symtab->next_function ((node)) : NULL; (node); \
3232 (node) = next, next = (node) ? symtab->next_function ((node)) : NULL)
3247#define FOR_EACH_FUNCTION_WITH_GIMPLE_BODY(node) \
3248 for ((node) = symtab->first_function_with_gimple_body (); (node); \
3249 (node) = symtab->next_function_with_gimple_body (node))
3438 n->callers->prev_caller =
this;
3451 return caller->inlined_to->decl == c->decl;
3453 return caller->decl == c->decl;
3488 return count.to_cgraph_frequency (
caller->inlined_to
3489 ?
caller->inlined_to->count
3559 bool include_overwritable)
3561 if (include_overwritable
3564 if (callback (
this,
data))
3580 bool include_overwritable)
3582 if (include_overwritable
3585 if (callback (
this,
data))
3601 bool include_overwritable)
3603 if (include_overwritable
3606 if (callback (
this,
data))
3625 return referred->address_can_be_compared_p ();
3634 *
this = e->indirect_info->context;
3735class symbol_table_test
3739 symbol_table_test ();
3742 ~symbol_table_test ();
gcov_type apply_scale(gcov_type freq, gcov_type scale)
Definition basic-block.h:573
void cgraph_update_edges_for_call_stmt(gimple *old_stmt, tree old_decl, gimple *new_stmt)
Definition cgraph.cc:2061
bool cgraph_function_possibly_inlined_p(tree decl)
Definition cgraph.cc:2730
symbol_table * symtab
Definition cgraph.cc:82
cgraph_inline_failed_type_t cgraph_inline_failed_type(cgraph_inline_failed_t reason)
Definition cgraph.cc:2429
cgraph_indirect_call_info * cgraph_allocate_init_indirect_info(void)
Definition cgraph.cc:1167
const char *const cgraph_availability_names[]
Definition cgraph.cc:2445
void release_function_body(tree decl)
Definition cgraph.cc:2165
symbol_table * saved_symtab
Definition cgraph.cc:4789
void cgraph_cc_finalize(void)
Definition cgraph.cc:4638
const char * cgraph_inline_failed_string(cgraph_inline_failed_t reason)
Definition cgraph.cc:2411
symtab_state
Definition cgraph.h:2329
@ LTO_STREAMING
Definition cgraph.h:2335
@ IPA
Definition cgraph.h:2337
@ PARSING
Definition cgraph.h:2331
@ EXPANSION
Definition cgraph.h:2344
@ IPA_SSA_AFTER_INLINING
Definition cgraph.h:2342
@ FINISHED
Definition cgraph.h:2346
@ IPA_SSA
Definition cgraph.h:2339
@ CONSTRUCTION
Definition cgraph.h:2333
const char * cgraph_inline_failed_string(cgraph_inline_failed_t)
Definition cgraph.cc:2411
void(* cgraph_edge_hook)(cgraph_edge *, void *)
Definition cgraph.h:2310
const char * xstrdup_for_dump(const char *transient_str)
Definition cgraph.h:3709
void debuginfo_early_stop(void)
Definition cgraphunit.cc:2547
void debuginfo_start(void)
Definition cgraphunit.cc:2523
void(* cgraph_node_hook)(cgraph_node *, void *)
Definition cgraph.h:2311
tree ctor_for_folding(tree)
Definition varpool.cc:393
struct varpool_node_set_def * varpool_node_set
Definition cgraph.h:1574
cgraph_inline_failed_type_t cgraph_inline_failed_type(cgraph_inline_failed_t)
Definition cgraph.cc:2429
bool ipa_discover_variable_flags(void)
Definition ipa.cc:785
void symtab_thunks_cc_finalize(void)
Definition symtab-thunks.cc:663
void release_function_body(tree)
Definition cgraph.cc:2165
void(* cgraph_2node_hook)(cgraph_node *, cgraph_node *, void *)
Definition cgraph.h:2314
int compute_call_stmt_bb_frequency(tree, basic_block bb)
Definition cgraphbuild.cc:203
void debuginfo_early_init(void)
Definition cgraphunit.cc:2483
cgraph_inline_failed_type_t
Definition cgraph.h:886
@ CIF_FINAL_NORMAL
Definition cgraph.h:887
@ CIF_FINAL_ERROR
Definition cgraph.h:888
void set_new_clone_decl_and_node_flags(cgraph_node *new_node)
Definition cgraphclones.cc:165
bool speculation_useful_p(struct cgraph_edge *e, bool anticipate_inlining)
Definition ipa-inline.cc:1959
bool cgraph_function_possibly_inlined_p(tree)
Definition cgraph.cc:2730
symbol_table * symtab
Definition cgraph.cc:82
void debuginfo_stop(void)
Definition cgraphunit.cc:2531
void record_references_in_initializer(tree, bool)
Definition cgraphbuild.cc:390
cgraph_node_set_def * cgraph_node_set
Definition cgraph.h:1573
basic_block init_lowered_empty_function(tree, bool, profile_count)
Definition cgraphunit.cc:1732
tree clone_function_name_numbered(const char *name, const char *suffix)
Definition cgraphclones.cc:508
void tree_function_versioning(tree, tree, vec< ipa_replace_map *, va_gc > *, ipa_param_adjustments *, bool, bitmap, basic_block)
Definition tree-inline.cc:6329
hash_table< tree_descriptor_hasher > * constant_pool_htab(void)
Definition varasm.cc:3359
void(* cgraph_2edge_hook)(cgraph_edge *, cgraph_edge *, void *)
Definition cgraph.h:2313
void dump_callgraph_transformation(const cgraph_node *original, const cgraph_node *clone, const char *suffix)
Definition cgraphclones.cc:322
bool decl_is_tm_clone(const_tree fndecl)
Definition cgraph.h:3493
void cgraphunit_cc_finalize(void)
Definition cgraphunit.cc:2626
tree clone_function_name(const char *name, const char *suffix, unsigned long number)
Definition cgraphclones.cc:539
cgraph_indirect_call_info * cgraph_allocate_init_indirect_info(void)
Definition cgraph.cc:1167
void cgraph_build_static_cdtor(char which, tree body, int priority)
Definition ipa.cc:938
availability
Definition cgraph.h:74
@ AVAIL_UNSET
Definition cgraph.h:76
@ AVAIL_LOCAL
Definition cgraph.h:92
@ AVAIL_NOT_AVAILABLE
Definition cgraph.h:78
@ AVAIL_INTERPOSABLE
Definition cgraph.h:84
@ AVAIL_AVAILABLE
Definition cgraph.h:87
void debuginfo_early_start(void)
Definition cgraphunit.cc:2539
int tp_first_run_node_cmp(const void *pa, const void *pb)
Definition cgraphunit.cc:1949
void debuginfo_fini(void)
Definition cgraphunit.cc:2512
symbol_partitioning_class
Definition cgraph.h:97
@ SYMBOL_EXTERNAL
Definition cgraph.h:100
@ SYMBOL_PARTITION
Definition cgraph.h:102
@ SYMBOL_DUPLICATE
Definition cgraph.h:105
tree thunk_adjust(gimple_stmt_iterator *, tree, bool, HOST_WIDE_INT, tree, HOST_WIDE_INT)
Definition symtab-thunks.cc:190
void initialize_inline_failed(struct cgraph_edge *)
Definition ipa-inline-analysis.cc:104
tree clone_identifier(tree decl, const char *suffix, bool filter_suffix=false)
Definition cgraphclones.cc:600
bool decl_in_symtab_p(const_tree decl)
Definition cgraph.h:2812
ipa_opt_pass_d * ipa_opt_pass
Definition cgraph.h:38
void cgraph_update_edges_for_call_stmt(gimple *, tree, gimple *)
Definition cgraph.cc:2061
function_summary< thunk_info * > thunk_summary
Definition cgraph.h:2361
toplevel_type
Definition cgraph.h:45
@ TOPLEVEL_MAX
Definition cgraph.h:51
@ TOPLEVEL_ASM
Definition cgraph.h:47
@ TOPLEVEL_BASE
Definition cgraph.h:46
@ SYMTAB_FUNCTION
Definition cgraph.h:49
@ SYMTAB_SYMBOL
Definition cgraph.h:48
@ SYMTAB_VARIABLE
Definition cgraph.h:50
const char *const ld_plugin_symbol_resolution_names[]
Definition symtab.cc:45
const char *const tls_model_names[]
Definition varpool.cc:40
cgraph_simd_clone_arg_type
Definition cgraph.h:747
@ SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP
Definition cgraph.h:751
@ SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP
Definition cgraph.h:756
@ SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP
Definition cgraph.h:760
@ SIMD_CLONE_ARG_TYPE_VECTOR
Definition cgraph.h:748
@ SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP
Definition cgraph.h:758
@ SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP
Definition cgraph.h:757
@ SIMD_CLONE_ARG_TYPE_LINEAR_VARIABLE_STEP
Definition cgraph.h:752
@ SIMD_CLONE_ARG_TYPE_MASK
Definition cgraph.h:761
@ SIMD_CLONE_ARG_TYPE_UNIFORM
Definition cgraph.h:749
@ SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP
Definition cgraph.h:755
@ SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP
Definition cgraph.h:759
void(* varpool_node_hook)(varpool_node *, void *)
Definition cgraph.h:2312
function_summary< clone_info * > clone_summary
Definition cgraph.h:2365
vec< cgraph_node * > cgraph_new_nodes
Definition cgraphunit.cc:217
void cgraph_cc_finalize(void)
Definition cgraph.cc:4638
cgraph_inline_failed_t
Definition cgraph.h:880
void debuginfo_init(void)
Definition cgraphunit.cc:2499
bool resolution_used_from_other_file_p(enum ld_plugin_symbol_resolution resolution)
Definition cgraph.h:2921
ipa_ref * speculative_call_target_ref()
Definition cgraph.h:1877
void purge_callback_edges()
Definition cgraph.cc:1434
cgraph_edge * speculative_call_indirect_edge()
Definition cgraph.h:1855
unsigned int indirect_inlining_edge
Definition cgraph.h:2006
void remove_caller(void)
Definition cgraph.cc:1227
profile_count count
Definition cgraph.h:1984
cgraph_node * callee
Definition cgraph.h:1986
void dump_edge_flags(FILE *f)
Definition cgraph.cc:2451
static cgraph_edge * make_direct(cgraph_edge *edge, cgraph_node *callee)
Definition cgraph.cc:1604
bool binds_to_current_def_p()
Definition cgraph.h:3470
unsigned int callback
Definition cgraph.h:2040
cgraph_edge * prev_caller
Definition cgraph.h:1987
cgraph_edge * next_caller
Definition cgraph.h:1988
unsigned int can_throw_external
Definition cgraph.h:2014
static cgraph_edge * resolve_speculation(cgraph_edge *edge, tree callee_decl=NULL)
Definition cgraph.cc:1517
int m_summary_id
Definition cgraph.h:2073
int m_uid
Definition cgraph.h:2070
void redirect_callee(cgraph_node *n)
Definition cgraph.cc:1678
unsigned in_polymorphic_cdtor
Definition cgraph.h:2052
cgraph_edge * next_speculative_call_target()
Definition cgraph.h:1841
sreal sreal_frequency()
Definition cgraph.cc:4686
unsigned int speculative_id
Definition cgraph.h:2004
cgraph_indirect_call_info * indirect_info
Definition cgraph.h:1994
static unsigned int rebuild_edges(void)
Definition cgraphbuild.cc:406
cgraph_edge * make_speculative(cgraph_node *n2, profile_count direct_count, unsigned int speculative_id=0)
Definition cgraph.cc:1301
static void rebuild_references(void)
Definition cgraphbuild.cc:451
friend class symbol_table
Definition cgraph.h:1748
unsigned int call_stmt_cannot_inline_p
Definition cgraph.h:2012
int get_summary_id()
Definition cgraph.h:1963
int num_speculative_call_targets_p(void)
Definition cgraph.cc:4751
void set_callee(cgraph_node *n)
Definition cgraph.h:3431
bool maybe_hot_p()
Definition cgraph.cc:3422
cgraph_edge * get_callback_carrying_edge()
Definition cgraph.cc:1381
unsigned int lto_stmt_uid
Definition cgraph.h:2001
void DEBUG_FUNCTION debug(void)
Definition cgraph.cc:2479
bool possibly_call_in_translation_unit_p(void)
Definition cgraph.cc:4717
cgraph_edge * speculative_call_for_target(cgraph_node *)
Definition cgraph.cc:1587
cgraph_node * caller
Definition cgraph.h:1985
enum cgraph_inline_failed_t inline_failed
Definition cgraph.h:1998
unsigned int speculative
Definition cgraph.h:2032
void remove_callee(void)
Definition cgraph.h:3456
static void remove(cgraph_edge *edge)
Definition cgraph.cc:1263
cgraph_edge * first_callback_edge()
Definition cgraph.cc:1399
static gimple * redirect_call_stmt_to_callee(cgraph_edge *e, hash_set< tree > *killed_ssas=nullptr)
Definition cgraph.cc:1737
bool verify_count()
Definition cgraph.cc:3667
unsigned int indirect_unknown_callee
Definition cgraph.h:2009
int get_uid()
Definition cgraph.h:1957
bool cannot_lead_to_return_p(void)
Definition cgraph.cc:3335
unsigned int callback_id
Definition cgraph.h:2049
cgraph_edge * clone(cgraph_node *n, gcall *call_stmt, unsigned stmt_uid, profile_count num, profile_count den, bool update_original)
Definition cgraphclones.cc:98
cgraph_edge * next_callback_edge()
Definition cgraph.cc:1417
cgraph_edge * make_callback(cgraph_node *n2, unsigned int callback_hash)
Definition cgraph.cc:1349
sreal combined_sreal_frequency()
Definition cgraph.cc:4697
bool recursive_p(void)
Definition cgraph.h:3444
int frequency()
Definition cgraph.h:3483
unsigned int has_callback
Definition cgraph.h:2045
cgraph_edge * first_speculative_call_target()
Definition cgraph.cc:1453
cgraph_edge * next_callee
Definition cgraph.h:1990
void * aux
Definition cgraph.h:1995
static cgraph_edge * set_call_stmt(cgraph_edge *e, gcall *new_stmt, bool update_derived_edges=true)
Definition cgraph.cc:961
gcall * call_stmt
Definition cgraph.h:1991
bool verify_corresponds_to_fndecl(tree decl)
Definition cgraph.cc:3701
friend struct cgraph_node
Definition cgraph.h:1747
cgraph_edge * prev_callee
Definition cgraph.h:1989
void redirect_callee_duplicating_thunks(cgraph_node *n)
Definition cgraphclones.cc:278
HOST_WIDE_INT otr_token
Definition cgraph.h:1712
tree otr_type
Definition cgraph.h:1714
int ecf_flags
Definition cgraph.h:1718
unsigned agg_contents
Definition cgraph.h:1728
unsigned polymorphic
Definition cgraph.h:1725
unsigned member_ptr
Definition cgraph.h:1730
unsigned guaranteed_unmodified
Definition cgraph.h:1738
unsigned vptr_changed
Definition cgraph.h:1741
HOST_WIDE_INT offset
Definition cgraph.h:1708
int param_index
Definition cgraph.h:1716
unsigned by_ref
Definition cgraph.h:1733
ipa_polymorphic_call_context context
Definition cgraph.h:1710
unsigned num_speculative_call_targets
Definition cgraph.h:1721
Definition lto-streamer.h:756
Definition genoutput.cc:150
Definition symbol-summary.h:163
Definition hash-table.h:375
Definition tree-pass.h:142
Definition ipa-param-manipulation.h:211
void dump(FILE *f, bool newline=true) const
Definition ipa-polymorphic-call.cc:616
bool combine_speculation_with(tree, HOST_WIDE_INT, bool, tree)
Definition ipa-polymorphic-call.cc:1914
void offset_by(HOST_WIDE_INT)
Definition cgraph.h:3670
bool speculation_consistent_p(tree, HOST_WIDE_INT, bool, tree) const
Definition ipa-polymorphic-call.cc:1856
tree outer_type
Definition cgraph.h:1611
unsigned invalid
Definition cgraph.h:1622
unsigned speculative_maybe_derived_type
Definition cgraph.h:1619
HOST_WIDE_INT speculative_offset
Definition cgraph.h:1610
void DEBUG_FUNCTION debug() const
Definition ipa-polymorphic-call.cc:655
unsigned dynamic
Definition cgraph.h:1624
void clear_speculation()
Definition cgraph.h:3647
void clear_outer_type(tree otr_type=NULL)
Definition cgraph.h:3658
unsigned maybe_in_construction
Definition cgraph.h:1614
bool useless_p() const
Definition cgraph.h:3681
ipa_polymorphic_call_context()
Definition cgraph.h:3637
bool meet_with(ipa_polymorphic_call_context, tree otr_type=NULL)
Definition ipa-polymorphic-call.cc:2427
bool set_by_invariant(tree, tree, HOST_WIDE_INT)
Definition ipa-polymorphic-call.cc:760
tree speculative_outer_type
Definition cgraph.h:1612
void make_speculative(tree otr_type=NULL)
Definition ipa-polymorphic-call.cc:2337
bool equal_to(const ipa_polymorphic_call_context &x) const
Definition ipa-polymorphic-call.cc:2375
HOST_WIDE_INT offset
Definition cgraph.h:1609
void possible_dynamic_type_change(bool, tree otr_type=NULL)
Definition ipa-polymorphic-call.cc:2362
bool get_dynamic_type(tree, tree, tree, gimple *, unsigned *)
Definition ipa-polymorphic-call.cc:1566
void set_by_decl(tree, HOST_WIDE_INT)
Definition ipa-polymorphic-call.cc:731
void stream_in(class lto_input_block *, class data_in *data_in)
Definition ipa-polymorphic-call.cc:693
void stream_out(struct output_block *) const
Definition ipa-polymorphic-call.cc:663
bool restrict_to_inner_class(tree otr_type, bool consider_placement_new=true, bool consider_bases=true)
Definition ipa-polymorphic-call.cc:129
bool meet_speculation_with(tree, HOST_WIDE_INT, bool, tree)
Definition ipa-polymorphic-call.cc:2011
unsigned maybe_derived_type
Definition cgraph.h:1616
bool combine_with(ipa_polymorphic_call_context, tree otr_type=NULL)
Definition ipa-polymorphic-call.cc:2107
varpool_node_hook_list * add_varpool_removal_hook(varpool_node_hook hook, void *data)
Definition varpool.cc:53
varpool_node * next_defined_variable(varpool_node *node)
Definition cgraph.h:3120
int order
Definition cgraph.h:2636
varpool_node * first_variable(void)
Definition cgraph.h:3046
cgraph_node * first_defined_function(void)
Definition cgraph.h:3138
void change_decl_assembler_name(tree decl, tree name)
Definition symtab.cc:274
varpool_node * next_static_initializer(varpool_node *node)
Definition cgraph.h:3087
hash_table< asmname_hasher > * assembler_name_hash
Definition cgraph.h:2654
void free_edge(cgraph_edge *e)
Definition cgraph.cc:1249
vec< int > edge_released_summary_ids
Definition cgraph.h:2624
int assign_summary_id(cgraph_edge *edge)
Definition cgraph.h:2598
cgraph_2edge_hook_list * add_edge_duplication_hook(cgraph_2edge_hook hook, void *data)
Definition cgraph.cc:574
static char symbol_suffix_separator()
Definition symtab.cc:2578
void remove_cgraph_duplication_hook(cgraph_2node_hook_list *entry)
Definition cgraph.cc:632
void DEBUG_FUNCTION debug(void)
Definition symtab.cc:1068
varpool_node_hook_list * m_first_varpool_insertion_hook
Definition cgraph.h:2708
static bool decl_assembler_name_equal(tree decl, const_tree asmname)
Definition symtab.cc:142
symbol_table()
Definition cgraph.h:2374
cgraph_edge * create_edge(cgraph_node *caller, cgraph_node *callee, gcall *call_stmt, profile_count count, bool indir_unknown_callee, bool cloning_p)
Definition cgraph.cc:1066
symtab_node * first_defined_symbol(void)
Definition cgraph.h:3028
bool global_info_ready
Definition cgraph.h:2642
void clear_asm_symbols(void)
Definition cgraph.h:2419
bool function_flags_ready
Definition cgraph.h:2646
thunk_summary * m_thunks
Definition cgraph.h:2666
friend struct cgraph_edge
Definition cgraph.h:2372
bool output_variables(void)
Definition varpool.cc:729
void remove_varpool_removal_hook(varpool_node_hook_list *entry)
Definition varpool.cc:70
cgraph_edge_hook_list * m_first_edge_removal_hook
Definition cgraph.h:2698
asm_node * asmnodes
Definition cgraph.h:2630
void call_cgraph_duplication_hooks(cgraph_node *node, cgraph_node *node2)
Definition cgraph.cc:644
friend struct symtab_node
Definition cgraph.h:2370
int edges_count
Definition cgraph.h:2616
void compile(void)
Definition cgraphunit.cc:2336
static bool assembler_names_equal_p(const char *name1, const char *name2)
Definition symtab.cc:104
FILE * ipa_clones_dump_file
Definition cgraph.h:2661
cgraph_node * next_defined_function(cgraph_node *node)
Definition cgraph.h:3152
void remove_varpool_insertion_hook(varpool_node_hook_list *entry)
Definition varpool.cc:111
void call_edge_removal_hooks(cgraph_edge *e)
Definition cgraph.cc:479
asm_node * first_asm_symbol(void)
Definition cgraph.h:2455
void release_symbol(cgraph_node *node)
Definition cgraph.h:3007
cgraph_2node_hook_list * m_first_cgraph_duplicated_hook
Definition cgraph.h:2704
cgraph_node_hook_list * add_cgraph_insertion_hook(cgraph_node_hook hook, void *data)
Definition cgraph.cc:545
cgraph_node * next_function(cgraph_node *node)
Definition cgraph.h:3182
hash_table< section_name_hasher > * section_hash
Definition cgraph.h:2651
void output_weakrefs(void)
Definition cgraphunit.cc:2306
bool remove_unreachable_nodes(FILE *file)
Definition ipa.cc:310
void remove_cgraph_insertion_hook(cgraph_node_hook_list *entry)
Definition cgraph.cc:562
void unregister(symtab_node *node)
Definition cgraph.h:2990
cgraph_2node_hook_list * add_cgraph_duplication_hook(cgraph_2node_hook hook, void *data)
Definition cgraph.cc:615
void process_same_body_aliases(void)
Definition cgraphunit.cc:719
varpool_node_hook_list * m_first_varpool_removal_hook
Definition cgraph.h:2710
cgraph_node_hook_list * add_cgraph_removal_hook(cgraph_node_hook hook, void *data)
Definition cgraph.cc:491
clone_summary * m_clones
Definition cgraph.h:2669
hash_set< const cgraph_node * > cloned_nodes
Definition cgraph.h:2663
void initialize(void)
Definition cgraph.cc:430
cgraph_node * next_function_with_gimple_body(cgraph_node *node)
Definition cgraph.h:3207
int cgraph_max_summary_id
Definition cgraph.h:2614
void call_cgraph_insertion_hooks(cgraph_node *node)
Definition cgraph.cc:532
FILE * dump_file
Definition cgraph.h:2659
static hashval_t decl_assembler_name_hash(const_tree asmname)
Definition symtab.cc:82
varpool_node_hook_list * add_varpool_insertion_hook(varpool_node_hook hook, void *data)
Definition varpool.cc:94
void finalize_compilation_unit(void)
Definition cgraphunit.cc:2555
void process_new_functions(void)
Definition cgraphunit.cc:300
void symtab_initialize_asm_name_hash(void)
Definition symtab.cc:260
friend struct asmname_hasher
Definition cgraph.h:2695
int cgraph_max_uid
Definition cgraph.h:2613
void dump_graphviz(FILE *f)
Definition symtab.cc:1058
bool cpp_implicit_aliases_done
Definition cgraph.h:2648
cgraph_node_hook_list * m_first_cgraph_removal_hook
Definition cgraph.h:2700
asm_node * finalize_toplevel_asm(tree asm_str)
Definition cgraph.h:2972
cgraph_node * create_empty(void)
Definition cgraph.cc:442
symtab_node * first_symbol(void)
Definition cgraph.h:3017
int cgraph_count
Definition cgraph.h:2612
cgraph_node * first_function(void)
Definition cgraph.h:3171
void call_cgraph_removal_hooks(cgraph_node *node)
Definition cgraph.cc:520
int max_unit
Definition cgraph.h:2639
vec< int > cgraph_released_summary_ids
Definition cgraph.h:2621
enum symtab_state state
Definition cgraph.h:2644
void remove_edge_removal_hook(cgraph_edge_hook_list *entry)
Definition cgraph.cc:467
cgraph_edge_hook_list * add_edge_removal_hook(cgraph_edge_hook hook, void *data)
Definition cgraph.cc:450
varpool_node * first_static_initializer(void)
Definition cgraph.h:3073
int assign_summary_id(cgraph_node *node)
Definition cgraph.h:2587
cgraph_node_hook_list * m_first_cgraph_insertion_hook
Definition cgraph.h:2706
symtab_node * nodes
Definition cgraph.h:2629
void dump(FILE *f)
Definition symtab.cc:1049
void register_symbol(symtab_node *node)
Definition cgraph.h:2954
void call_varpool_insertion_hooks(varpool_node *node)
Definition varpool.cc:123
varpool_node * first_defined_variable(void)
Definition cgraph.h:3106
int edges_max_uid
Definition cgraph.h:2617
void remove_cgraph_removal_hook(cgraph_node_hook_list *entry)
Definition cgraph.cc:508
void symtab_prevail_in_asm_name_hash(symtab_node *node)
Definition symtab.cc:251
cgraph_2edge_hook_list * m_first_edge_duplicated_hook
Definition cgraph.h:2702
cgraph_node * first_function_with_gimple_body(void)
Definition cgraph.h:3193
void insert_to_assembler_name_hash(symtab_node *node, bool with_clones)
Definition symtab.cc:162
void call_edge_duplication_hooks(cgraph_edge *cs1, cgraph_edge *cs2)
Definition cgraph.cc:603
void remove_edge_duplication_hook(cgraph_2edge_hook_list *entry)
Definition cgraph.cc:591
varpool_node * next_variable(varpool_node *node)
Definition cgraph.h:3057
void unlink_from_assembler_name_hash(symtab_node *node, bool with_clones)
Definition symtab.cc:203
friend struct cgraph_node
Definition cgraph.h:2371
void call_varpool_removal_hooks(varpool_node *node)
Definition varpool.cc:82
asm_node * asm_last_node
Definition cgraph.h:2631
hash_map< symtab_node *, symbol_priority_map > * init_priority_hash
Definition cgraph.h:2657
int edges_max_summary_id
Definition cgraph.h:2618
void remove_unreferenced_decls(void)
Definition varpool.cc:625
bool debug
Definition collect-utils.cc:34
struct basic_block_def * basic_block
Definition coretypes.h:372
struct rtx_def * rtx
Definition coretypes.h:57
optimize_size_level
Definition coretypes.h:477
@ OPTIMIZE_SIZE_BALANCED
Definition coretypes.h:481
@ OPTIMIZE_SIZE_NO
Definition coretypes.h:479
@ OPTIMIZE_SIZE_MAX
Definition coretypes.h:483
class edge_def * edge
Definition coretypes.h:369
tls_model
Definition coretypes.h:212
@ TLS_MODEL_NONE
Definition coretypes.h:213
node_frequency
Definition coretypes.h:271
@ NODE_FREQUENCY_NORMAL
Definition coretypes.h:279
@ NODE_FREQUENCY_UNLIKELY_EXECUTED
Definition coretypes.h:274
const union tree_node * const_tree
Definition coretypes.h:98
#define GTY(x)
Definition coretypes.h:41
class bitmap_head * bitmap
Definition coretypes.h:51
union tree_node * tree
Definition coretypes.h:97
static unsigned int count[debug_counter_number_of_counters]
Definition dbgcnt.cc:50
void change_decl_assembler_name(tree, tree)
void ggc_free(void *)
Definition genmatch.cc:52
T * ggc_cleared_alloc(ALONE_CXX_MEM_STAT_INFO)
Definition ggc.h:217
#define ggc_strdup(S)
Definition ggc.h:281
bool set_comdat_group(symtab_node *symbol, void *head_p)
Definition ipa-comdats.cc:208
ipa_ref_use
Definition ipa-ref.h:31
@ IPA_REF_ALIAS
Definition ipa-ref.h:35
@ IPA_REF_ADDR
Definition ipa-ref.h:34
static int frequency
Definition ira-costs.cc:107
bool is_a(U *p)
Definition is-a.h:230
T dyn_cast(U *p)
Definition is-a.h:280
Definition custom-sarif-properties/state-graphs.h:33
const json::string_property function
Definition dump-context.h:31
void dump(const T &obj)
Definition dump.h:70
section * get_section(const char *, unsigned int, tree, bool not_existing=false)
Definition varasm.cc:291
poly_int< NUM_POLY_INT_COEFFS, unsigned HOST_WIDE_INT > poly_uint64
Definition poly-int-types.h:25
i
Definition poly-int.h:776
profile_quality
Definition profile-count.h:30
#define REG_BR_PROB_BASE
Definition profile-count.h:75
rtx find_replacement(rtx *loc)
Definition reload.cc:6383
tree asm_str
Definition cgraph.h:2246
asm_node * next
Definition cgraph.h:2244
asm_node(tree asm_str)
Definition cgraph.h:2240
static bool equal(symtab_node *n, const_tree t)
Definition cgraph.h:2725
static hashval_t hash(symtab_node *n)
Definition cgraph.h:2718
const_tree compare_type
Definition cgraph.h:2351
static bool equal(cgraph_edge *, gimple *)
Definition cgraph.cc:851
static hashval_t hash(cgraph_edge *)
Definition cgraph.cc:831
gimple * compare_type
Definition cgraph.h:895
tree assembler_name
Definition cgraph.h:874
cgraph_node * this_node
Definition cgraph.h:853
cgraph_function_version_info * next
Definition cgraph.h:861
cgraph_function_version_info * prev
Definition cgraph.h:857
tree dispatcher_resolver
Definition cgraph.h:871
hash_map< cgraph_node *, size_t > * map
Definition cgraph.h:1569
vec< cgraph_node * > nodes
Definition cgraph.h:1570
cgraph_node_set set
Definition cgraph.h:1589
unsigned index
Definition cgraph.h:1590
static cgraph_node * get(const_tree decl)
Definition cgraph.h:1384
cgraph_edge * indirect_calls
Definition cgraph.h:1441
void scale_profile_to(profile_count ipa_count)
Definition cgraph.cc:287
unsigned only_called_at_startup
Definition cgraph.h:1495
cgraph_node()
Definition cgraph.h:910
void DEBUG_FUNCTION debug(void)
Definition cgraph.cc:2710
void create_wrapper(cgraph_node *target)
Definition cgraphunit.cc:2641
struct cgraph_rtl_info * rtl
Definition cgraph.h:1467
bool can_remove_if_no_direct_calls_p(bool will_inline=false)
Definition cgraph.cc:3439
static void dump_cgraph(FILE *f)
Definition cgraph.cc:2718
enum node_frequency frequency
Definition cgraph.h:1493
void make_local(void)
Definition cgraph.cc:2894
enum availability get_availability(symtab_node *ref=NULL)
Definition cgraph.cc:2740
unsigned split_part
Definition cgraph.h:1527
unsigned nonfreeing_fn
Definition cgraph.h:1519
bool former_thunk_p(void)
Definition cgraph.cc:4772
void DEBUG_FUNCTION verify_node(void)
Definition cgraph.cc:3891
cgraph_node * create_thunk(tree alias, tree, bool this_adjusting, HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, HOST_WIDE_INT indirect_offset, tree virtual_offset, tree real_alias)
Definition cgraph.cc:769
int count_materialization_scale
Definition cgraph.h:1473
unsigned int profile_id
Definition cgraph.h:1475
cgraph_edge * create_edge(cgraph_node *callee, gcall *call_stmt, profile_count count, bool cloning_p=false)
Definition cgraph.cc:1143
unsigned thunk
Definition cgraph.h:1482
void analyze(void)
Definition cgraphunit.cc:626
cgraph_function_version_info * insert_new_function_version(void)
Definition cgraph.cc:321
bool set_const_flag(bool set_const, bool looping)
Definition cgraph.cc:3222
unsigned tm_clone
Definition cgraph.h:1502
bool can_remove_if_no_direct_calls_and_refs_p(void)
Definition cgraph.h:3287
bool get_body()
Definition cgraph.cc:4578
unsigned lowered
Definition cgraph.h:1487
int unit_id
Definition cgraph.h:1477
cgraph_edge * callers
Definition cgraph.h:1438
void set_call_stmt_including_clones(gimple *old_stmt, gcall *new_stmt, bool update_speculative=true)
Definition cgraphclones.cc:832
void expand_all_artificial_thunks()
Definition cgraphclones.cc:291
void remove(void)
Definition cgraph.cc:2240
unsigned icf_merged
Definition cgraph.h:1515
cgraph_node * next_sibling_clone
Definition cgraph.h:1442
cgraph_node * find_replacement(struct clone_info *)
Definition cgraphclones.cc:737
void remove_callees(void)
Definition cgraph.cc:2095
static void checking_verify_cgraph_nodes(void)
Definition cgraph.h:3311
cgraph_node * clones
Definition cgraph.h:1444
unsigned can_change_signature
Definition cgraph.h:1537
unsigned is_target_clone
Definition cgraph.h:1510
static void DEBUG_FUNCTION verify_cgraph_nodes(void)
Definition cgraph.cc:4438
static void add_function_version(cgraph_function_version_info *fn_v, tree decl)
Definition cgraph.cc:375
cgraph_node * get_alias_target(void)
Definition cgraph.h:3359
bool check_calls_comdat_local_p()
Definition cgraph.cc:4759
static cgraph_node * create_same_body_alias(tree alias, tree decl)
Definition cgraph.cc:744
void record_stmt_references(gimple *stmt)
Definition cgraphbuild.cc:273
cgraph_node * function_or_virtual_thunk_symbol(enum availability *avail=NULL, struct symtab_node *ref=NULL)
Definition cgraph.cc:4487
bool has_gimple_body_p(void)
Definition cgraph.h:3238
static void add_new_function(tree fndecl, bool lowered)
Definition cgraphunit.cc:528
static bool has_thunk_p(cgraph_node *node, void *)
Definition cgraph.cc:4675
void remove_from_clone_tree()
Definition cgraphclones.cc:1182
unsigned calls_comdat_local
Definition cgraph.h:1513
cgraph_node * inlined_to
Definition cgraph.h:1465
cgraph_edge * create_indirect_edge(gcall *call_stmt, int ecf_flags, profile_count count, bool cloning_p=false)
Definition cgraph.cc:1183
friend class symbol_table
Definition cgraph.h:907
void make_profile_local()
Definition cgraph.cc:185
bool local_p(void)
Definition ipa-visibility.cc:113
cgraph_node * clone_of
Definition cgraph.h:1445
bool cannot_return_p(void)
Definition cgraph.cc:3319
static void delete_function_version_by_decl(tree decl)
Definition cgraph.cc:359
void dump(FILE *f)
Definition cgraph.cc:2493
priority_type get_fini_priority(void)
Definition symtab.cc:1857
bool set_malloc_flag(bool malloc_p)
Definition cgraph.cc:2989
bool call_for_symbol_and_aliases(bool(*callback)(cgraph_node *, void *), void *data, bool include_overwritable)
Definition cgraph.h:3574
unsigned gc_candidate
Definition cgraph.h:1548
void apply_scale(profile_count num, profile_count den)
Definition cgraph.cc:265
cgraph_node * function_symbol(enum availability *avail=NULL, struct symtab_node *ref=NULL)
Definition cgraph.cc:4460
struct function * get_fun() const
Definition cgraph.cc:4620
void mark_force_output(void)
Definition cgraph.h:3505
void create_edge_including_clones(cgraph_node *callee, gimple *old_stmt, gcall *stmt, profile_count count, cgraph_inline_failed_t reason)
Definition cgraphclones.cc:892
unsigned only_called_at_exit
Definition cgraph.h:1497
void dump_graphviz(FILE *f)
Definition cgraph.cc:2694
void release_body(bool keep_arguments=false)
Definition cgraph.cc:2207
profile_count count
Definition cgraph.h:1470
static cgraph_node * get_create(tree)
Definition cgraph.cc:687
bool set_nothrow_flag(bool nothrow)
Definition cgraph.cc:2941
cgraph_simd_clone * simdclone
Definition cgraph.h:1454
unsigned called_by_ifunc_resolver
Definition cgraph.h:1550
bool set_noreturn_flag(bool noreturn_p)
Definition cgraph.cc:3084
cgraph_node * create_version_clone_with_body(vec< cgraph_edge * > redirect_callers, vec< ipa_replace_map *, va_gc > *tree_map, ipa_param_adjustments *param_adjustments, bitmap bbs_to_copy, basic_block new_entry_block, const char *suffix, tree target_attributes=NULL_TREE, bool version_decl=true)
Definition cgraphclones.cc:1077
void expand(void)
Definition cgraphunit.cc:1821
vec< ipa_opt_pass, va_heap, vl_ptr > ipa_transforms_to_apply
Definition cgraph.h:1461
static cgraph_node * create_alias(tree alias, tree target)
Definition cgraph.cc:718
cgraph_edge * callees
Definition cgraph.h:1437
bool remove_symbol_and_inline_clones(cgraph_node *forbidden_node=NULL)
Definition cgraphclones.cc:945
hash_table< cgraph_edge_hasher > * call_site_hash
Definition cgraph.h:1448
unsigned indirect_call_target
Definition cgraph.h:1529
bool call_for_symbol_and_aliases_1(bool(*callback)(cgraph_node *, void *), void *data, bool include_overwritable)
Definition cgraph.cc:4654
bool only_called_directly_p(void)
Definition cgraph.cc:3570
void assemble_thunks_and_aliases(void)
Definition cgraphunit.cc:1778
unsigned ipcp_clone
Definition cgraph.h:1544
cgraph_function_version_info * function_version(void)
Definition cgraph.cc:172
static void finalize_function(tree, bool)
Definition cgraphunit.cc:450
bool can_be_local_p(void)
Definition cgraph.cc:2814
bool call_for_symbol_thunks_and_aliases(bool(*callback)(cgraph_node *node, void *data), void *data, bool include_overwritable, bool exclude_virtual_thunks=false)
Definition cgraph.cc:2826
unsigned merged_comdat
Definition cgraph.h:1521
unsigned dispatcher_resolver_function
Definition cgraph.h:1506
static cgraph_node * local_info_node(tree decl)
Definition cgraph.cc:2374
void materialize_clone(void)
Definition cgraphclones.cc:1198
unsigned parallelized_function
Definition cgraph.h:1525
static void debug_cgraph(void)
Definition cgraph.h:1349
unsigned versionable
Definition cgraph.h:1534
int m_summary_id
Definition cgraph.h:1557
unsigned has_omp_variant_constructs
Definition cgraph.h:1552
auto_vec< cgraph_edge * > collect_callers(void)
Definition cgraph.cc:3600
cgraph_node * prev_sibling_clone
Definition cgraph.h:1443
cgraph_edge * get_edge(gimple *call_stmt)
Definition cgraph.cc:905
unsigned local
Definition cgraph.h:1532
unsigned process
Definition cgraph.h:1490
static void delete_function_version(cgraph_function_version_info *)
Definition cgraph.cc:338
void make_profile_global0(profile_quality quality)
Definition cgraph.cc:207
void mark_address_taken(void)
Definition cgraph.cc:2350
unsigned redefined_extern_inline
Definition cgraph.h:1540
cgraph_node * create_virtual_clone(const vec< cgraph_edge * > &redirect_callers, vec< ipa_replace_map *, va_gc > *tree_map, ipa_param_adjustments *param_adjustments, const char *suffix, unsigned num_suffix)
Definition cgraphclones.cc:645
int tp_first_run
Definition cgraph.h:1479
static cgraph_node * create(tree decl)
Definition cgraph.cc:658
bool will_be_removed_from_program_if_no_direct_calls_p(bool will_inline=false)
Definition cgraph.cc:3511
tree former_clone_of
Definition cgraph.h:1450
bool get_untransformed_body()
Definition cgraph.cc:4509
bool only_called_directly_or_aliased_p(void)
Definition cgraph.h:3270
cgraph_node * create_version_clone(tree new_decl, vec< cgraph_edge * > redirect_callers, bitmap bbs_to_copy, const char *suffix=NULL)
Definition cgraphclones.cc:998
cgraph_node * ultimate_alias_target(availability *availability=NULL, symtab_node *ref=NULL)
Definition cgraph.h:3399
static cgraph_node * get_for_asmname(tree asmname)
Definition cgraph.cc:814
cgraph_node * simd_clones
Definition cgraph.h:1456
unsigned merged_extern_inline
Definition cgraph.h:1523
bool add_detected_attribute(const char *attr)
Definition cgraph.cc:3037
int get_summary_id()
Definition cgraph.h:1355
cgraph_node * create_clone(tree decl, profile_count count, bool update_original, vec< cgraph_edge * > redirect_callers, bool call_duplication_hook, cgraph_node *new_inlined_to, ipa_param_adjustments *param_adjustments, const char *suffix)
Definition cgraphclones.cc:385
void set_fini_priority(priority_type priority)
Definition symtab.cc:1910
unsigned dispatcher_function
Definition cgraph.h:1504
enum optimize_size_level optimize_for_size_p(void)
Definition cgraph.h:3514
bool set_pure_flag(bool pure, bool looping)
Definition cgraph.cc:3305
void remove_callers(void)
Definition cgraph.cc:2132
unsigned used_as_abstract_origin
Definition cgraph.h:1485
unsigned tm_may_enter_irr
Definition cgraph.h:1542
static struct cgraph_rtl_info * rtl_info(const_tree)
Definition cgraph.cc:2386
unsigned int alignment
Definition cgraph.h:801
tree orig_arg
Definition cgraph.h:770
HOST_WIDE_INT linear_step
Definition cgraph.h:807
enum cgraph_simd_clone_arg_type arg_type
Definition cgraph.h:798
tree orig_type
Definition cgraph.h:774
tree vector_arg
Definition cgraph.h:782
tree vector_type
Definition cgraph.h:785
tree simd_array
Definition cgraph.h:794
cgraph_node * next_clone
Definition cgraph.h:841
poly_uint64 vecsize_int
Definition cgraph.h:821
unsigned int inbranch
Definition cgraph.h:838
poly_uint64 vecsize_float
Definition cgraph.h:824
machine_mode mask_mode
Definition cgraph.h:829
cgraph_simd_clone_arg args[1]
Definition cgraph.h:847
cgraph_node * prev_clone
Definition cgraph.h:841
poly_uint64 simdlen
Definition cgraph.h:814
cgraph_node * origin
Definition cgraph.h:844
unsigned int nargs
Definition cgraph.h:818
unsigned char vecsize_mangle
Definition cgraph.h:834
Definition symtab-clones.h:25
hashval_t hash
Definition cgraph.h:3262
rtx rtl
Definition cgraph.h:3254
tree value
Definition cgraph.h:3257
Definition genautomata.cc:499
Definition hash-traits.h:321
Definition gimple-iterator.h:26
unsigned int speculative
Definition ipa-ref.h:67
enum ipa_ref_use use
Definition ipa-ref.h:66
gimple * stmt
Definition ipa-ref.h:60
symtab_node * referred
Definition ipa-ref.h:59
unsigned int speculative_id
Definition ipa-ref.h:65
bool address_matters_p()
Definition cgraph.h:3614
unsigned int lto_stmt_uid
Definition ipa-ref.h:61
symtab_node * referring
Definition ipa-ref.h:58
unsigned force_load_ref
Definition cgraph.h:743
tree new_tree
Definition cgraph.h:737
int parm_num
Definition cgraph.h:739
Definition lto-streamer.h:567
Definition lto-streamer.h:709
Definition profile-count.h:765
static profile_count zero()
Definition profile-count.h:813
int ref_count
Definition cgraph.h:59
char * name
Definition cgraph.h:60
const char * compare_type
Definition cgraph.h:67
static hashval_t hash(section_hash_entry *)
Definition symtab.cc:365
static bool equal(section_hash_entry *, const char *)
Definition symtab.cc:373
priority_type fini
Definition cgraph.h:2325
priority_type init
Definition cgraph.h:2324
static bool set_implicit_section(symtab_node *n, void *)
Definition symtab.cc:1928
unsigned in_init_priority_hash
Definition cgraph.h:618
void dump_graphviz(FILE *f)
Definition symtab.cc:1042
symtab_node * get_alias_target(void)
Definition cgraph.h:2841
tree get_alias_target_tree()
Definition cgraph.h:2853
unsigned used_from_other_partition
Definition cgraph.h:605
const char * get_visibility_string() const
Definition symtab.cc:890
tree get_comdat_group_id()
Definition cgraph.h:277
tree x_comdat_group
Definition cgraph.h:664
void add_to_same_comdat_group(symtab_node *old_node)
Definition symtab.cc:495
tree alias_target
Definition cgraph.h:659
bool native_rtl_p() const
Definition cgraphunit.cc:227
ipa_ref * iterate_reference(unsigned i, ipa_ref *&ref)
Definition cgraph.h:2877
void dump(FILE *f)
Definition symtab.cc:1033
unsigned weakref
Definition cgraph.h:557
symtab_node * next
Definition cgraph.h:635
unsigned address_taken
Definition cgraph.h:616
bool address_matters_p()
Definition symtab.cc:2466
unsigned definition
Definition cgraph.h:530
static symtab_node * get(const_tree decl)
Definition cgraph.h:484
bool referred_to_p(bool include_self=true)
Definition cgraphunit.cc:424
priority_type get_init_priority()
Definition symtab.cc:1845
unsigned num_references(void)
Definition cgraph.h:249
ipa_ref * clone_reference(ipa_ref *ref, gimple *stmt)
Definition symtab.cc:743
void clone_references(symtab_node *node)
Definition symtab.cc:703
bool output_to_lto_symbol_table_p(void)
Definition symtab.cc:2650
const char * dump_asm_name() const
Definition symtab.cc:599
section_hash_entry * x_section
Definition cgraph.h:667
unsigned externally_visible
Definition cgraph.h:579
static DEBUG_FUNCTION void verify_symtab_nodes(void)
Definition symtab.cc:1482
void copy_visibility_from(symtab_node *n)
Definition symtab.cc:1599
bool has_aliases_p(void)
Definition cgraph.h:2910
struct symbol_priority_map * priority_info(void)
Definition symtab.cc:1870
const char * get_dump_name(bool asm_name_p) const
Definition symtab.cc:580
void unregister(struct clone_info *)
Definition symtab.cc:452
unsigned unique_name
Definition cgraph.h:590
void DEBUG_FUNCTION debug(void)
Definition symtab.cc:1098
void set_section(const char *section)
Definition symtab.cc:1828
const char * get_section() const
Definition cgraph.h:293
unsigned need_lto_streaming
Definition cgraph.h:622
symtab_node * next_defined_symbol(void)
Definition cgraph.h:2863
unsigned cpp_implicit_alias
Definition cgraph.h:564
void set_comdat_group(tree group)
Definition cgraph.h:285
void dump_base(FILE *)
Definition symtab.cc:907
void DEBUG_FUNCTION verify(void)
Definition symtab.cc:1370
bool call_for_symbol_and_aliases_1(bool(*callback)(symtab_node *, void *), void *data, bool include_overwrite)
Definition symtab.cc:2426
const char * name() const
Definition symtab.cc:567
void clear_stmts_in_references(void)
Definition symtab.cc:801
static void check_ifunc_callee_symtab_nodes(void)
Definition symtab.cc:1450
unsigned forced_by_abi
Definition cgraph.h:588
ipa_ref * find_reference(symtab_node *referred_node, gimple *stmt, unsigned int lto_stmt_uid, enum ipa_ref_use use_type)
Definition symtab.cc:761
enum availability get_availability(symtab_node *ref=NULL)
Definition cgraph.h:3541
void set_section_for_node(const char *section)
Definition symtab.cc:1752
symtab_node * ultimate_alias_target_1(enum availability *avail=NULL, symtab_node *ref=NULL)
Definition symtab.cc:1654
void remove_from_same_comdat_group(void)
Definition symtab.cc:429
friend class symbol_table
Definition cgraph.h:131
ipa_ref * maybe_create_reference(tree val, gimple *stmt)
Definition symtab.cc:672
int get_uid() const
Definition cgraph.h:518
symtab_node * same_comdat_group
Definition cgraph.h:651
void remove_all_references(void)
Definition symtab.cc:825
bool prevailing_p(void)
Definition cgraph.h:3717
unsigned no_reorder
Definition cgraph.h:581
void * aux
Definition cgraph.h:661
int equal_address_to(symtab_node *s2, bool memory_accessed=false)
Definition symtab.cc:2314
unsigned transparent_alias
Definition cgraph.h:555
unsigned implicit_section
Definition cgraph.h:593
bool address_can_be_compared_p(void)
Definition cgraph.cc:150
enum ld_plugin_symbol_resolution resolution
Definition cgraph.h:524
void clone_referring(symtab_node *node)
Definition symtab.cc:723
bool resolve_alias(symtab_node *target, bool transparent=false)
Definition symtab.cc:1940
symtab_node * previous_sharing_asm_name
Definition cgraph.h:648
bool can_be_discarded_p(void)
Definition cgraph.h:432
void remove_stmt_references(gimple *stmt)
Definition symtab.cc:782
unsigned semantic_interposition
Definition cgraph.h:598
static symtab_node * get_for_asmname(const_tree asmname)
Definition symtab.cc:1077
static symtab_node * get_create(tree node)
Definition cgraph.h:3530
unsigned refuse_visibility_changes
Definition cgraph.h:574
symtab_node(toplevel_type t)
Definition cgraph.h:134
ipa_ref * create_reference(symtab_node *referred_node, enum ipa_ref_use use_type)
Definition symtab.cc:609
void dump_references(FILE *file)
Definition symtab.cc:845
enum symbol_partitioning_class get_partitioning_class(void)
Definition symtab.cc:2169
tree decl
Definition cgraph.h:632
void dissolve_same_comdat_group_list(void)
Definition symtab.cc:530
unsigned symver
Definition cgraph.h:566
unsigned alias
Definition cgraph.h:533
symtab_node * previous
Definition cgraph.h:636
void make_decl_local(void)
Definition symtab.cc:1534
bool binds_to_current_def_p(symtab_node *ref=NULL)
Definition symtab.cc:2593
ipa_ref * iterate_direct_aliases(unsigned i, ipa_ref *&ref)
Definition cgraph.h:2897
bool semantically_equivalent_p(symtab_node *target)
Definition symtab.cc:2135
void remove_all_referring(void)
Definition symtab.cc:835
void reset(bool preserve_comdat_group=false)
Definition cgraphunit.cc:391
unsigned offloadable
Definition cgraph.h:625
void fixup_same_cpp_alias_visibility(symtab_node *target)
Definition symtab.cc:1716
bool in_same_comdat_group_p(symtab_node *target)
Definition cgraph.h:2820
const char * dump_name() const
Definition symtab.cc:593
static bool set_section_from_node(symtab_node *n, void *o)
Definition symtab.cc:1818
unsigned writeonly
Definition cgraph.h:571
const char * asm_name() const
Definition symtab.cc:557
unsigned int definition_alignment()
Definition symtab.cc:2567
void dump_referring(FILE *)
Definition symtab.cc:862
unsigned body_removed
Definition cgraph.h:596
symtab_node * noninterposable_alias(void)
Definition symtab.cc:2058
static void checking_verify_symtab_nodes(void)
Definition cgraph.h:712
ipa_ref_list ref_list
Definition cgraph.h:654
bool DEBUG_FUNCTION verify_base(void)
Definition symtab.cc:1115
unsigned force_output
Definition cgraph.h:584
static bool set_section_from_string(symtab_node *n, void *s)
Definition symtab.cc:1808
void register_symbol(void)
Definition symtab.cc:412
tree get_comdat_group()
Definition cgraph.h:271
symtab_node * ultimate_alias_target(enum availability *avail=NULL, struct symtab_node *ref=NULL)
Definition cgraph.h:3379
const char * get_symtab_type_string() const
Definition symtab.cc:899
bool real_symbol_p(void)
Definition cgraph.h:2792
unsigned analyzed
Definition cgraph.h:569
bool nonzero_address()
Definition symtab.cc:2300
void remove(void)
Definition symtab.cc:484
bool call_for_symbol_and_aliases(bool(*callback)(symtab_node *, void *), void *data, bool include_overwrite)
Definition cgraph.h:3553
int m_uid
Definition cgraph.h:691
bool comdat_local_p(void)
Definition cgraph.h:448
bool needed_p(void)
Definition cgraphunit.cc:240
unsigned in_other_partition
Definition cgraph.h:609
ipa_ref * iterate_referring(unsigned i, ipa_ref *&ref)
Definition cgraph.h:2887
symtab_node * next_sharing_asm_name
Definition cgraph.h:647
void set_init_priority(priority_type priority)
Definition symtab.cc:1891
bool used_from_object_file_p(void)
Definition cgraph.h:2933
bool can_increase_alignment_p()
Definition symtab.cc:2475
unsigned ifunc_resolver
Definition cgraph.h:628
Definition symtab-thunks.h:36
enum toplevel_type type
Definition cgraph.h:123
int order
Definition cgraph.h:120
struct lto_file_decl_data * lto_file_data
Definition cgraph.h:117
toplevel_node(toplevel_type t)
Definition cgraph.h:112
static bool equal(constant_descriptor_tree *, constant_descriptor_tree *)
Definition varasm.cc:3490
static hashval_t hash(constant_descriptor_tree *)
Definition varasm.cc:3367
hash_map< varpool_node *, size_t > * map
Definition cgraph.h:1582
vec< varpool_node * > nodes
Definition cgraph.h:1583
varpool_node_set set
Definition cgraph.h:1596
unsigned index
Definition cgraph.h:1597
bool can_remove_if_no_refs_p(void)
Definition cgraph.h:3321
static void dump_varpool(FILE *f)
Definition varpool.cc:244
void remove_initializer(void)
Definition varpool.cc:192
static varpool_node * create_extra_name_alias(tree alias, tree decl)
Definition varpool.cc:792
void dump(FILE *f)
Definition varpool.cc:210
bool call_for_symbol_and_aliases_1(bool(*callback)(varpool_node *, void *), void *data, bool include_overwritable)
Definition varpool.cc:815
bool externally_visible_p(void)
Definition ipa-visibility.cc:263
void analyze(void)
Definition varpool.cc:518
static varpool_node * create_empty(void)
Definition varpool.cc:136
void DEBUG_FUNCTION debug(void)
Definition varpool.cc:237
static varpool_node * get_create(tree decl)
Definition varpool.cc:143
static varpool_node * get_for_asmname(tree asmname)
Definition varpool.cc:263
bool call_for_symbol_and_aliases(bool(*callback)(varpool_node *, void *), void *data, bool include_overwritable)
Definition cgraph.h:3595
unsigned output
Definition cgraph.h:2213
varpool_node()
Definition cgraph.h:2105
varpool_node * ultimate_alias_target(availability *availability=NULL, symtab_node *ref=NULL)
Definition cgraph.h:3416
static varpool_node * create_alias(tree, tree)
Definition varpool.cc:772
static void add(tree decl)
Definition varpool.cc:470
tree get_constructor(void)
Definition varpool.cc:275
varpool_node * get_alias_target(void)
Definition cgraph.h:3367
static varpool_node * get(const_tree decl)
Definition cgraph.h:2945
bool assemble_decl(void)
Definition varpool.cc:560
bool all_refs_explicit_p()
Definition cgraph.h:3339
void assemble_aliases(void)
Definition varpool.cc:540
static void finalize_decl(tree decl)
Definition cgraphunit.cc:966
availability get_availability(symtab_node *ref=NULL)
Definition varpool.cc:485
enum tls_model tls_model
Definition cgraph.h:2219
bool ctor_useable_for_folding_p(void)
Definition varpool.cc:319
void remove(void)
Definition varpool.cc:172
unsigned dynamically_initialized
Definition cgraph.h:2217
unsigned used_by_single_function
Definition cgraph.h:2225
static void DEBUG_FUNCTION debug_varpool(void)
Definition varpool.cc:256
void finalize_named_section_flags(void)
Definition varpool.cc:715
#define NULL
Definition system.h:50
#define gcc_assert(EXPR)
Definition system.h:814
#define gcc_unreachable()
Definition system.h:841
#define false
Definition system.h:888
#define DEBUG_FUNCTION
Definition system.h:1236
#define gcc_checking_assert(EXPR)
Definition system.h:821
unsigned short priority_type
Definition tree-core.h:1093
use_type
Definition tree-ssa-loop-ivopts.cc:195
static void mark_address_taken(tree ref)
Definition tree-ssa-operands.cc:619
static unsigned int increase_alignment(void)
Definition tree-vectorizer.cc:1706
#define DECL_ASSEMBLER_NAME(NODE)
Definition tree.h:3307
#define DECL_HAS_VALUE_EXPR_P(NODE)
Definition tree.h:3070
#define DECL_SECTION_NAME(NODE)
Definition tree.h:3344
#define DECL_STATIC_CONSTRUCTOR(NODE)
Definition tree.h:3547
#define TYPE_MAIN_VARIANT(NODE)
Definition tree.h:2365
#define DECL_WEAK(NODE)
Definition tree.h:3274
#define DECL_STATIC_DESTRUCTOR(NODE)
Definition tree.h:3550
#define TREE_CODE(NODE)
Definition tree.h:325
#define DECL_ABSTRACT_P(NODE)
Definition tree.h:2973
#define DECL_COMDAT(NODE)
Definition tree.h:3289
#define opt_for_fn(fndecl, opt)
Definition tree.h:6331
#define DECL_INITIAL(NODE)
Definition tree.h:2893
#define TREE_STATIC(NODE)
Definition tree.h:773
#define DECL_COMMON(NODE)
Definition tree.h:3265
#define DECL_EXTERNAL(NODE)
Definition tree.h:2987
#define TREE_PUBLIC(NODE)
Definition tree.h:858
#define DECL_VIRTUAL_P(NODE)
Definition tree.h:3002
#define VAR_P(NODE)
Definition tree.h:236
#define NULL_TREE
Definition tree.h:318
#define DECL_P(NODE)
Definition tree.h:232
static bool set_implicit_section(struct symtab_node *n, void *data)
Definition varasm.cc:476
constexpr vnull vNULL
Definition vec.h:569