26#include "plugin-api.h"
105struct GTY((desc (
"%h.type"), tag (
"SYMTAB_SYMBOL"),
106 chain_next (
"%h.next"), chain_prev (
"%h.previous")))
131 const char *name ()
const;
134 const char *dump_name ()
const;
137 const char *asm_name ()
const;
140 const char *dump_asm_name ()
const;
143 const char *get_visibility_string ()
const;
146 const char *get_symtab_type_string ()
const;
150 void register_symbol (
void);
156 void reset (
bool preserve_comdat_group =
false);
162 void dump_graphviz (FILE *f);
202 unsigned int lto_stmt_uid,
206 void remove_stmt_references (
gimple *stmt);
212 void clear_stmts_in_references (
void);
215 void remove_all_references (
void);
218 void remove_all_referring (
void);
221 void dump_references (FILE *file);
224 void dump_referring (FILE *);
229 return ref_list.references.length ();
243 bool semantically_equivalent_p (
symtab_node *target);
279 void remove_from_same_comdat_group (
void);
282 void add_to_same_comdat_group (
symtab_node *old_node);
285 void dissolve_same_comdat_group_list (
void);
289 bool used_from_object_file_p (
void);
306 bool resolve_alias (
symtab_node *target,
bool transparent =
false);
310 void fixup_same_cpp_alias_visibility (
symtab_node *target);
315 bool call_for_symbol_and_aliases (
bool (*callback) (
symtab_node *,
void *),
317 bool include_overwrite);
328 inline tree get_alias_target_tree ();
331 void set_section (
const char *
section);
339 void set_section_for_node (
const char *
section);
343 void set_section_for_node (
const symtab_node &other);
356 bool prevailing_p (
void);
364 void make_decl_local (
void);
373 unsigned int definition_alignment ();
376 bool can_increase_alignment_p ();
382 bool has_aliases_p (
void);
386 bool real_symbol_p (
void);
389 bool output_to_lto_symbol_table_p (
void);
394 bool needed_p (
void);
398 bool native_rtl_p ()
const;
401 bool referred_to_p (
bool include_self =
true);
418 &&
resolution != LDPR_PREVAILING_DEF_IRONLY_EXP)
419 || flag_incremental_link)
420 &&
resolution != LDPR_PREVAILING_DEF_IRONLY));
432 inline bool in_same_comdat_group_p (
symtab_node *target);
436 bool nonzero_address (
bool delete_null_pointer_checks);
439 bool nonzero_address ();
449 int equal_address_to (
symtab_node *s2,
bool memory_accessed =
false);
453 bool address_matters_p ();
458 bool address_can_be_compared_p (
void);
474 ||
decl->decl_with_vis.symtab_node->decl ==
decl);
475 return decl->decl_with_vis.symtab_node;
487 static void check_ifunc_callee_symtab_nodes (
void);
493 static inline void checking_verify_symtab_nodes (
void);
505 ENUM_BITFIELD (ld_plugin_symbol_resolution)
resolution : 8;
675 bool include_overwrite);
706#define FOR_EACH_ALIAS(NODE, ALIAS) \
707 for (unsigned ALIAS##_iter_ = 0; \
708 (NODE)->iterate_direct_aliases (ALIAS##_iter_, ALIAS); \
861#define DEFCIFCODE(code, type, string) CIF_ ## code,
865#include "cif-code.def"
903 unit_id (0), tp_first_run (0), thunk (
false),
904 used_as_abstract_origin (
false),
906 only_called_at_startup (
false), only_called_at_exit (
false),
907 tm_clone (
false), dispatcher_function (
false), calls_comdat_local (
false),
909 merged_extern_inline (
false), parallelized_function (
false),
911 versionable (
false), can_change_signature (
false),
912 redefined_extern_inline (
false), tm_may_enter_irr (
false),
914 called_by_ifunc_resolver (
false), has_omp_variant_constructs (
false),
922 bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node =
NULL);
926 void record_stmt_references (gimple *stmt);
933 void set_call_stmt_including_clones (gimple *old_stmt, gcall *new_stmt,
934 bool update_speculative =
true);
942 struct symtab_node *ref =
NULL);
950 cgraph_node *function_or_virtual_thunk_symbol
952 struct symtab_node *ref =
NULL);
974 cgraph_node *create_clone (
tree decl, profile_count
count,
975 bool update_original,
976 vec<cgraph_edge *> redirect_callers,
977 bool call_duplication_hook,
978 cgraph_node *new_inlined_to,
979 ipa_param_adjustments *param_adjustments,
985 cgraph_node *create_virtual_clone (
const vec<cgraph_edge *> &redirect_callers,
986 vec<ipa_replace_map *, va_gc> *tree_map,
987 ipa_param_adjustments *param_adjustments,
988 const char * suffix,
unsigned num_suffix);
992 void remove_from_clone_tree ();
1011 cgraph_node *create_version_clone (
tree new_decl,
1012 vec<cgraph_edge *> redirect_callers,
1014 const char *suffix =
NULL);
1043 cgraph_node *create_version_clone_with_body
1044 (vec<cgraph_edge *> redirect_callers,
1045 vec<ipa_replace_map *, va_gc> *tree_map,
1046 ipa_param_adjustments *param_adjustments,
1048 tree target_attributes =
NULL_TREE,
bool version_decl =
true);
1052 cgraph_function_version_info *insert_new_function_version (
void);
1055 cgraph_function_version_info *function_version (
void);
1059 void analyze (
void);
1064 cgraph_node * create_thunk (
tree alias,
tree,
bool this_adjusting,
1065 HOST_WIDE_INT fixed_offset,
1066 HOST_WIDE_INT virtual_value,
1067 HOST_WIDE_INT indirect_offset,
1068 tree virtual_offset,
1073 inline cgraph_node *get_alias_target (
void);
1082 symtab_node *ref =
NULL);
1086 void expand_all_artificial_thunks ();
1089 void assemble_thunks_and_aliases (
void);
1096 void create_wrapper (cgraph_node *target);
1105 void dump (FILE *f);
1108 void dump_graphviz (FILE *f);
1115 bool get_untransformed_body ();
1122 void materialize_clone (
void);
1128 void release_body (
bool keep_arguments =
false);
1134 void make_local (
void);
1146 cgraph_edge *create_edge (cgraph_node *callee,
1147 gcall *call_stmt, profile_count
count,
1148 bool cloning_p =
false);
1153 cgraph_edge *create_indirect_edge (gcall *call_stmt,
int ecf_flags,
1154 profile_count
count,
1155 bool cloning_p =
false);
1160 void create_edge_including_clones (cgraph_node *callee,
1161 gimple *old_stmt, gcall *stmt,
1162 profile_count
count,
1167 cgraph_edge *get_edge (gimple *call_stmt);
1171 auto_vec<cgraph_edge *> collect_callers (
void);
1174 void remove_callers (
void);
1177 void remove_callees (
void);
1185 bool set_nothrow_flag (
bool nothrow);
1189 bool set_malloc_flag (
bool malloc_p);
1193 bool set_noreturn_flag (
bool noreturn_p);
1204 bool set_const_flag (
bool set_const,
bool looping);
1212 bool set_pure_flag (
bool pure,
bool looping);
1216 bool add_detected_attribute (
const char *attr);
1222 bool call_for_symbol_and_aliases (
bool (*callback) (cgraph_node *,
1224 void *data,
bool include_overwritable);
1230 bool call_for_symbol_thunks_and_aliases (
bool (*callback) (cgraph_node *node,
1233 bool include_overwritable,
1234 bool exclude_virtual_thunks =
false);
1238 inline void mark_force_output (
void);
1241 bool local_p (
void);
1247 bool can_be_local_p (
void);
1251 bool cannot_return_p (
void);
1257 bool only_called_directly_p (
void);
1260 void make_profile_local ();
1266 void apply_scale (profile_count num, profile_count den);
1272 void scale_profile_to (profile_count ipa_count);
1277 inline bool only_called_directly_or_aliased_p (
void);
1295 bool will_be_removed_from_program_if_no_direct_calls_p
1296 (
bool will_inline =
false);
1301 bool can_remove_if_no_direct_calls_and_refs_p (
void);
1307 bool can_remove_if_no_direct_calls_p (
bool will_inline =
false);
1314 inline bool has_gimple_body_p (
void);
1317 bool former_thunk_p (
void);
1321 bool check_calls_comdat_local_p ();
1327 static void dump_cgraph (FILE *f);
1348 static void delete_function_version_by_decl (
tree decl);
1361 static void add_new_function (
tree fndecl,
bool lowered);
1374 static void finalize_function (
tree,
bool);
1404 static inline void checking_verify_cgraph_nodes (
void);
1407 static bool make_local (
cgraph_node *node,
void *);
1536 void *
data,
bool include_overwritable);
1608 HOST_WIDE_INT
offset = 0);
1637 bool consider_placement_new =
true,
1638 bool consider_bases =
true);
1659 void dump (FILE *f,
bool newline =
true)
const;
1718class GTY((chain_next (
"%h.next_caller"), chain_prev (
"%h.prev_caller"),
1733 bool update_speculative =
true);
1793 if (e->next_callee && e->next_callee->speculative
1794 && e->next_callee->call_stmt == e->call_stmt
1795 && e->next_callee->lto_stmt_uid == e->lto_stmt_uid)
1796 return e->next_callee;
1808 true; e2 = e2->next_callee)
1829 for (
unsigned int i = 0;
caller->iterate_reference (
i, ref);
i++)
1876 *killed_ssas =
nullptr);
1882 bool update_original);
1885 bool verify_count ();
1890 bool cannot_lead_to_return_p (
void);
1893 bool recursive_p (
void);
1896 bool maybe_hot_p ();
1910 inline int get_summary_id ()
1912 return m_summary_id;
1917 static unsigned int rebuild_edges (
void);
1921 static void rebuild_references (
void);
1925 bool possibly_call_in_translation_unit_p (
void);
2022#define CGRAPH_FREQ_BASE 1000
2023#define CGRAPH_FREQ_MAX 100000
2037 void dump (FILE *f);
2085 bool include_overwritable);
2160 bool include_overwritable);
2276 void initialize (
void);
2282 void finalize_compilation_unit (
void);
2289 void process_same_body_aliases (
void);
2292 void compile (
void);
2297 void process_new_functions (
void);
2310 bool remove_unreachable_nodes (FILE *file);
2316 void remove_unreferenced_decls (
void);
2328 bool output_variables (
void);
2332 void output_weakrefs (
void);
2366 inline cgraph_node *first_defined_function (
void);
2378 cgraph_node *first_function_with_gimple_body (
void);
2435 void call_cgraph_insertion_hooks (
cgraph_node *node);
2438 void call_cgraph_removal_hooks (
cgraph_node *node);
2450 void call_varpool_insertion_hooks (
varpool_node *node);
2453 void symtab_prevail_in_asm_name_hash (
symtab_node *node);
2456 void symtab_initialize_asm_name_hash (
void);
2462 void dump (FILE *f);
2465 void dump_graphviz (FILE *f);
2484 if (!edge_released_summary_ids.is_empty ())
2485 edge->m_summary_id = edge_released_summary_ids.pop ();
2487 edge->m_summary_id = edges_max_summary_id++;
2489 return edge->m_summary_id;
2562 bool indir_unknown_callee,
bool cloning_p);
2643 unsigned long number);
2645 unsigned long number);
2649 ipa_param_adjustments *,
2653 const cgraph_node *clone,
2654 const char *suffix);
2709 source = cn->inlined_to;
2714 target = cn->inlined_to;
2749 for (; node1; node1 = node1->
next)
2805 return (resolution == LDPR_PREVAILING_DEF
2806 || resolution == LDPR_PREEMPTED_REG
2807 || resolution == LDPR_RESOLVED_EXEC
2808 || resolution == LDPR_RESOLVED_DYN);
2842 nodes->previous = node;
2847 if (node->
order == -1)
2907#define FOR_EACH_SYMBOL(node) \
2908 for ((node) = symtab->first_symbol (); (node); (node) = (node)->next)
2916 for (node =
nodes; node; node = node->
next)
2924#define FOR_EACH_DEFINED_SYMBOL(node) \
2925 for ((node) = symtab->first_defined_symbol (); (node); \
2926 (node) = node->next_defined_symbol ())
2933 for (node =
nodes; node; node = node->
next)
2944 for (; node1; node1 = node1->
next)
2950#define FOR_EACH_VARIABLE(node) \
2951 for ((node) = symtab->first_variable (); \
2953 (node) = symtab->next_variable ((node)))
2960 for (node =
nodes; node; node = node->
next)
2974 for (; node1; node1 = node1->
next)
2984#define FOR_EACH_STATIC_INITIALIZER(node) \
2985 for ((node) = symtab->first_static_initializer (); (node); \
2986 (node) = symtab->next_static_initializer (node))
2993 for (node =
nodes; node; node = node->
next)
3007 for (; node1; node1 = node1->
next)
3016#define FOR_EACH_DEFINED_VARIABLE(node) \
3017 for ((node) = symtab->first_defined_variable (); (node); \
3018 (node) = symtab->next_defined_variable (node))
3025 for (node =
nodes; node; node = node->
next)
3039 for (; node1; node1 = node1->
next)
3049#define FOR_EACH_DEFINED_FUNCTION(node) \
3050 for ((node) = symtab->first_defined_function (); (node); \
3051 (node) = symtab->next_defined_function ((node)))
3058 for (node =
nodes; node; node = node->
next)
3069 for (; node1; node1 = node1->
next)
3080 for (node =
nodes; node; node = node->
next)
3094 for (; node1; node1 = node1->
next)
3104#define FOR_EACH_FUNCTION(node) \
3105 for ((node) = symtab->first_function (); (node); \
3106 (node) = symtab->next_function ((node)))
3121#define FOR_EACH_FUNCTION_WITH_GIMPLE_BODY(node) \
3122 for ((node) = symtab->first_function_with_gimple_body (); (node); \
3123 (node) = symtab->next_function_with_gimple_body (node))
3312 n->callers->prev_caller =
this;
3325 return caller->inlined_to->decl == c->decl;
3327 return caller->decl == c->decl;
3362 return count.to_cgraph_frequency (
caller->inlined_to
3363 ?
caller->inlined_to->count
3433 bool include_overwritable)
3435 if (include_overwritable
3438 if (callback (
this,
data))
3454 bool include_overwritable)
3456 if (include_overwritable
3459 if (callback (
this,
data))
3475 bool include_overwritable)
3477 if (include_overwritable
3480 if (callback (
this,
data))
3499 return referred->address_can_be_compared_p ();
3508 *
this = e->indirect_info->context;
3609class symbol_table_test
3613 symbol_table_test ();
3616 ~symbol_table_test ();
gcov_type apply_scale(gcov_type freq, gcov_type scale)
Definition basic-block.h:578
void cgraph_update_edges_for_call_stmt(gimple *old_stmt, tree old_decl, gimple *new_stmt)
Definition cgraph.cc:1867
bool cgraph_function_possibly_inlined_p(tree decl)
Definition cgraph.cc:2528
symbol_table * symtab
Definition cgraph.cc:81
cgraph_inline_failed_type_t cgraph_inline_failed_type(cgraph_inline_failed_t reason)
Definition cgraph.cc:2231
cgraph_indirect_call_info * cgraph_allocate_init_indirect_info(void)
Definition cgraph.cc:1122
const char *const cgraph_availability_names[]
Definition cgraph.cc:2247
void release_function_body(tree decl)
Definition cgraph.cc:1960
symbol_table * saved_symtab
Definition cgraph.cc:4502
void cgraph_cc_finalize(void)
Definition cgraph.cc:4370
const char * cgraph_inline_failed_string(cgraph_inline_failed_t reason)
Definition cgraph.cc:2213
symtab_state
Definition cgraph.h:2210
@ LTO_STREAMING
Definition cgraph.h:2216
@ IPA
Definition cgraph.h:2218
@ PARSING
Definition cgraph.h:2212
@ EXPANSION
Definition cgraph.h:2225
@ IPA_SSA_AFTER_INLINING
Definition cgraph.h:2223
@ FINISHED
Definition cgraph.h:2227
@ IPA_SSA
Definition cgraph.h:2220
@ CONSTRUCTION
Definition cgraph.h:2214
const char * cgraph_inline_failed_string(cgraph_inline_failed_t)
Definition cgraph.cc:2213
void(* cgraph_edge_hook)(cgraph_edge *, void *)
Definition cgraph.h:2191
const char * xstrdup_for_dump(const char *transient_str)
Definition cgraph.h:3583
void debuginfo_early_stop(void)
Definition cgraphunit.cc:2537
void debuginfo_start(void)
Definition cgraphunit.cc:2513
void(* cgraph_node_hook)(cgraph_node *, void *)
Definition cgraph.h:2192
tree ctor_for_folding(tree)
Definition varpool.cc:397
struct varpool_node_set_def * varpool_node_set
Definition cgraph.h:1546
cgraph_inline_failed_type_t cgraph_inline_failed_type(cgraph_inline_failed_t)
Definition cgraph.cc:2231
bool ipa_discover_variable_flags(void)
Definition ipa.cc:774
void symtab_thunks_cc_finalize(void)
Definition symtab-thunks.cc:663
void release_function_body(tree)
Definition cgraph.cc:1960
void(* cgraph_2node_hook)(cgraph_node *, cgraph_node *, void *)
Definition cgraph.h:2195
int compute_call_stmt_bb_frequency(tree, basic_block bb)
Definition cgraphbuild.cc:203
void debuginfo_early_init(void)
Definition cgraphunit.cc:2473
cgraph_inline_failed_type_t
Definition cgraph.h:868
@ CIF_FINAL_NORMAL
Definition cgraph.h:869
@ CIF_FINAL_ERROR
Definition cgraph.h:870
void set_new_clone_decl_and_node_flags(cgraph_node *new_node)
Definition cgraphclones.cc:162
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:2528
symbol_table * symtab
Definition cgraph.cc:81
void debuginfo_stop(void)
Definition cgraphunit.cc:2521
void record_references_in_initializer(tree, bool)
Definition cgraphbuild.cc:390
cgraph_node_set_def * cgraph_node_set
Definition cgraph.h:1545
basic_block init_lowered_empty_function(tree, bool, profile_count)
Definition cgraphunit.cc:1723
tree clone_function_name_numbered(const char *name, const char *suffix)
Definition cgraphclones.cc:505
void tree_function_versioning(tree, tree, vec< ipa_replace_map *, va_gc > *, ipa_param_adjustments *, bool, bitmap, basic_block)
Definition tree-inline.cc:6300
symtab_type
Definition cgraph.h:43
@ SYMTAB_FUNCTION
Definition cgraph.h:45
@ SYMTAB_SYMBOL
Definition cgraph.h:44
@ SYMTAB_VARIABLE
Definition cgraph.h:46
hash_table< tree_descriptor_hasher > * constant_pool_htab(void)
Definition varasm.cc:3313
void(* cgraph_2edge_hook)(cgraph_edge *, cgraph_edge *, void *)
Definition cgraph.h:2194
void dump_callgraph_transformation(const cgraph_node *original, const cgraph_node *clone, const char *suffix)
Definition cgraphclones.cc:319
bool decl_is_tm_clone(const_tree fndecl)
Definition cgraph.h:3367
void cgraphunit_cc_finalize(void)
Definition cgraphunit.cc:2616
tree clone_function_name(const char *name, const char *suffix, unsigned long number)
Definition cgraphclones.cc:536
cgraph_indirect_call_info * cgraph_allocate_init_indirect_info(void)
Definition cgraph.cc:1122
void cgraph_build_static_cdtor(char which, tree body, int priority)
Definition ipa.cc:927
availability
Definition cgraph.h:69
@ AVAIL_UNSET
Definition cgraph.h:71
@ AVAIL_LOCAL
Definition cgraph.h:87
@ AVAIL_NOT_AVAILABLE
Definition cgraph.h:73
@ AVAIL_INTERPOSABLE
Definition cgraph.h:79
@ AVAIL_AVAILABLE
Definition cgraph.h:82
void debuginfo_early_start(void)
Definition cgraphunit.cc:2529
int tp_first_run_node_cmp(const void *pa, const void *pb)
Definition cgraphunit.cc:1940
void debuginfo_fini(void)
Definition cgraphunit.cc:2502
symbol_partitioning_class
Definition cgraph.h:92
@ SYMBOL_EXTERNAL
Definition cgraph.h:95
@ SYMBOL_PARTITION
Definition cgraph.h:97
@ SYMBOL_DUPLICATE
Definition cgraph.h:100
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
bool decl_in_symtab_p(const_tree decl)
Definition cgraph.h:2691
ipa_opt_pass_d * ipa_opt_pass
Definition cgraph.h:38
void cgraph_update_edges_for_call_stmt(gimple *, tree, gimple *)
Definition cgraph.cc:1867
function_summary< thunk_info * > thunk_summary
Definition cgraph.h:2242
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:732
@ SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP
Definition cgraph.h:736
@ SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP
Definition cgraph.h:741
@ SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP
Definition cgraph.h:745
@ SIMD_CLONE_ARG_TYPE_VECTOR
Definition cgraph.h:733
@ SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP
Definition cgraph.h:743
@ SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP
Definition cgraph.h:742
@ SIMD_CLONE_ARG_TYPE_LINEAR_VARIABLE_STEP
Definition cgraph.h:737
@ SIMD_CLONE_ARG_TYPE_MASK
Definition cgraph.h:746
@ SIMD_CLONE_ARG_TYPE_UNIFORM
Definition cgraph.h:734
@ SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP
Definition cgraph.h:740
@ SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP
Definition cgraph.h:744
void(* varpool_node_hook)(varpool_node *, void *)
Definition cgraph.h:2193
function_summary< clone_info * > clone_summary
Definition cgraph.h:2246
vec< cgraph_node * > cgraph_new_nodes
Definition cgraphunit.cc:217
void cgraph_cc_finalize(void)
Definition cgraph.cc:4370
cgraph_inline_failed_t
Definition cgraph.h:862
void debuginfo_init(void)
Definition cgraphunit.cc:2489
bool resolution_used_from_other_file_p(enum ld_plugin_symbol_resolution resolution)
Definition cgraph.h:2800
ipa_ref * speculative_call_target_ref()
Definition cgraph.h:1821
cgraph_edge * speculative_call_indirect_edge()
Definition cgraph.h:1799
unsigned int indirect_inlining_edge
Definition cgraph.h:1950
void remove_caller(void)
Definition cgraph.cc:1182
profile_count count
Definition cgraph.h:1928
cgraph_node * callee
Definition cgraph.h:1930
static cgraph_edge * set_call_stmt(cgraph_edge *e, gcall *new_stmt, bool update_speculative=true)
Definition cgraph.cc:940
void dump_edge_flags(FILE *f)
Definition cgraph.cc:2253
static cgraph_edge * make_direct(cgraph_edge *edge, cgraph_node *callee)
Definition cgraph.cc:1446
bool binds_to_current_def_p()
Definition cgraph.h:3344
cgraph_edge * prev_caller
Definition cgraph.h:1931
cgraph_edge * next_caller
Definition cgraph.h:1932
unsigned int can_throw_external
Definition cgraph.h:1958
static cgraph_edge * resolve_speculation(cgraph_edge *edge, tree callee_decl=NULL)
Definition cgraph.cc:1359
int m_summary_id
Definition cgraph.h:1996
int m_uid
Definition cgraph.h:1993
void redirect_callee(cgraph_node *n)
Definition cgraph.cc:1522
unsigned in_polymorphic_cdtor
Definition cgraph.h:1979
cgraph_edge * next_speculative_call_target()
Definition cgraph.h:1785
sreal sreal_frequency()
Definition cgraph.cc:4418
unsigned int speculative_id
Definition cgraph.h:1948
cgraph_indirect_call_info * indirect_info
Definition cgraph.h:1938
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:1256
static void rebuild_references(void)
Definition cgraphbuild.cc:451
friend class symbol_table
Definition cgraph.h:1720
unsigned int call_stmt_cannot_inline_p
Definition cgraph.h:1956
int get_summary_id()
Definition cgraph.h:1907
int num_speculative_call_targets_p(void)
Definition cgraph.cc:4464
void set_callee(cgraph_node *n)
Definition cgraph.h:3305
bool maybe_hot_p()
Definition cgraph.cc:3212
unsigned int lto_stmt_uid
Definition cgraph.h:1945
void DEBUG_FUNCTION debug(void)
Definition cgraph.cc:2277
bool possibly_call_in_translation_unit_p(void)
Definition cgraph.cc:4430
cgraph_edge * speculative_call_for_target(cgraph_node *)
Definition cgraph.cc:1429
cgraph_node * caller
Definition cgraph.h:1929
enum cgraph_inline_failed_t inline_failed
Definition cgraph.h:1942
unsigned int speculative
Definition cgraph.h:1976
void remove_callee(void)
Definition cgraph.h:3330
static void remove(cgraph_edge *edge)
Definition cgraph.cc:1218
static gimple * redirect_call_stmt_to_callee(cgraph_edge *e, hash_set< tree > *killed_ssas=nullptr)
Definition cgraph.cc:1566
bool verify_count()
Definition cgraph.cc:3457
unsigned int indirect_unknown_callee
Definition cgraph.h:1953
int get_uid()
Definition cgraph.h:1901
bool cannot_lead_to_return_p(void)
Definition cgraph.cc:3133
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
bool recursive_p(void)
Definition cgraph.h:3318
int frequency()
Definition cgraph.h:3357
cgraph_edge * first_speculative_call_target()
Definition cgraph.cc:1295
cgraph_edge * next_callee
Definition cgraph.h:1934
void * aux
Definition cgraph.h:1939
gcall * call_stmt
Definition cgraph.h:1935
bool verify_corresponds_to_fndecl(tree decl)
Definition cgraph.cc:3491
friend struct cgraph_node
Definition cgraph.h:1719
cgraph_edge * prev_callee
Definition cgraph.h:1933
void redirect_callee_duplicating_thunks(cgraph_node *n)
Definition cgraphclones.cc:275
HOST_WIDE_INT otr_token
Definition cgraph.h:1684
tree otr_type
Definition cgraph.h:1686
int ecf_flags
Definition cgraph.h:1690
unsigned agg_contents
Definition cgraph.h:1700
unsigned polymorphic
Definition cgraph.h:1697
unsigned member_ptr
Definition cgraph.h:1702
unsigned guaranteed_unmodified
Definition cgraph.h:1710
unsigned vptr_changed
Definition cgraph.h:1713
HOST_WIDE_INT offset
Definition cgraph.h:1680
int param_index
Definition cgraph.h:1688
unsigned by_ref
Definition cgraph.h:1705
ipa_polymorphic_call_context context
Definition cgraph.h:1682
unsigned num_speculative_call_targets
Definition cgraph.h:1693
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:3544
bool speculation_consistent_p(tree, HOST_WIDE_INT, bool, tree) const
Definition ipa-polymorphic-call.cc:1856
tree outer_type
Definition cgraph.h:1583
unsigned invalid
Definition cgraph.h:1594
unsigned speculative_maybe_derived_type
Definition cgraph.h:1591
HOST_WIDE_INT speculative_offset
Definition cgraph.h:1582
void DEBUG_FUNCTION debug() const
Definition ipa-polymorphic-call.cc:655
unsigned dynamic
Definition cgraph.h:1596
void clear_speculation()
Definition cgraph.h:3521
void clear_outer_type(tree otr_type=NULL)
Definition cgraph.h:3532
unsigned maybe_in_construction
Definition cgraph.h:1586
bool useless_p() const
Definition cgraph.h:3555
ipa_polymorphic_call_context()
Definition cgraph.h:3511
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:1584
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:1581
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:1588
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:3001
int order
Definition cgraph.h:2517
varpool_node * first_variable(void)
Definition cgraph.h:2927
cgraph_node * first_defined_function(void)
Definition cgraph.h:3019
void change_decl_assembler_name(tree decl, tree name)
Definition symtab.cc:274
varpool_node * next_static_initializer(varpool_node *node)
Definition cgraph.h:2968
hash_table< asmname_hasher > * assembler_name_hash
Definition cgraph.h:2535
void free_edge(cgraph_edge *e)
Definition cgraph.cc:1204
vec< int > edge_released_summary_ids
Definition cgraph.h:2505
int assign_summary_id(cgraph_edge *edge)
Definition cgraph.h:2479
cgraph_2edge_hook_list * add_edge_duplication_hook(cgraph_2edge_hook hook, void *data)
Definition cgraph.cc:572
static char symbol_suffix_separator()
Definition symtab.cc:2563
void remove_cgraph_duplication_hook(cgraph_2node_hook_list *entry)
Definition cgraph.cc:630
void DEBUG_FUNCTION debug(void)
Definition symtab.cc:1053
varpool_node_hook_list * m_first_varpool_insertion_hook
Definition cgraph.h:2589
static bool decl_assembler_name_equal(tree decl, const_tree asmname)
Definition symtab.cc:142
symbol_table()
Definition cgraph.h:2255
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:1024
symtab_node * first_defined_symbol(void)
Definition cgraph.h:2909
bool global_info_ready
Definition cgraph.h:2523
void clear_asm_symbols(void)
Definition cgraph.h:2300
bool function_flags_ready
Definition cgraph.h:2527
thunk_summary * m_thunks
Definition cgraph.h:2547
friend struct cgraph_edge
Definition cgraph.h:2253
bool output_variables(void)
Definition varpool.cc:733
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:2579
asm_node * asmnodes
Definition cgraph.h:2511
void call_cgraph_duplication_hooks(cgraph_node *node, cgraph_node *node2)
Definition cgraph.cc:642
friend struct symtab_node
Definition cgraph.h:2251
int edges_count
Definition cgraph.h:2497
void compile(void)
Definition cgraphunit.cc:2327
static bool assembler_names_equal_p(const char *name1, const char *name2)
Definition symtab.cc:104
FILE * ipa_clones_dump_file
Definition cgraph.h:2542
cgraph_node * next_defined_function(cgraph_node *node)
Definition cgraph.h:3033
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:477
asm_node * first_asm_symbol(void)
Definition cgraph.h:2336
void release_symbol(cgraph_node *node)
Definition cgraph.h:2888
cgraph_2node_hook_list * m_first_cgraph_duplicated_hook
Definition cgraph.h:2585
cgraph_node_hook_list * add_cgraph_insertion_hook(cgraph_node_hook hook, void *data)
Definition cgraph.cc:543
cgraph_node * next_function(cgraph_node *node)
Definition cgraph.h:3063
hash_table< section_name_hasher > * section_hash
Definition cgraph.h:2532
void output_weakrefs(void)
Definition cgraphunit.cc:2297
bool remove_unreachable_nodes(FILE *file)
Definition ipa.cc:310
void remove_cgraph_insertion_hook(cgraph_node_hook_list *entry)
Definition cgraph.cc:560
void unregister(symtab_node *node)
Definition cgraph.h:2871
cgraph_2node_hook_list * add_cgraph_duplication_hook(cgraph_2node_hook hook, void *data)
Definition cgraph.cc:613
void process_same_body_aliases(void)
Definition cgraphunit.cc:719
varpool_node_hook_list * m_first_varpool_removal_hook
Definition cgraph.h:2591
cgraph_node_hook_list * add_cgraph_removal_hook(cgraph_node_hook hook, void *data)
Definition cgraph.cc:489
clone_summary * m_clones
Definition cgraph.h:2550
hash_set< const cgraph_node * > cloned_nodes
Definition cgraph.h:2544
void initialize(void)
Definition cgraph.cc:428
cgraph_node * next_function_with_gimple_body(cgraph_node *node)
Definition cgraph.h:3088
int cgraph_max_summary_id
Definition cgraph.h:2495
void call_cgraph_insertion_hooks(cgraph_node *node)
Definition cgraph.cc:530
FILE * dump_file
Definition cgraph.h:2540
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:2545
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:2576
int cgraph_max_uid
Definition cgraph.h:2494
void dump_graphviz(FILE *f)
Definition symtab.cc:1043
bool cpp_implicit_aliases_done
Definition cgraph.h:2529
cgraph_node_hook_list * m_first_cgraph_removal_hook
Definition cgraph.h:2581
asm_node * finalize_toplevel_asm(tree asm_str)
Definition cgraph.h:2851
cgraph_node * create_empty(void)
Definition cgraph.cc:440
symtab_node * first_symbol(void)
Definition cgraph.h:2898
int cgraph_count
Definition cgraph.h:2493
cgraph_node * first_function(void)
Definition cgraph.h:3052
void call_cgraph_removal_hooks(cgraph_node *node)
Definition cgraph.cc:518
int max_unit
Definition cgraph.h:2520
vec< int > cgraph_released_summary_ids
Definition cgraph.h:2502
enum symtab_state state
Definition cgraph.h:2525
void remove_edge_removal_hook(cgraph_edge_hook_list *entry)
Definition cgraph.cc:465
cgraph_edge_hook_list * add_edge_removal_hook(cgraph_edge_hook hook, void *data)
Definition cgraph.cc:448
varpool_node * first_static_initializer(void)
Definition cgraph.h:2954
int assign_summary_id(cgraph_node *node)
Definition cgraph.h:2468
cgraph_node_hook_list * m_first_cgraph_insertion_hook
Definition cgraph.h:2587
symtab_node * nodes
Definition cgraph.h:2510
void dump(FILE *f)
Definition symtab.cc:1034
void register_symbol(symtab_node *node)
Definition cgraph.h:2833
void call_varpool_insertion_hooks(varpool_node *node)
Definition varpool.cc:123
varpool_node * first_defined_variable(void)
Definition cgraph.h:2987
int edges_max_uid
Definition cgraph.h:2498
void remove_cgraph_removal_hook(cgraph_node_hook_list *entry)
Definition cgraph.cc:506
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:2583
cgraph_node * first_function_with_gimple_body(void)
Definition cgraph.h:3074
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:601
void remove_edge_duplication_hook(cgraph_2edge_hook_list *entry)
Definition cgraph.cc:589
varpool_node * next_variable(varpool_node *node)
Definition cgraph.h:2938
void unlink_from_assembler_name_hash(symtab_node *node, bool with_clones)
Definition symtab.cc:203
friend struct cgraph_node
Definition cgraph.h:2252
void call_varpool_removal_hooks(varpool_node *node)
Definition varpool.cc:82
asm_node * asm_last_node
Definition cgraph.h:2512
hash_map< symtab_node *, symbol_priority_map > * init_priority_hash
Definition cgraph.h:2538
int edges_max_summary_id
Definition cgraph.h:2499
void remove_unreferenced_decls(void)
Definition varpool.cc:629
bool debug
Definition collect-utils.cc:34
struct basic_block_def * basic_block
Definition coretypes.h:355
struct rtx_def * rtx
Definition coretypes.h:57
optimize_size_level
Definition coretypes.h:460
@ OPTIMIZE_SIZE_BALANCED
Definition coretypes.h:464
@ OPTIMIZE_SIZE_NO
Definition coretypes.h:462
@ OPTIMIZE_SIZE_MAX
Definition coretypes.h:466
class edge_def * edge
Definition coretypes.h:352
tls_model
Definition coretypes.h:208
@ TLS_MODEL_NONE
Definition coretypes.h:209
node_frequency
Definition coretypes.h:267
@ NODE_FREQUENCY_NORMAL
Definition coretypes.h:275
@ NODE_FREQUENCY_UNLIKELY_EXECUTED
Definition coretypes.h:270
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
@ function
Definition logical-location.h:37
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:2166
int order
Definition cgraph.h:2168
asm_node * next
Definition cgraph.h:2164
static bool equal(symtab_node *n, const_tree t)
Definition cgraph.h:2606
static hashval_t hash(symtab_node *n)
Definition cgraph.h:2599
const_tree compare_type
Definition cgraph.h:2232
static bool equal(cgraph_edge *, gimple *)
Definition cgraph.cc:849
static hashval_t hash(cgraph_edge *)
Definition cgraph.cc:829
gimple * compare_type
Definition cgraph.h:877
cgraph_node * this_node
Definition cgraph.h:838
cgraph_function_version_info * next
Definition cgraph.h:846
cgraph_function_version_info * prev
Definition cgraph.h:842
tree dispatcher_resolver
Definition cgraph.h:856
hash_map< cgraph_node *, size_t > * map
Definition cgraph.h:1541
vec< cgraph_node * > nodes
Definition cgraph.h:1542
cgraph_node_set set
Definition cgraph.h:1561
unsigned index
Definition cgraph.h:1562
static cgraph_node * get(const_tree decl)
Definition cgraph.h:1362
cgraph_edge * indirect_calls
Definition cgraph.h:1419
void scale_profile_to(profile_count ipa_count)
Definition cgraph.cc:286
unsigned only_called_at_startup
Definition cgraph.h:1473
cgraph_node()
Definition cgraph.h:892
void DEBUG_FUNCTION debug(void)
Definition cgraph.cc:2508
void create_wrapper(cgraph_node *target)
Definition cgraphunit.cc:2631
struct cgraph_rtl_info * rtl
Definition cgraph.h:1445
bool can_remove_if_no_direct_calls_p(bool will_inline=false)
Definition cgraph.cc:3229
static void dump_cgraph(FILE *f)
Definition cgraph.cc:2516
enum node_frequency frequency
Definition cgraph.h:1471
void make_local(void)
Definition cgraph.cc:2692
enum availability get_availability(symtab_node *ref=NULL)
Definition cgraph.cc:2538
unsigned split_part
Definition cgraph.h:1499
unsigned nonfreeing_fn
Definition cgraph.h:1491
bool former_thunk_p(void)
Definition cgraph.cc:4485
void DEBUG_FUNCTION verify_node(void)
Definition cgraph.cc:3681
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:767
int count_materialization_scale
Definition cgraph.h:1451
unsigned int profile_id
Definition cgraph.h:1453
cgraph_edge * create_edge(cgraph_node *callee, gcall *call_stmt, profile_count count, bool cloning_p=false)
Definition cgraph.cc:1098
unsigned thunk
Definition cgraph.h:1460
void analyze(void)
Definition cgraphunit.cc:626
cgraph_function_version_info * insert_new_function_version(void)
Definition cgraph.cc:320
bool set_const_flag(bool set_const, bool looping)
Definition cgraph.cc:3020
unsigned tm_clone
Definition cgraph.h:1480
bool can_remove_if_no_direct_calls_and_refs_p(void)
Definition cgraph.h:3161
bool get_body()
Definition cgraph.cc:4310
unsigned lowered
Definition cgraph.h:1465
int unit_id
Definition cgraph.h:1455
cgraph_edge * callers
Definition cgraph.h:1416
void set_call_stmt_including_clones(gimple *old_stmt, gcall *new_stmt, bool update_speculative=true)
Definition cgraphclones.cc:785
void expand_all_artificial_thunks()
Definition cgraphclones.cc:288
void remove(void)
Definition cgraph.cc:2039
unsigned icf_merged
Definition cgraph.h:1487
cgraph_node * next_sibling_clone
Definition cgraph.h:1420
cgraph_node * find_replacement(struct clone_info *)
Definition cgraphclones.cc:690
void remove_callees(void)
Definition cgraph.cc:1901
static void checking_verify_cgraph_nodes(void)
Definition cgraph.h:3185
cgraph_node * clones
Definition cgraph.h:1422
unsigned can_change_signature
Definition cgraph.h:1509
static void DEBUG_FUNCTION verify_cgraph_nodes(void)
Definition cgraph.cc:4170
static void add_function_version(cgraph_function_version_info *fn_v, tree decl)
Definition cgraph.cc:373
cgraph_node * get_alias_target(void)
Definition cgraph.h:3233
bool check_calls_comdat_local_p()
Definition cgraph.cc:4472
static cgraph_node * create_same_body_alias(tree alias, tree decl)
Definition cgraph.cc:742
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:4219
bool has_gimple_body_p(void)
Definition cgraph.h:3112
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:4407
void remove_from_clone_tree()
Definition cgraphclones.cc:1134
unsigned calls_comdat_local
Definition cgraph.h:1485
cgraph_node * inlined_to
Definition cgraph.h:1443
cgraph_edge * create_indirect_edge(gcall *call_stmt, int ecf_flags, profile_count count, bool cloning_p=false)
Definition cgraph.cc:1138
friend class symbol_table
Definition cgraph.h:889
void make_profile_local()
Definition cgraph.cc:184
bool local_p(void)
Definition ipa-visibility.cc:113
cgraph_node * clone_of
Definition cgraph.h:1423
bool cannot_return_p(void)
Definition cgraph.cc:3117
static void delete_function_version_by_decl(tree decl)
Definition cgraph.cc:357
void dump(FILE *f)
Definition cgraph.cc:2291
priority_type get_fini_priority(void)
Definition symtab.cc:1842
bool set_malloc_flag(bool malloc_p)
Definition cgraph.cc:2787
bool call_for_symbol_and_aliases(bool(*callback)(cgraph_node *, void *), void *data, bool include_overwritable)
Definition cgraph.h:3448
unsigned gc_candidate
Definition cgraph.h:1520
void apply_scale(profile_count num, profile_count den)
Definition cgraph.cc:264
cgraph_node * function_symbol(enum availability *avail=NULL, struct symtab_node *ref=NULL)
Definition cgraph.cc:4192
struct function * get_fun() const
Definition cgraph.cc:4352
void mark_force_output(void)
Definition cgraph.h:3379
void create_edge_including_clones(cgraph_node *callee, gimple *old_stmt, gcall *stmt, profile_count count, cgraph_inline_failed_t reason)
Definition cgraphclones.cc:845
unsigned only_called_at_exit
Definition cgraph.h:1475
void dump_graphviz(FILE *f)
Definition cgraph.cc:2492
void release_body(bool keep_arguments=false)
Definition cgraph.cc:2002
profile_count count
Definition cgraph.h:1448
static cgraph_node * get_create(tree)
Definition cgraph.cc:685
bool set_nothrow_flag(bool nothrow)
Definition cgraph.cc:2739
cgraph_simd_clone * simdclone
Definition cgraph.h:1432
unsigned called_by_ifunc_resolver
Definition cgraph.h:1522
bool set_noreturn_flag(bool noreturn_p)
Definition cgraph.cc:2882
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:1029
void expand(void)
Definition cgraphunit.cc:1812
vec< ipa_opt_pass, va_heap, vl_ptr > ipa_transforms_to_apply
Definition cgraph.h:1439
static cgraph_node * create_alias(tree alias, tree target)
Definition cgraph.cc:716
cgraph_edge * callees
Definition cgraph.h:1415
bool remove_symbol_and_inline_clones(cgraph_node *forbidden_node=NULL)
Definition cgraphclones.cc:898
hash_table< cgraph_edge_hasher > * call_site_hash
Definition cgraph.h:1426
unsigned indirect_call_target
Definition cgraph.h:1501
bool call_for_symbol_and_aliases_1(bool(*callback)(cgraph_node *, void *), void *data, bool include_overwritable)
Definition cgraph.cc:4386
bool only_called_directly_p(void)
Definition cgraph.cc:3360
void assemble_thunks_and_aliases(void)
Definition cgraphunit.cc:1769
unsigned ipcp_clone
Definition cgraph.h:1516
cgraph_function_version_info * function_version(void)
Definition cgraph.cc:171
static void finalize_function(tree, bool)
Definition cgraphunit.cc:450
bool can_be_local_p(void)
Definition cgraph.cc:2612
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:2624
unsigned merged_comdat
Definition cgraph.h:1493
static cgraph_node * local_info_node(tree decl)
Definition cgraph.cc:2176
void materialize_clone(void)
Definition cgraphclones.cc:1150
unsigned parallelized_function
Definition cgraph.h:1497
static void debug_cgraph(void)
Definition cgraph.h:1329
unsigned versionable
Definition cgraph.h:1506
int m_summary_id
Definition cgraph.h:1529
unsigned has_omp_variant_constructs
Definition cgraph.h:1524
auto_vec< cgraph_edge * > collect_callers(void)
Definition cgraph.cc:3390
cgraph_node * prev_sibling_clone
Definition cgraph.h:1421
cgraph_edge * get_edge(gimple *call_stmt)
Definition cgraph.cc:892
unsigned local
Definition cgraph.h:1504
unsigned process
Definition cgraph.h:1468
void make_profile_global0(profile_quality quality)
Definition cgraph.cc:206
void mark_address_taken(void)
Definition cgraph.cc:2152
unsigned redefined_extern_inline
Definition cgraph.h:1512
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:598
int tp_first_run
Definition cgraph.h:1457
static cgraph_node * create(tree decl)
Definition cgraph.cc:656
bool will_be_removed_from_program_if_no_direct_calls_p(bool will_inline=false)
Definition cgraph.cc:3301
tree former_clone_of
Definition cgraph.h:1428
bool get_untransformed_body()
Definition cgraph.cc:4241
bool only_called_directly_or_aliased_p(void)
Definition cgraph.h:3144
cgraph_node * create_version_clone(tree new_decl, vec< cgraph_edge * > redirect_callers, bitmap bbs_to_copy, const char *suffix=NULL)
Definition cgraphclones.cc:951
cgraph_node * ultimate_alias_target(availability *availability=NULL, symtab_node *ref=NULL)
Definition cgraph.h:3273
static cgraph_node * get_for_asmname(tree asmname)
Definition cgraph.cc:812
cgraph_node * simd_clones
Definition cgraph.h:1434
unsigned merged_extern_inline
Definition cgraph.h:1495
bool add_detected_attribute(const char *attr)
Definition cgraph.cc:2835
int get_summary_id()
Definition cgraph.h:1335
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:382
void set_fini_priority(priority_type priority)
Definition symtab.cc:1895
unsigned dispatcher_function
Definition cgraph.h:1482
enum optimize_size_level optimize_for_size_p(void)
Definition cgraph.h:3388
bool set_pure_flag(bool pure, bool looping)
Definition cgraph.cc:3103
void remove_callers(void)
Definition cgraph.cc:1938
unsigned used_as_abstract_origin
Definition cgraph.h:1463
unsigned tm_may_enter_irr
Definition cgraph.h:1514
static struct cgraph_rtl_info * rtl_info(const_tree)
Definition cgraph.cc:2188
unsigned int alignment
Definition cgraph.h:786
tree orig_arg
Definition cgraph.h:755
HOST_WIDE_INT linear_step
Definition cgraph.h:792
enum cgraph_simd_clone_arg_type arg_type
Definition cgraph.h:783
tree orig_type
Definition cgraph.h:759
tree vector_arg
Definition cgraph.h:767
tree vector_type
Definition cgraph.h:770
tree simd_array
Definition cgraph.h:779
cgraph_node * next_clone
Definition cgraph.h:826
poly_uint64 vecsize_int
Definition cgraph.h:806
unsigned int inbranch
Definition cgraph.h:823
poly_uint64 vecsize_float
Definition cgraph.h:809
machine_mode mask_mode
Definition cgraph.h:814
cgraph_simd_clone_arg args[1]
Definition cgraph.h:832
cgraph_node * prev_clone
Definition cgraph.h:826
poly_uint64 simdlen
Definition cgraph.h:799
cgraph_node * origin
Definition cgraph.h:829
unsigned int nargs
Definition cgraph.h:803
unsigned char vecsize_mangle
Definition cgraph.h:819
Definition symtab-clones.h:25
hashval_t hash
Definition cgraph.h:3136
rtx rtl
Definition cgraph.h:3128
tree value
Definition cgraph.h:3131
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:3488
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:728
tree new_tree
Definition cgraph.h:722
int parm_num
Definition cgraph.h:724
Definition lto-streamer.h:567
Definition lto-streamer.h:709
Definition profile-count.h:770
static profile_count zero()
Definition profile-count.h:818
int ref_count
Definition cgraph.h:54
char * name
Definition cgraph.h:55
const char * compare_type
Definition cgraph.h:62
static hashval_t hash(section_hash_entry *)
Definition symtab.cc:359
static bool equal(section_hash_entry *, const char *)
Definition symtab.cc:367
priority_type fini
Definition cgraph.h:2206
priority_type init
Definition cgraph.h:2205
static bool set_implicit_section(symtab_node *n, void *)
Definition symtab.cc:1913
unsigned in_init_priority_hash
Definition cgraph.h:597
void dump_graphviz(FILE *f)
Definition symtab.cc:1027
struct lto_file_decl_data * lto_file_data
Definition cgraph.h:644
symtab_node * get_alias_target(void)
Definition cgraph.h:2720
tree get_alias_target_tree()
Definition cgraph.h:2732
unsigned used_from_other_partition
Definition cgraph.h:584
const char * get_visibility_string() const
Definition symtab.cc:875
tree get_comdat_group_id()
Definition cgraph.h:253
tree x_comdat_group
Definition cgraph.h:649
void add_to_same_comdat_group(symtab_node *old_node)
Definition symtab.cc:489
tree alias_target
Definition cgraph.h:641
bool native_rtl_p() const
Definition cgraphunit.cc:227
ipa_ref * iterate_reference(unsigned i, ipa_ref *&ref)
Definition cgraph.h:2756
void dump(FILE *f)
Definition symtab.cc:1018
unsigned weakref
Definition cgraph.h:536
symtab_node * next
Definition cgraph.h:617
unsigned address_taken
Definition cgraph.h:595
bool address_matters_p()
Definition symtab.cc:2451
unsigned definition
Definition cgraph.h:509
static symtab_node * get(const_tree decl)
Definition cgraph.h:460
bool referred_to_p(bool include_self=true)
Definition cgraphunit.cc:424
priority_type get_init_priority()
Definition symtab.cc:1830
unsigned num_references(void)
Definition cgraph.h:225
ipa_ref * clone_reference(ipa_ref *ref, gimple *stmt)
Definition symtab.cc:737
void clone_references(symtab_node *node)
Definition symtab.cc:697
bool output_to_lto_symbol_table_p(void)
Definition symtab.cc:2635
const char * dump_asm_name() const
Definition symtab.cc:593
section_hash_entry * x_section
Definition cgraph.h:652
unsigned externally_visible
Definition cgraph.h:558
static DEBUG_FUNCTION void verify_symtab_nodes(void)
Definition symtab.cc:1467
void copy_visibility_from(symtab_node *n)
Definition symtab.cc:1584
bool has_aliases_p(void)
Definition cgraph.h:2789
struct symbol_priority_map * priority_info(void)
Definition symtab.cc:1855
const char * get_dump_name(bool asm_name_p) const
Definition symtab.cc:574
void unregister(struct clone_info *)
Definition symtab.cc:446
unsigned unique_name
Definition cgraph.h:569
void DEBUG_FUNCTION debug(void)
Definition symtab.cc:1083
void set_section(const char *section)
Definition symtab.cc:1813
const char * get_section() const
Definition cgraph.h:269
unsigned need_lto_streaming
Definition cgraph.h:601
symtab_node * next_defined_symbol(void)
Definition cgraph.h:2742
unsigned cpp_implicit_alias
Definition cgraph.h:543
void set_comdat_group(tree group)
Definition cgraph.h:261
void dump_base(FILE *)
Definition symtab.cc:892
void DEBUG_FUNCTION verify(void)
Definition symtab.cc:1355
bool call_for_symbol_and_aliases_1(bool(*callback)(symtab_node *, void *), void *data, bool include_overwrite)
Definition symtab.cc:2411
const char * name() const
Definition symtab.cc:561
void clear_stmts_in_references(void)
Definition symtab.cc:795
static void check_ifunc_callee_symtab_nodes(void)
Definition symtab.cc:1435
unsigned forced_by_abi
Definition cgraph.h:567
ipa_ref * find_reference(symtab_node *referred_node, gimple *stmt, unsigned int lto_stmt_uid, enum ipa_ref_use use_type)
Definition symtab.cc:755
enum availability get_availability(symtab_node *ref=NULL)
Definition cgraph.h:3415
void set_section_for_node(const char *section)
Definition symtab.cc:1737
symtab_node * ultimate_alias_target_1(enum availability *avail=NULL, symtab_node *ref=NULL)
Definition symtab.cc:1639
void remove_from_same_comdat_group(void)
Definition symtab.cc:423
friend class symbol_table
Definition cgraph.h:108
ipa_ref * maybe_create_reference(tree val, gimple *stmt)
Definition symtab.cc:666
int get_uid() const
Definition cgraph.h:494
symtab_node * same_comdat_group
Definition cgraph.h:633
void remove_all_references(void)
Definition symtab.cc:819
bool prevailing_p(void)
Definition cgraph.h:3591
unsigned no_reorder
Definition cgraph.h:560
void * aux
Definition cgraph.h:646
int equal_address_to(symtab_node *s2, bool memory_accessed=false)
Definition symtab.cc:2299
unsigned transparent_alias
Definition cgraph.h:534
unsigned implicit_section
Definition cgraph.h:572
bool address_can_be_compared_p(void)
Definition cgraph.cc:149
enum ld_plugin_symbol_resolution resolution
Definition cgraph.h:503
void clone_referring(symtab_node *node)
Definition symtab.cc:717
bool resolve_alias(symtab_node *target, bool transparent=false)
Definition symtab.cc:1925
symtab_node * previous_sharing_asm_name
Definition cgraph.h:630
bool can_be_discarded_p(void)
Definition cgraph.h:408
void remove_stmt_references(gimple *stmt)
Definition symtab.cc:776
unsigned semantic_interposition
Definition cgraph.h:577
static symtab_node * get_for_asmname(const_tree asmname)
Definition symtab.cc:1062
static symtab_node * get_create(tree node)
Definition cgraph.h:3404
unsigned refuse_visibility_changes
Definition cgraph.h:553
ipa_ref * create_reference(symtab_node *referred_node, enum ipa_ref_use use_type)
Definition symtab.cc:603
void dump_references(FILE *file)
Definition symtab.cc:839
enum symbol_partitioning_class get_partitioning_class(void)
Definition symtab.cc:2154
tree decl
Definition cgraph.h:614
void dissolve_same_comdat_group_list(void)
Definition symtab.cc:524
enum symtab_type type
Definition cgraph.h:500
unsigned symver
Definition cgraph.h:545
unsigned alias
Definition cgraph.h:512
symtab_node * previous
Definition cgraph.h:618
void make_decl_local(void)
Definition symtab.cc:1519
bool binds_to_current_def_p(symtab_node *ref=NULL)
Definition symtab.cc:2578
ipa_ref * iterate_direct_aliases(unsigned i, ipa_ref *&ref)
Definition cgraph.h:2776
bool semantically_equivalent_p(symtab_node *target)
Definition symtab.cc:2120
void remove_all_referring(void)
Definition symtab.cc:829
int order
Definition cgraph.h:611
void reset(bool preserve_comdat_group=false)
Definition cgraphunit.cc:391
unsigned offloadable
Definition cgraph.h:604
void fixup_same_cpp_alias_visibility(symtab_node *target)
Definition symtab.cc:1701
bool in_same_comdat_group_p(symtab_node *target)
Definition cgraph.h:2699
const char * dump_name() const
Definition symtab.cc:587
static bool set_section_from_node(symtab_node *n, void *o)
Definition symtab.cc:1803
unsigned writeonly
Definition cgraph.h:550
const char * asm_name() const
Definition symtab.cc:551
unsigned int definition_alignment()
Definition symtab.cc:2552
void dump_referring(FILE *)
Definition symtab.cc:856
unsigned body_removed
Definition cgraph.h:575
symtab_node * noninterposable_alias(void)
Definition symtab.cc:2043
static void checking_verify_symtab_nodes(void)
Definition cgraph.h:697
ipa_ref_list ref_list
Definition cgraph.h:636
bool DEBUG_FUNCTION verify_base(void)
Definition symtab.cc:1100
unsigned force_output
Definition cgraph.h:563
static bool set_section_from_string(symtab_node *n, void *s)
Definition symtab.cc:1793
void register_symbol(void)
Definition symtab.cc:406
tree get_comdat_group()
Definition cgraph.h:247
symtab_node * ultimate_alias_target(enum availability *avail=NULL, struct symtab_node *ref=NULL)
Definition cgraph.h:3253
const char * get_symtab_type_string() const
Definition symtab.cc:884
bool real_symbol_p(void)
Definition cgraph.h:2671
unsigned analyzed
Definition cgraph.h:548
bool nonzero_address()
Definition symtab.cc:2285
void remove(void)
Definition symtab.cc:478
bool call_for_symbol_and_aliases(bool(*callback)(symtab_node *, void *), void *data, bool include_overwrite)
Definition cgraph.h:3427
int m_uid
Definition cgraph.h:676
symtab_node(symtab_type t)
Definition cgraph.h:111
bool comdat_local_p(void)
Definition cgraph.h:424
bool needed_p(void)
Definition cgraphunit.cc:240
unsigned in_other_partition
Definition cgraph.h:588
ipa_ref * iterate_referring(unsigned i, ipa_ref *&ref)
Definition cgraph.h:2766
symtab_node * next_sharing_asm_name
Definition cgraph.h:629
void set_init_priority(priority_type priority)
Definition symtab.cc:1876
bool used_from_object_file_p(void)
Definition cgraph.h:2812
bool can_increase_alignment_p()
Definition symtab.cc:2460
unsigned ifunc_resolver
Definition cgraph.h:607
Definition symtab-thunks.h:36
static bool equal(constant_descriptor_tree *, constant_descriptor_tree *)
Definition varasm.cc:3444
static hashval_t hash(constant_descriptor_tree *)
Definition varasm.cc:3321
hash_map< varpool_node *, size_t > * map
Definition cgraph.h:1554
vec< varpool_node * > nodes
Definition cgraph.h:1555
varpool_node_set set
Definition cgraph.h:1568
unsigned index
Definition cgraph.h:1569
bool can_remove_if_no_refs_p(void)
Definition cgraph.h:3195
static void dump_varpool(FILE *f)
Definition varpool.cc:248
void remove_initializer(void)
Definition varpool.cc:196
static varpool_node * create_extra_name_alias(tree alias, tree decl)
Definition varpool.cc:796
void dump(FILE *f)
Definition varpool.cc:214
bool call_for_symbol_and_aliases_1(bool(*callback)(varpool_node *, void *), void *data, bool include_overwritable)
Definition varpool.cc:819
bool externally_visible_p(void)
Definition ipa-visibility.cc:263
void analyze(void)
Definition varpool.cc:522
static varpool_node * create_empty(void)
Definition varpool.cc:136
void DEBUG_FUNCTION debug(void)
Definition varpool.cc:241
static varpool_node * get_create(tree decl)
Definition varpool.cc:143
static varpool_node * get_for_asmname(tree asmname)
Definition varpool.cc:267
bool call_for_symbol_and_aliases(bool(*callback)(varpool_node *, void *), void *data, bool include_overwritable)
Definition cgraph.h:3469
unsigned output
Definition cgraph.h:2136
varpool_node()
Definition cgraph.h:2028
varpool_node * ultimate_alias_target(availability *availability=NULL, symtab_node *ref=NULL)
Definition cgraph.h:3290
static varpool_node * create_alias(tree, tree)
Definition varpool.cc:776
static void add(tree decl)
Definition varpool.cc:474
tree get_constructor(void)
Definition varpool.cc:279
varpool_node * get_alias_target(void)
Definition cgraph.h:3241
static varpool_node * get(const_tree decl)
Definition cgraph.h:2824
bool assemble_decl(void)
Definition varpool.cc:564
bool all_refs_explicit_p()
Definition cgraph.h:3213
void assemble_aliases(void)
Definition varpool.cc:544
static void finalize_decl(tree decl)
Definition cgraphunit.cc:966
availability get_availability(symtab_node *ref=NULL)
Definition varpool.cc:489
enum tls_model tls_model
Definition cgraph.h:2142
bool ctor_useable_for_folding_p(void)
Definition varpool.cc:323
void remove(void)
Definition varpool.cc:172
unsigned dynamically_initialized
Definition cgraph.h:2140
unsigned used_by_single_function
Definition cgraph.h:2148
static void DEBUG_FUNCTION debug_varpool(void)
Definition varpool.cc:260
void finalize_named_section_flags(void)
Definition varpool.cc:719
#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:1086
use_type
Definition tree-ssa-loop-ivopts.cc:194
static void mark_address_taken(tree ref)
Definition tree-ssa-operands.cc:619
static unsigned int increase_alignment(void)
Definition tree-vectorizer.cc:1714
#define DECL_ASSEMBLER_NAME(NODE)
Definition tree.h:3284
#define DECL_HAS_VALUE_EXPR_P(NODE)
Definition tree.h:3047
#define DECL_SECTION_NAME(NODE)
Definition tree.h:3321
#define DECL_STATIC_CONSTRUCTOR(NODE)
Definition tree.h:3524
#define TYPE_MAIN_VARIANT(NODE)
Definition tree.h:2342
#define DECL_WEAK(NODE)
Definition tree.h:3251
#define DECL_STATIC_DESTRUCTOR(NODE)
Definition tree.h:3527
#define TREE_CODE(NODE)
Definition tree.h:325
#define DECL_ABSTRACT_P(NODE)
Definition tree.h:2950
#define DECL_COMDAT(NODE)
Definition tree.h:3266
#define opt_for_fn(fndecl, opt)
Definition tree.h:6304
#define DECL_INITIAL(NODE)
Definition tree.h:2870
#define TREE_STATIC(NODE)
Definition tree.h:773
#define DECL_COMMON(NODE)
Definition tree.h:3242
#define DECL_EXTERNAL(NODE)
Definition tree.h:2964
#define TREE_PUBLIC(NODE)
Definition tree.h:858
#define DECL_VIRTUAL_P(NODE)
Definition tree.h:2979
#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