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); \
864#define DEFCIFCODE(code, type, string) CIF_ ## code,
868#include "cif-code.def"
906 unit_id (0), tp_first_run (0), thunk (
false),
907 used_as_abstract_origin (
false),
909 only_called_at_startup (
false), only_called_at_exit (
false),
910 tm_clone (
false), dispatcher_function (
false),
911 dispatcher_resolver_function (
false), is_target_clone (
false),
912 calls_comdat_local (
false),
914 merged_extern_inline (
false), parallelized_function (
false),
916 versionable (
false), can_change_signature (
false),
917 redefined_extern_inline (
false), tm_may_enter_irr (
false),
919 called_by_ifunc_resolver (
false), has_omp_variant_constructs (
false),
927 bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node =
NULL);
931 void record_stmt_references (gimple *stmt);
938 void set_call_stmt_including_clones (gimple *old_stmt, gcall *new_stmt,
939 bool update_speculative =
true);
947 struct symtab_node *ref =
NULL);
955 cgraph_node *function_or_virtual_thunk_symbol
957 struct symtab_node *ref =
NULL);
979 cgraph_node *create_clone (
tree decl, profile_count
count,
980 bool update_original,
981 vec<cgraph_edge *> redirect_callers,
982 bool call_duplication_hook,
983 cgraph_node *new_inlined_to,
984 ipa_param_adjustments *param_adjustments,
990 cgraph_node *create_virtual_clone (
const vec<cgraph_edge *> &redirect_callers,
991 vec<ipa_replace_map *, va_gc> *tree_map,
992 ipa_param_adjustments *param_adjustments,
993 const char * suffix,
unsigned num_suffix);
997 void remove_from_clone_tree ();
1016 cgraph_node *create_version_clone (
tree new_decl,
1017 vec<cgraph_edge *> redirect_callers,
1019 const char *suffix =
NULL);
1048 cgraph_node *create_version_clone_with_body
1049 (vec<cgraph_edge *> redirect_callers,
1050 vec<ipa_replace_map *, va_gc> *tree_map,
1051 ipa_param_adjustments *param_adjustments,
1053 tree target_attributes =
NULL_TREE,
bool version_decl =
true);
1057 cgraph_function_version_info *insert_new_function_version (
void);
1060 cgraph_function_version_info *function_version (
void);
1064 void analyze (
void);
1069 cgraph_node * create_thunk (
tree alias,
tree,
bool this_adjusting,
1070 HOST_WIDE_INT fixed_offset,
1071 HOST_WIDE_INT virtual_value,
1072 HOST_WIDE_INT indirect_offset,
1073 tree virtual_offset,
1078 inline cgraph_node *get_alias_target (
void);
1087 symtab_node *ref =
NULL);
1091 void expand_all_artificial_thunks ();
1094 void assemble_thunks_and_aliases (
void);
1101 void create_wrapper (cgraph_node *target);
1110 void dump (FILE *f);
1113 void dump_graphviz (FILE *f);
1120 bool get_untransformed_body ();
1127 void materialize_clone (
void);
1133 void release_body (
bool keep_arguments =
false);
1139 void make_local (
void);
1151 cgraph_edge *create_edge (cgraph_node *callee,
1152 gcall *call_stmt, profile_count
count,
1153 bool cloning_p =
false);
1158 cgraph_edge *create_indirect_edge (gcall *call_stmt,
int ecf_flags,
1159 profile_count
count,
1160 bool cloning_p =
false);
1165 void create_edge_including_clones (cgraph_node *callee,
1166 gimple *old_stmt, gcall *stmt,
1167 profile_count
count,
1172 cgraph_edge *get_edge (gimple *call_stmt);
1176 auto_vec<cgraph_edge *> collect_callers (
void);
1179 void remove_callers (
void);
1182 void remove_callees (
void);
1190 bool set_nothrow_flag (
bool nothrow);
1194 bool set_malloc_flag (
bool malloc_p);
1198 bool set_noreturn_flag (
bool noreturn_p);
1209 bool set_const_flag (
bool set_const,
bool looping);
1217 bool set_pure_flag (
bool pure,
bool looping);
1221 bool add_detected_attribute (
const char *attr);
1227 bool call_for_symbol_and_aliases (
bool (*callback) (cgraph_node *,
1229 void *data,
bool include_overwritable);
1235 bool call_for_symbol_thunks_and_aliases (
bool (*callback) (cgraph_node *node,
1238 bool include_overwritable,
1239 bool exclude_virtual_thunks =
false);
1243 inline void mark_force_output (
void);
1246 bool local_p (
void);
1252 bool can_be_local_p (
void);
1256 bool cannot_return_p (
void);
1262 bool only_called_directly_p (
void);
1265 void make_profile_local ();
1271 void apply_scale (profile_count num, profile_count den);
1277 void scale_profile_to (profile_count ipa_count);
1282 inline bool only_called_directly_or_aliased_p (
void);
1300 bool will_be_removed_from_program_if_no_direct_calls_p
1301 (
bool will_inline =
false);
1306 bool can_remove_if_no_direct_calls_and_refs_p (
void);
1312 bool can_remove_if_no_direct_calls_p (
bool will_inline =
false);
1319 inline bool has_gimple_body_p (
void);
1322 bool former_thunk_p (
void);
1326 bool check_calls_comdat_local_p ();
1332 static void dump_cgraph (FILE *f);
1353 static void delete_function_version_by_decl (
tree decl);
1368 static void add_new_function (
tree fndecl,
bool lowered);
1381 static void finalize_function (
tree,
bool);
1411 static inline void checking_verify_cgraph_nodes (
void);
1414 static bool make_local (
cgraph_node *node,
void *);
1549 void *
data,
bool include_overwritable);
1621 HOST_WIDE_INT
offset = 0);
1650 bool consider_placement_new =
true,
1651 bool consider_bases =
true);
1672 void dump (FILE *f,
bool newline =
true)
const;
1731class GTY((chain_next (
"%h.next_caller"), chain_prev (
"%h.prev_caller"),
1746 bool update_speculative =
true);
1806 if (e->next_callee && e->next_callee->speculative
1807 && e->next_callee->call_stmt == e->call_stmt
1808 && e->next_callee->lto_stmt_uid == e->lto_stmt_uid)
1809 return e->next_callee;
1821 true; e2 = e2->next_callee)
1842 for (
unsigned int i = 0;
caller->iterate_reference (
i, ref);
i++)
1889 *killed_ssas =
nullptr);
1895 bool update_original);
1898 bool verify_count ();
1903 bool cannot_lead_to_return_p (
void);
1906 bool recursive_p (
void);
1909 bool maybe_hot_p ();
1923 inline int get_summary_id ()
1925 return m_summary_id;
1930 static unsigned int rebuild_edges (
void);
1934 static void rebuild_references (
void);
1938 bool possibly_call_in_translation_unit_p (
void);
2039#define CGRAPH_FREQ_BASE 1000
2040#define CGRAPH_FREQ_MAX 100000
2054 void dump (FILE *f);
2102 bool include_overwritable);
2177 bool include_overwritable);
2293 void initialize (
void);
2299 void finalize_compilation_unit (
void);
2306 void process_same_body_aliases (
void);
2309 void compile (
void);
2314 void process_new_functions (
void);
2327 bool remove_unreachable_nodes (FILE *file);
2333 void remove_unreferenced_decls (
void);
2345 bool output_variables (
void);
2349 void output_weakrefs (
void);
2383 inline cgraph_node *first_defined_function (
void);
2395 cgraph_node *first_function_with_gimple_body (
void);
2452 void call_cgraph_insertion_hooks (
cgraph_node *node);
2455 void call_cgraph_removal_hooks (
cgraph_node *node);
2467 void call_varpool_insertion_hooks (
varpool_node *node);
2470 void symtab_prevail_in_asm_name_hash (
symtab_node *node);
2473 void symtab_initialize_asm_name_hash (
void);
2479 void dump (FILE *f);
2482 void dump_graphviz (FILE *f);
2501 if (!edge_released_summary_ids.is_empty ())
2502 edge->m_summary_id = edge_released_summary_ids.pop ();
2504 edge->m_summary_id = edges_max_summary_id++;
2506 return edge->m_summary_id;
2579 bool indir_unknown_callee,
bool cloning_p);
2660 unsigned long number);
2662 unsigned long number);
2665 bool filter_suffix =
false);
2668 ipa_param_adjustments *,
2672 const cgraph_node *clone,
2673 const char *suffix);
2728 source = cn->inlined_to;
2733 target = cn->inlined_to;
2768 for (; node1; node1 = node1->
next)
2824 return (resolution == LDPR_PREVAILING_DEF
2825 || resolution == LDPR_PREEMPTED_REG
2826 || resolution == LDPR_RESOLVED_EXEC
2827 || resolution == LDPR_RESOLVED_DYN);
2861 nodes->previous = node;
2866 if (node->
order == -1)
2926#define FOR_EACH_SYMBOL(node) \
2927 for ((node) = symtab->first_symbol (); (node); (node) = (node)->next)
2935 for (node =
nodes; node; node = node->
next)
2943#define FOR_EACH_DEFINED_SYMBOL(node) \
2944 for ((node) = symtab->first_defined_symbol (); (node); \
2945 (node) = node->next_defined_symbol ())
2952 for (node =
nodes; node; node = node->
next)
2963 for (; node1; node1 = node1->
next)
2969#define FOR_EACH_VARIABLE(node) \
2970 for ((node) = symtab->first_variable (); \
2972 (node) = symtab->next_variable ((node)))
2979 for (node =
nodes; node; node = node->
next)
2993 for (; node1; node1 = node1->
next)
3003#define FOR_EACH_STATIC_INITIALIZER(node) \
3004 for ((node) = symtab->first_static_initializer (); (node); \
3005 (node) = symtab->next_static_initializer (node))
3012 for (node =
nodes; node; node = node->
next)
3026 for (; node1; node1 = node1->
next)
3035#define FOR_EACH_DEFINED_VARIABLE(node) \
3036 for ((node) = symtab->first_defined_variable (); (node); \
3037 (node) = symtab->next_defined_variable (node))
3044 for (node =
nodes; node; node = node->
next)
3058 for (; node1; node1 = node1->
next)
3068#define FOR_EACH_DEFINED_FUNCTION(node) \
3069 for ((node) = symtab->first_defined_function (); (node); \
3070 (node) = symtab->next_defined_function ((node)))
3077 for (node =
nodes; node; node = node->
next)
3088 for (; node1; node1 = node1->
next)
3099 for (node =
nodes; node; node = node->
next)
3113 for (; node1; node1 = node1->
next)
3123#define FOR_EACH_FUNCTION(node) \
3124 for ((node) = symtab->first_function (); (node); \
3125 (node) = symtab->next_function ((node)))
3128#define FOR_EACH_FUNCTION_REMOVABLE(node) \
3129 cgraph_node *next; \
3130 for ((node) = symtab->first_function (), \
3131 next = (node) ? symtab->next_function ((node)) : NULL; (node); \
3132 (node) = next, next = (node) ? symtab->next_function ((node)) : NULL)
3147#define FOR_EACH_FUNCTION_WITH_GIMPLE_BODY(node) \
3148 for ((node) = symtab->first_function_with_gimple_body (); (node); \
3149 (node) = symtab->next_function_with_gimple_body (node))
3338 n->callers->prev_caller =
this;
3351 return caller->inlined_to->decl == c->decl;
3353 return caller->decl == c->decl;
3388 return count.to_cgraph_frequency (
caller->inlined_to
3389 ?
caller->inlined_to->count
3459 bool include_overwritable)
3461 if (include_overwritable
3464 if (callback (
this,
data))
3480 bool include_overwritable)
3482 if (include_overwritable
3485 if (callback (
this,
data))
3501 bool include_overwritable)
3503 if (include_overwritable
3506 if (callback (
this,
data))
3525 return referred->address_can_be_compared_p ();
3534 *
this = e->indirect_info->context;
3635class symbol_table_test
3639 symbol_table_test ();
3642 ~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:1866
bool cgraph_function_possibly_inlined_p(tree decl)
Definition cgraph.cc:2527
symbol_table * symtab
Definition cgraph.cc:81
cgraph_inline_failed_type_t cgraph_inline_failed_type(cgraph_inline_failed_t reason)
Definition cgraph.cc:2230
cgraph_indirect_call_info * cgraph_allocate_init_indirect_info(void)
Definition cgraph.cc:1123
const char *const cgraph_availability_names[]
Definition cgraph.cc:2246
void release_function_body(tree decl)
Definition cgraph.cc:1959
symbol_table * saved_symtab
Definition cgraph.cc:4528
void cgraph_cc_finalize(void)
Definition cgraph.cc:4377
const char * cgraph_inline_failed_string(cgraph_inline_failed_t reason)
Definition cgraph.cc:2212
symtab_state
Definition cgraph.h:2227
@ LTO_STREAMING
Definition cgraph.h:2233
@ IPA
Definition cgraph.h:2235
@ PARSING
Definition cgraph.h:2229
@ EXPANSION
Definition cgraph.h:2242
@ IPA_SSA_AFTER_INLINING
Definition cgraph.h:2240
@ FINISHED
Definition cgraph.h:2244
@ IPA_SSA
Definition cgraph.h:2237
@ CONSTRUCTION
Definition cgraph.h:2231
const char * cgraph_inline_failed_string(cgraph_inline_failed_t)
Definition cgraph.cc:2212
void(* cgraph_edge_hook)(cgraph_edge *, void *)
Definition cgraph.h:2208
const char * xstrdup_for_dump(const char *transient_str)
Definition cgraph.h:3609
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:2209
tree ctor_for_folding(tree)
Definition varpool.cc:397
struct varpool_node_set_def * varpool_node_set
Definition cgraph.h:1559
cgraph_inline_failed_type_t cgraph_inline_failed_type(cgraph_inline_failed_t)
Definition cgraph.cc:2230
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:1959
void(* cgraph_2node_hook)(cgraph_node *, cgraph_node *, void *)
Definition cgraph.h:2212
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:871
@ CIF_FINAL_NORMAL
Definition cgraph.h:872
@ CIF_FINAL_ERROR
Definition cgraph.h:873
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:2527
symbol_table * symtab
Definition cgraph.cc:81
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:1558
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:505
void tree_function_versioning(tree, tree, vec< ipa_replace_map *, va_gc > *, ipa_param_adjustments *, bool, bitmap, basic_block)
Definition tree-inline.cc:6306
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:3359
void(* cgraph_2edge_hook)(cgraph_edge *, cgraph_edge *, void *)
Definition cgraph.h:2211
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:3393
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:536
cgraph_indirect_call_info * cgraph_allocate_init_indirect_info(void)
Definition cgraph.cc:1123
void cgraph_build_static_cdtor(char which, tree body, int priority)
Definition ipa.cc:938
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: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: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
tree clone_identifier(tree decl, const char *suffix, bool filter_suffix=false)
Definition cgraphclones.cc:597
bool decl_in_symtab_p(const_tree decl)
Definition cgraph.h:2710
ipa_opt_pass_d * ipa_opt_pass
Definition cgraph.h:38
void cgraph_update_edges_for_call_stmt(gimple *, tree, gimple *)
Definition cgraph.cc:1866
function_summary< thunk_info * > thunk_summary
Definition cgraph.h:2259
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:2210
function_summary< clone_info * > clone_summary
Definition cgraph.h:2263
vec< cgraph_node * > cgraph_new_nodes
Definition cgraphunit.cc:217
void cgraph_cc_finalize(void)
Definition cgraph.cc:4377
cgraph_inline_failed_t
Definition cgraph.h:865
void debuginfo_init(void)
Definition cgraphunit.cc:2499
bool resolution_used_from_other_file_p(enum ld_plugin_symbol_resolution resolution)
Definition cgraph.h:2819
ipa_ref * speculative_call_target_ref()
Definition cgraph.h:1834
cgraph_edge * speculative_call_indirect_edge()
Definition cgraph.h:1812
unsigned int indirect_inlining_edge
Definition cgraph.h:1963
void remove_caller(void)
Definition cgraph.cc:1183
profile_count count
Definition cgraph.h:1941
cgraph_node * callee
Definition cgraph.h:1943
static cgraph_edge * set_call_stmt(cgraph_edge *e, gcall *new_stmt, bool update_speculative=true)
Definition cgraph.cc:941
void dump_edge_flags(FILE *f)
Definition cgraph.cc:2252
static cgraph_edge * make_direct(cgraph_edge *edge, cgraph_node *callee)
Definition cgraph.cc:1447
bool binds_to_current_def_p()
Definition cgraph.h:3370
cgraph_edge * prev_caller
Definition cgraph.h:1944
cgraph_edge * next_caller
Definition cgraph.h:1945
unsigned int can_throw_external
Definition cgraph.h:1971
static cgraph_edge * resolve_speculation(cgraph_edge *edge, tree callee_decl=NULL)
Definition cgraph.cc:1360
int m_summary_id
Definition cgraph.h:2013
int m_uid
Definition cgraph.h:2010
void redirect_callee(cgraph_node *n)
Definition cgraph.cc:1521
unsigned in_polymorphic_cdtor
Definition cgraph.h:1992
cgraph_edge * next_speculative_call_target()
Definition cgraph.h:1798
sreal sreal_frequency()
Definition cgraph.cc:4425
unsigned int speculative_id
Definition cgraph.h:1961
cgraph_indirect_call_info * indirect_info
Definition cgraph.h:1951
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:1257
static void rebuild_references(void)
Definition cgraphbuild.cc:451
friend class symbol_table
Definition cgraph.h:1733
unsigned int call_stmt_cannot_inline_p
Definition cgraph.h:1969
int get_summary_id()
Definition cgraph.h:1920
int num_speculative_call_targets_p(void)
Definition cgraph.cc:4490
void set_callee(cgraph_node *n)
Definition cgraph.h:3331
bool maybe_hot_p()
Definition cgraph.cc:3219
unsigned int lto_stmt_uid
Definition cgraph.h:1958
void DEBUG_FUNCTION debug(void)
Definition cgraph.cc:2276
bool possibly_call_in_translation_unit_p(void)
Definition cgraph.cc:4456
cgraph_edge * speculative_call_for_target(cgraph_node *)
Definition cgraph.cc:1430
cgraph_node * caller
Definition cgraph.h:1942
enum cgraph_inline_failed_t inline_failed
Definition cgraph.h:1955
unsigned int speculative
Definition cgraph.h:1989
void remove_callee(void)
Definition cgraph.h:3356
static void remove(cgraph_edge *edge)
Definition cgraph.cc:1219
static gimple * redirect_call_stmt_to_callee(cgraph_edge *e, hash_set< tree > *killed_ssas=nullptr)
Definition cgraph.cc:1565
bool verify_count()
Definition cgraph.cc:3464
unsigned int indirect_unknown_callee
Definition cgraph.h:1966
int get_uid()
Definition cgraph.h:1914
bool cannot_lead_to_return_p(void)
Definition cgraph.cc:3132
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
sreal combined_sreal_frequency()
Definition cgraph.cc:4436
bool recursive_p(void)
Definition cgraph.h:3344
int frequency()
Definition cgraph.h:3383
cgraph_edge * first_speculative_call_target()
Definition cgraph.cc:1296
cgraph_edge * next_callee
Definition cgraph.h:1947
void * aux
Definition cgraph.h:1952
gcall * call_stmt
Definition cgraph.h:1948
bool verify_corresponds_to_fndecl(tree decl)
Definition cgraph.cc:3498
friend struct cgraph_node
Definition cgraph.h:1732
cgraph_edge * prev_callee
Definition cgraph.h:1946
void redirect_callee_duplicating_thunks(cgraph_node *n)
Definition cgraphclones.cc:275
HOST_WIDE_INT otr_token
Definition cgraph.h:1697
tree otr_type
Definition cgraph.h:1699
int ecf_flags
Definition cgraph.h:1703
unsigned agg_contents
Definition cgraph.h:1713
unsigned polymorphic
Definition cgraph.h:1710
unsigned member_ptr
Definition cgraph.h:1715
unsigned guaranteed_unmodified
Definition cgraph.h:1723
unsigned vptr_changed
Definition cgraph.h:1726
HOST_WIDE_INT offset
Definition cgraph.h:1693
int param_index
Definition cgraph.h:1701
unsigned by_ref
Definition cgraph.h:1718
ipa_polymorphic_call_context context
Definition cgraph.h:1695
unsigned num_speculative_call_targets
Definition cgraph.h:1706
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:3570
bool speculation_consistent_p(tree, HOST_WIDE_INT, bool, tree) const
Definition ipa-polymorphic-call.cc:1856
tree outer_type
Definition cgraph.h:1596
unsigned invalid
Definition cgraph.h:1607
unsigned speculative_maybe_derived_type
Definition cgraph.h:1604
HOST_WIDE_INT speculative_offset
Definition cgraph.h:1595
void DEBUG_FUNCTION debug() const
Definition ipa-polymorphic-call.cc:655
unsigned dynamic
Definition cgraph.h:1609
void clear_speculation()
Definition cgraph.h:3547
void clear_outer_type(tree otr_type=NULL)
Definition cgraph.h:3558
unsigned maybe_in_construction
Definition cgraph.h:1599
bool useless_p() const
Definition cgraph.h:3581
ipa_polymorphic_call_context()
Definition cgraph.h:3537
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:1597
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:1594
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:1601
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:3020
int order
Definition cgraph.h:2534
varpool_node * first_variable(void)
Definition cgraph.h:2946
cgraph_node * first_defined_function(void)
Definition cgraph.h:3038
void change_decl_assembler_name(tree decl, tree name)
Definition symtab.cc:274
varpool_node * next_static_initializer(varpool_node *node)
Definition cgraph.h:2987
hash_table< asmname_hasher > * assembler_name_hash
Definition cgraph.h:2552
void free_edge(cgraph_edge *e)
Definition cgraph.cc:1205
vec< int > edge_released_summary_ids
Definition cgraph.h:2522
int assign_summary_id(cgraph_edge *edge)
Definition cgraph.h:2496
cgraph_2edge_hook_list * add_edge_duplication_hook(cgraph_2edge_hook hook, void *data)
Definition cgraph.cc:573
static char symbol_suffix_separator()
Definition symtab.cc:2569
void remove_cgraph_duplication_hook(cgraph_2node_hook_list *entry)
Definition cgraph.cc:631
void DEBUG_FUNCTION debug(void)
Definition symtab.cc:1059
varpool_node_hook_list * m_first_varpool_insertion_hook
Definition cgraph.h:2606
static bool decl_assembler_name_equal(tree decl, const_tree asmname)
Definition symtab.cc:142
symbol_table()
Definition cgraph.h:2272
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:1025
symtab_node * first_defined_symbol(void)
Definition cgraph.h:2928
bool global_info_ready
Definition cgraph.h:2540
void clear_asm_symbols(void)
Definition cgraph.h:2317
bool function_flags_ready
Definition cgraph.h:2544
thunk_summary * m_thunks
Definition cgraph.h:2564
friend struct cgraph_edge
Definition cgraph.h:2270
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:2596
asm_node * asmnodes
Definition cgraph.h:2528
void call_cgraph_duplication_hooks(cgraph_node *node, cgraph_node *node2)
Definition cgraph.cc:643
friend struct symtab_node
Definition cgraph.h:2268
int edges_count
Definition cgraph.h:2514
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:2559
cgraph_node * next_defined_function(cgraph_node *node)
Definition cgraph.h:3052
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:478
asm_node * first_asm_symbol(void)
Definition cgraph.h:2353
void release_symbol(cgraph_node *node)
Definition cgraph.h:2907
cgraph_2node_hook_list * m_first_cgraph_duplicated_hook
Definition cgraph.h:2602
cgraph_node_hook_list * add_cgraph_insertion_hook(cgraph_node_hook hook, void *data)
Definition cgraph.cc:544
cgraph_node * next_function(cgraph_node *node)
Definition cgraph.h:3082
hash_table< section_name_hasher > * section_hash
Definition cgraph.h:2549
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:561
void unregister(symtab_node *node)
Definition cgraph.h:2890
cgraph_2node_hook_list * add_cgraph_duplication_hook(cgraph_2node_hook hook, void *data)
Definition cgraph.cc:614
void process_same_body_aliases(void)
Definition cgraphunit.cc:719
varpool_node_hook_list * m_first_varpool_removal_hook
Definition cgraph.h:2608
cgraph_node_hook_list * add_cgraph_removal_hook(cgraph_node_hook hook, void *data)
Definition cgraph.cc:490
clone_summary * m_clones
Definition cgraph.h:2567
hash_set< const cgraph_node * > cloned_nodes
Definition cgraph.h:2561
void initialize(void)
Definition cgraph.cc:429
cgraph_node * next_function_with_gimple_body(cgraph_node *node)
Definition cgraph.h:3107
int cgraph_max_summary_id
Definition cgraph.h:2512
void call_cgraph_insertion_hooks(cgraph_node *node)
Definition cgraph.cc:531
FILE * dump_file
Definition cgraph.h:2557
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:2593
int cgraph_max_uid
Definition cgraph.h:2511
void dump_graphviz(FILE *f)
Definition symtab.cc:1049
bool cpp_implicit_aliases_done
Definition cgraph.h:2546
cgraph_node_hook_list * m_first_cgraph_removal_hook
Definition cgraph.h:2598
asm_node * finalize_toplevel_asm(tree asm_str)
Definition cgraph.h:2870
cgraph_node * create_empty(void)
Definition cgraph.cc:441
symtab_node * first_symbol(void)
Definition cgraph.h:2917
int cgraph_count
Definition cgraph.h:2510
cgraph_node * first_function(void)
Definition cgraph.h:3071
void call_cgraph_removal_hooks(cgraph_node *node)
Definition cgraph.cc:519
int max_unit
Definition cgraph.h:2537
vec< int > cgraph_released_summary_ids
Definition cgraph.h:2519
enum symtab_state state
Definition cgraph.h:2542
void remove_edge_removal_hook(cgraph_edge_hook_list *entry)
Definition cgraph.cc:466
cgraph_edge_hook_list * add_edge_removal_hook(cgraph_edge_hook hook, void *data)
Definition cgraph.cc:449
varpool_node * first_static_initializer(void)
Definition cgraph.h:2973
int assign_summary_id(cgraph_node *node)
Definition cgraph.h:2485
cgraph_node_hook_list * m_first_cgraph_insertion_hook
Definition cgraph.h:2604
symtab_node * nodes
Definition cgraph.h:2527
void dump(FILE *f)
Definition symtab.cc:1040
void register_symbol(symtab_node *node)
Definition cgraph.h:2852
void call_varpool_insertion_hooks(varpool_node *node)
Definition varpool.cc:123
varpool_node * first_defined_variable(void)
Definition cgraph.h:3006
int edges_max_uid
Definition cgraph.h:2515
void remove_cgraph_removal_hook(cgraph_node_hook_list *entry)
Definition cgraph.cc:507
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:2600
cgraph_node * first_function_with_gimple_body(void)
Definition cgraph.h:3093
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:602
void remove_edge_duplication_hook(cgraph_2edge_hook_list *entry)
Definition cgraph.cc:590
varpool_node * next_variable(varpool_node *node)
Definition cgraph.h:2957
void unlink_from_assembler_name_hash(symtab_node *node, bool with_clones)
Definition symtab.cc:203
friend struct cgraph_node
Definition cgraph.h:2269
void call_varpool_removal_hooks(varpool_node *node)
Definition varpool.cc:82
asm_node * asm_last_node
Definition cgraph.h:2529
hash_map< symtab_node *, symbol_priority_map > * init_priority_hash
Definition cgraph.h:2555
int edges_max_summary_id
Definition cgraph.h:2516
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:357
struct rtx_def * rtx
Definition coretypes.h:57
optimize_size_level
Definition coretypes.h:462
@ OPTIMIZE_SIZE_BALANCED
Definition coretypes.h:466
@ OPTIMIZE_SIZE_NO
Definition coretypes.h:464
@ OPTIMIZE_SIZE_MAX
Definition coretypes.h:468
class edge_def * edge
Definition coretypes.h:354
tls_model
Definition coretypes.h:210
@ TLS_MODEL_NONE
Definition coretypes.h:211
node_frequency
Definition coretypes.h:269
@ NODE_FREQUENCY_NORMAL
Definition coretypes.h:277
@ NODE_FREQUENCY_UNLIKELY_EXECUTED
Definition coretypes.h:272
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-locations.h:40
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:2183
int order
Definition cgraph.h:2185
asm_node * next
Definition cgraph.h:2181
static bool equal(symtab_node *n, const_tree t)
Definition cgraph.h:2623
static hashval_t hash(symtab_node *n)
Definition cgraph.h:2616
const_tree compare_type
Definition cgraph.h:2249
static bool equal(cgraph_edge *, gimple *)
Definition cgraph.cc:850
static hashval_t hash(cgraph_edge *)
Definition cgraph.cc:830
gimple * compare_type
Definition cgraph.h:880
tree assembler_name
Definition cgraph.h:859
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:1554
vec< cgraph_node * > nodes
Definition cgraph.h:1555
cgraph_node_set set
Definition cgraph.h:1574
unsigned index
Definition cgraph.h:1575
static cgraph_node * get(const_tree decl)
Definition cgraph.h:1369
cgraph_edge * indirect_calls
Definition cgraph.h:1426
void scale_profile_to(profile_count ipa_count)
Definition cgraph.cc:286
unsigned only_called_at_startup
Definition cgraph.h:1480
cgraph_node()
Definition cgraph.h:895
void DEBUG_FUNCTION debug(void)
Definition cgraph.cc:2507
void create_wrapper(cgraph_node *target)
Definition cgraphunit.cc:2641
struct cgraph_rtl_info * rtl
Definition cgraph.h:1452
bool can_remove_if_no_direct_calls_p(bool will_inline=false)
Definition cgraph.cc:3236
static void dump_cgraph(FILE *f)
Definition cgraph.cc:2515
enum node_frequency frequency
Definition cgraph.h:1478
void make_local(void)
Definition cgraph.cc:2691
enum availability get_availability(symtab_node *ref=NULL)
Definition cgraph.cc:2537
unsigned split_part
Definition cgraph.h:1512
unsigned nonfreeing_fn
Definition cgraph.h:1504
bool former_thunk_p(void)
Definition cgraph.cc:4511
void DEBUG_FUNCTION verify_node(void)
Definition cgraph.cc:3688
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:768
int count_materialization_scale
Definition cgraph.h:1458
unsigned int profile_id
Definition cgraph.h:1460
cgraph_edge * create_edge(cgraph_node *callee, gcall *call_stmt, profile_count count, bool cloning_p=false)
Definition cgraph.cc:1099
unsigned thunk
Definition cgraph.h:1467
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:3019
unsigned tm_clone
Definition cgraph.h:1487
bool can_remove_if_no_direct_calls_and_refs_p(void)
Definition cgraph.h:3187
bool get_body()
Definition cgraph.cc:4317
unsigned lowered
Definition cgraph.h:1472
int unit_id
Definition cgraph.h:1462
cgraph_edge * callers
Definition cgraph.h:1423
void set_call_stmt_including_clones(gimple *old_stmt, gcall *new_stmt, bool update_speculative=true)
Definition cgraphclones.cc:829
void expand_all_artificial_thunks()
Definition cgraphclones.cc:288
void remove(void)
Definition cgraph.cc:2038
unsigned icf_merged
Definition cgraph.h:1500
cgraph_node * next_sibling_clone
Definition cgraph.h:1427
cgraph_node * find_replacement(struct clone_info *)
Definition cgraphclones.cc:734
void remove_callees(void)
Definition cgraph.cc:1900
static void checking_verify_cgraph_nodes(void)
Definition cgraph.h:3211
cgraph_node * clones
Definition cgraph.h:1429
unsigned can_change_signature
Definition cgraph.h:1522
unsigned is_target_clone
Definition cgraph.h:1495
static void DEBUG_FUNCTION verify_cgraph_nodes(void)
Definition cgraph.cc:4177
static void add_function_version(cgraph_function_version_info *fn_v, tree decl)
Definition cgraph.cc:374
cgraph_node * get_alias_target(void)
Definition cgraph.h:3259
bool check_calls_comdat_local_p()
Definition cgraph.cc:4498
static cgraph_node * create_same_body_alias(tree alias, tree decl)
Definition cgraph.cc:743
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:4226
bool has_gimple_body_p(void)
Definition cgraph.h:3138
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:4414
void remove_from_clone_tree()
Definition cgraphclones.cc:1179
unsigned calls_comdat_local
Definition cgraph.h:1498
cgraph_node * inlined_to
Definition cgraph.h:1450
cgraph_edge * create_indirect_edge(gcall *call_stmt, int ecf_flags, profile_count count, bool cloning_p=false)
Definition cgraph.cc:1139
friend class symbol_table
Definition cgraph.h:892
void make_profile_local()
Definition cgraph.cc:184
bool local_p(void)
Definition ipa-visibility.cc:113
cgraph_node * clone_of
Definition cgraph.h:1430
bool cannot_return_p(void)
Definition cgraph.cc:3116
static void delete_function_version_by_decl(tree decl)
Definition cgraph.cc:358
void dump(FILE *f)
Definition cgraph.cc:2290
priority_type get_fini_priority(void)
Definition symtab.cc:1848
bool set_malloc_flag(bool malloc_p)
Definition cgraph.cc:2786
bool call_for_symbol_and_aliases(bool(*callback)(cgraph_node *, void *), void *data, bool include_overwritable)
Definition cgraph.h:3474
unsigned gc_candidate
Definition cgraph.h:1533
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:4199
struct function * get_fun() const
Definition cgraph.cc:4359
void mark_force_output(void)
Definition cgraph.h:3405
void create_edge_including_clones(cgraph_node *callee, gimple *old_stmt, gcall *stmt, profile_count count, cgraph_inline_failed_t reason)
Definition cgraphclones.cc:889
unsigned only_called_at_exit
Definition cgraph.h:1482
void dump_graphviz(FILE *f)
Definition cgraph.cc:2491
void release_body(bool keep_arguments=false)
Definition cgraph.cc:2001
profile_count count
Definition cgraph.h:1455
static cgraph_node * get_create(tree)
Definition cgraph.cc:686
bool set_nothrow_flag(bool nothrow)
Definition cgraph.cc:2738
cgraph_simd_clone * simdclone
Definition cgraph.h:1439
unsigned called_by_ifunc_resolver
Definition cgraph.h:1535
bool set_noreturn_flag(bool noreturn_p)
Definition cgraph.cc:2881
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:1074
void expand(void)
Definition cgraphunit.cc:1821
vec< ipa_opt_pass, va_heap, vl_ptr > ipa_transforms_to_apply
Definition cgraph.h:1446
static cgraph_node * create_alias(tree alias, tree target)
Definition cgraph.cc:717
cgraph_edge * callees
Definition cgraph.h:1422
bool remove_symbol_and_inline_clones(cgraph_node *forbidden_node=NULL)
Definition cgraphclones.cc:942
hash_table< cgraph_edge_hasher > * call_site_hash
Definition cgraph.h:1433
unsigned indirect_call_target
Definition cgraph.h:1514
bool call_for_symbol_and_aliases_1(bool(*callback)(cgraph_node *, void *), void *data, bool include_overwritable)
Definition cgraph.cc:4393
bool only_called_directly_p(void)
Definition cgraph.cc:3367
void assemble_thunks_and_aliases(void)
Definition cgraphunit.cc:1778
unsigned ipcp_clone
Definition cgraph.h:1529
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:2611
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:2623
unsigned merged_comdat
Definition cgraph.h:1506
unsigned dispatcher_resolver_function
Definition cgraph.h:1491
static cgraph_node * local_info_node(tree decl)
Definition cgraph.cc:2175
void materialize_clone(void)
Definition cgraphclones.cc:1195
unsigned parallelized_function
Definition cgraph.h:1510
static void debug_cgraph(void)
Definition cgraph.h:1334
unsigned versionable
Definition cgraph.h:1519
int m_summary_id
Definition cgraph.h:1542
unsigned has_omp_variant_constructs
Definition cgraph.h:1537
auto_vec< cgraph_edge * > collect_callers(void)
Definition cgraph.cc:3397
cgraph_node * prev_sibling_clone
Definition cgraph.h:1428
cgraph_edge * get_edge(gimple *call_stmt)
Definition cgraph.cc:893
unsigned local
Definition cgraph.h:1517
unsigned process
Definition cgraph.h:1475
static void delete_function_version(cgraph_function_version_info *)
Definition cgraph.cc:337
void make_profile_global0(profile_quality quality)
Definition cgraph.cc:206
void mark_address_taken(void)
Definition cgraph.cc:2151
unsigned redefined_extern_inline
Definition cgraph.h:1525
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:642
int tp_first_run
Definition cgraph.h:1464
static cgraph_node * create(tree decl)
Definition cgraph.cc:657
bool will_be_removed_from_program_if_no_direct_calls_p(bool will_inline=false)
Definition cgraph.cc:3308
tree former_clone_of
Definition cgraph.h:1435
bool get_untransformed_body()
Definition cgraph.cc:4248
bool only_called_directly_or_aliased_p(void)
Definition cgraph.h:3170
cgraph_node * create_version_clone(tree new_decl, vec< cgraph_edge * > redirect_callers, bitmap bbs_to_copy, const char *suffix=NULL)
Definition cgraphclones.cc:995
cgraph_node * ultimate_alias_target(availability *availability=NULL, symtab_node *ref=NULL)
Definition cgraph.h:3299
static cgraph_node * get_for_asmname(tree asmname)
Definition cgraph.cc:813
cgraph_node * simd_clones
Definition cgraph.h:1441
unsigned merged_extern_inline
Definition cgraph.h:1508
bool add_detected_attribute(const char *attr)
Definition cgraph.cc:2834
int get_summary_id()
Definition cgraph.h:1340
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:1901
unsigned dispatcher_function
Definition cgraph.h:1489
enum optimize_size_level optimize_for_size_p(void)
Definition cgraph.h:3414
bool set_pure_flag(bool pure, bool looping)
Definition cgraph.cc:3102
void remove_callers(void)
Definition cgraph.cc:1937
unsigned used_as_abstract_origin
Definition cgraph.h:1470
unsigned tm_may_enter_irr
Definition cgraph.h:1527
static struct cgraph_rtl_info * rtl_info(const_tree)
Definition cgraph.cc:2187
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:3162
rtx rtl
Definition cgraph.h:3154
tree value
Definition cgraph.h:3157
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:3514
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:765
static profile_count zero()
Definition profile-count.h:813
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:365
static bool equal(section_hash_entry *, const char *)
Definition symtab.cc:373
priority_type fini
Definition cgraph.h:2223
priority_type init
Definition cgraph.h:2222
static bool set_implicit_section(symtab_node *n, void *)
Definition symtab.cc:1919
unsigned in_init_priority_hash
Definition cgraph.h:597
void dump_graphviz(FILE *f)
Definition symtab.cc:1033
struct lto_file_decl_data * lto_file_data
Definition cgraph.h:644
symtab_node * get_alias_target(void)
Definition cgraph.h:2739
tree get_alias_target_tree()
Definition cgraph.h:2751
unsigned used_from_other_partition
Definition cgraph.h:584
const char * get_visibility_string() const
Definition symtab.cc:881
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:495
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:2775
void dump(FILE *f)
Definition symtab.cc:1024
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:2457
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:1836
unsigned num_references(void)
Definition cgraph.h:225
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:2641
const char * dump_asm_name() const
Definition symtab.cc:599
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:1473
void copy_visibility_from(symtab_node *n)
Definition symtab.cc:1590
bool has_aliases_p(void)
Definition cgraph.h:2808
struct symbol_priority_map * priority_info(void)
Definition symtab.cc:1861
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:569
void DEBUG_FUNCTION debug(void)
Definition symtab.cc:1089
void set_section(const char *section)
Definition symtab.cc:1819
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:2761
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:898
void DEBUG_FUNCTION verify(void)
Definition symtab.cc:1361
bool call_for_symbol_and_aliases_1(bool(*callback)(symtab_node *, void *), void *data, bool include_overwrite)
Definition symtab.cc:2417
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:1441
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:761
enum availability get_availability(symtab_node *ref=NULL)
Definition cgraph.h:3441
void set_section_for_node(const char *section)
Definition symtab.cc:1743
symtab_node * ultimate_alias_target_1(enum availability *avail=NULL, symtab_node *ref=NULL)
Definition symtab.cc:1645
void remove_from_same_comdat_group(void)
Definition symtab.cc:429
friend class symbol_table
Definition cgraph.h:108
ipa_ref * maybe_create_reference(tree val, gimple *stmt)
Definition symtab.cc:672
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:825
bool prevailing_p(void)
Definition cgraph.h:3617
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:2305
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:723
bool resolve_alias(symtab_node *target, bool transparent=false)
Definition symtab.cc:1931
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:782
unsigned semantic_interposition
Definition cgraph.h:577
static symtab_node * get_for_asmname(const_tree asmname)
Definition symtab.cc:1068
static symtab_node * get_create(tree node)
Definition cgraph.h:3430
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:609
void dump_references(FILE *file)
Definition symtab.cc:845
enum symbol_partitioning_class get_partitioning_class(void)
Definition symtab.cc:2160
tree decl
Definition cgraph.h:614
void dissolve_same_comdat_group_list(void)
Definition symtab.cc:530
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:1525
bool binds_to_current_def_p(symtab_node *ref=NULL)
Definition symtab.cc:2584
ipa_ref * iterate_direct_aliases(unsigned i, ipa_ref *&ref)
Definition cgraph.h:2795
bool semantically_equivalent_p(symtab_node *target)
Definition symtab.cc:2126
void remove_all_referring(void)
Definition symtab.cc:835
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:1707
bool in_same_comdat_group_p(symtab_node *target)
Definition cgraph.h:2718
const char * dump_name() const
Definition symtab.cc:593
static bool set_section_from_node(symtab_node *n, void *o)
Definition symtab.cc:1809
unsigned writeonly
Definition cgraph.h:550
const char * asm_name() const
Definition symtab.cc:557
unsigned int definition_alignment()
Definition symtab.cc:2558
void dump_referring(FILE *)
Definition symtab.cc:862
unsigned body_removed
Definition cgraph.h:575
symtab_node * noninterposable_alias(void)
Definition symtab.cc:2049
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:1106
unsigned force_output
Definition cgraph.h:563
static bool set_section_from_string(symtab_node *n, void *s)
Definition symtab.cc:1799
void register_symbol(void)
Definition symtab.cc:412
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:3279
const char * get_symtab_type_string() const
Definition symtab.cc:890
bool real_symbol_p(void)
Definition cgraph.h:2690
unsigned analyzed
Definition cgraph.h:548
bool nonzero_address()
Definition symtab.cc:2291
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:3453
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:2785
symtab_node * next_sharing_asm_name
Definition cgraph.h:629
void set_init_priority(priority_type priority)
Definition symtab.cc:1882
bool used_from_object_file_p(void)
Definition cgraph.h:2831
bool can_increase_alignment_p()
Definition symtab.cc:2466
unsigned ifunc_resolver
Definition cgraph.h:607
Definition symtab-thunks.h:36
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:1567
vec< varpool_node * > nodes
Definition cgraph.h:1568
varpool_node_set set
Definition cgraph.h:1581
unsigned index
Definition cgraph.h:1582
bool can_remove_if_no_refs_p(void)
Definition cgraph.h:3221
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:3495
unsigned output
Definition cgraph.h:2153
varpool_node()
Definition cgraph.h:2045
varpool_node * ultimate_alias_target(availability *availability=NULL, symtab_node *ref=NULL)
Definition cgraph.h:3316
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:3267
static varpool_node * get(const_tree decl)
Definition cgraph.h:2843
bool assemble_decl(void)
Definition varpool.cc:564
bool all_refs_explicit_p()
Definition cgraph.h:3239
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:2159
bool ctor_useable_for_folding_p(void)
Definition varpool.cc:323
void remove(void)
Definition varpool.cc:172
unsigned dynamically_initialized
Definition cgraph.h:2157
unsigned used_by_single_function
Definition cgraph.h:2165
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: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