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);
970 cgraph_node *create_clone (
tree decl, profile_count
count,
971 bool update_original,
972 vec<cgraph_edge *> redirect_callers,
973 bool call_duplication_hook,
974 cgraph_node *new_inlined_to,
975 ipa_param_adjustments *param_adjustments,
976 const char *suffix =
NULL);
981 cgraph_node *create_virtual_clone (
const vec<cgraph_edge *> &redirect_callers,
982 vec<ipa_replace_map *, va_gc> *tree_map,
983 ipa_param_adjustments *param_adjustments,
984 const char * suffix,
unsigned num_suffix);
988 void remove_from_clone_tree ();
1007 cgraph_node *create_version_clone (
tree new_decl,
1008 vec<cgraph_edge *> redirect_callers,
1010 const char *suffix =
NULL);
1038 cgraph_node *create_version_clone_with_body
1039 (vec<cgraph_edge *> redirect_callers,
1040 vec<ipa_replace_map *, va_gc> *tree_map,
1041 ipa_param_adjustments *param_adjustments,
1043 tree target_attributes =
NULL_TREE,
bool version_decl =
true);
1047 cgraph_function_version_info *insert_new_function_version (
void);
1050 cgraph_function_version_info *function_version (
void);
1054 void analyze (
void);
1059 cgraph_node * create_thunk (
tree alias,
tree,
bool this_adjusting,
1060 HOST_WIDE_INT fixed_offset,
1061 HOST_WIDE_INT virtual_value,
1062 HOST_WIDE_INT indirect_offset,
1063 tree virtual_offset,
1068 inline cgraph_node *get_alias_target (
void);
1077 symtab_node *ref =
NULL);
1081 void expand_all_artificial_thunks ();
1084 void assemble_thunks_and_aliases (
void);
1091 void create_wrapper (cgraph_node *target);
1100 void dump (FILE *f);
1103 void dump_graphviz (FILE *f);
1110 bool get_untransformed_body ();
1117 void materialize_clone (
void);
1123 void release_body (
bool keep_arguments =
false);
1126 struct function *get_fun ()
const;
1129 void make_local (
void);
1141 cgraph_edge *create_edge (cgraph_node *callee,
1142 gcall *call_stmt, profile_count
count,
1143 bool cloning_p =
false);
1148 cgraph_edge *create_indirect_edge (gcall *call_stmt,
int ecf_flags,
1149 profile_count
count,
1150 bool cloning_p =
false);
1155 void create_edge_including_clones (cgraph_node *callee,
1156 gimple *old_stmt, gcall *stmt,
1157 profile_count
count,
1162 cgraph_edge *get_edge (gimple *call_stmt);
1166 auto_vec<cgraph_edge *> collect_callers (
void);
1169 void remove_callers (
void);
1172 void remove_callees (
void);
1180 bool set_nothrow_flag (
bool nothrow);
1184 bool set_malloc_flag (
bool malloc_p);
1188 bool set_noreturn_flag (
bool noreturn_p);
1199 bool set_const_flag (
bool set_const,
bool looping);
1207 bool set_pure_flag (
bool pure,
bool looping);
1211 bool add_detected_attribute (
const char *attr);
1217 bool call_for_symbol_and_aliases (
bool (*callback) (cgraph_node *,
1219 void *data,
bool include_overwritable);
1225 bool call_for_symbol_thunks_and_aliases (
bool (*callback) (cgraph_node *node,
1228 bool include_overwritable,
1229 bool exclude_virtual_thunks =
false);
1233 inline void mark_force_output (
void);
1236 bool local_p (
void);
1242 bool can_be_local_p (
void);
1246 bool cannot_return_p (
void);
1252 bool only_called_directly_p (
void);
1257 inline bool only_called_directly_or_aliased_p (
void);
1275 bool will_be_removed_from_program_if_no_direct_calls_p
1276 (
bool will_inline =
false);
1281 bool can_remove_if_no_direct_calls_and_refs_p (
void);
1287 bool can_remove_if_no_direct_calls_p (
bool will_inline =
false);
1294 inline bool has_gimple_body_p (
void);
1297 bool former_thunk_p (
void);
1301 bool check_calls_comdat_local_p ();
1307 static void dump_cgraph (FILE *f);
1324 static void record_function_versions (
tree decl1,
tree decl2);
1328 static void delete_function_version_by_decl (
tree decl);
1341 static void add_new_function (
tree fndecl,
bool lowered);
1354 static void finalize_function (
tree,
bool);
1384 static inline void checking_verify_cgraph_nodes (
void);
1387 static bool make_local (
cgraph_node *node,
void *);
1516 void *
data,
bool include_overwritable);
1588 HOST_WIDE_INT
offset = 0);
1617 bool consider_placement_new =
true,
1618 bool consider_bases =
true);
1639 void dump (FILE *f,
bool newline =
true)
const;
1698class GTY((chain_next (
"%h.next_caller"), chain_prev (
"%h.prev_caller"),
1713 bool update_speculative =
true);
1788 true; e2 = e2->next_callee)
1809 for (
unsigned int i = 0;
caller->iterate_reference (
i, ref);
i++)
1856 *killed_ssas =
nullptr);
1862 bool update_original);
1865 bool verify_count ();
1870 bool cannot_lead_to_return_p (
void);
1873 bool recursive_p (
void);
1885 inline int get_summary_id ()
1887 return m_summary_id;
1892 static unsigned int rebuild_edges (
void);
1896 static void rebuild_references (
void);
1900 bool possibly_call_in_translation_unit_p (
void);
1997#define CGRAPH_FREQ_BASE 1000
1998#define CGRAPH_FREQ_MAX 100000
2012 void dump (FILE *f);
2060 bool include_overwritable);
2135 bool include_overwritable);
2251 void initialize (
void);
2257 void finalize_compilation_unit (
void);
2264 void process_same_body_aliases (
void);
2267 void compile (
void);
2272 void process_new_functions (
void);
2285 bool remove_unreachable_nodes (FILE *file);
2291 void remove_unreferenced_decls (
void);
2303 bool output_variables (
void);
2307 void output_weakrefs (
void);
2341 inline cgraph_node *first_defined_function (
void);
2353 cgraph_node *first_function_with_gimple_body (
void);
2410 void call_cgraph_insertion_hooks (
cgraph_node *node);
2413 void call_cgraph_removal_hooks (
cgraph_node *node);
2425 void call_varpool_insertion_hooks (
varpool_node *node);
2428 void symtab_prevail_in_asm_name_hash (
symtab_node *node);
2431 void symtab_initialize_asm_name_hash (
void);
2437 void dump (FILE *f);
2440 void dump_graphviz (FILE *f);
2459 if (!edge_released_summary_ids.is_empty ())
2460 edge->m_summary_id = edge_released_summary_ids.pop ();
2462 edge->m_summary_id = edges_max_summary_id++;
2464 return edge->m_summary_id;
2537 bool indir_unknown_callee,
bool cloning_p);
2618 unsigned long number);
2620 unsigned long number);
2624 ipa_param_adjustments *,
2628 const cgraph_node *clone,
2629 const char *suffix);
2683 source = cn->inlined_to;
2688 target = cn->inlined_to;
2723 for (; node1; node1 = node1->
next)
2779 return (resolution == LDPR_PREVAILING_DEF
2780 || resolution == LDPR_PREEMPTED_REG
2781 || resolution == LDPR_RESOLVED_EXEC
2782 || resolution == LDPR_RESOLVED_DYN);
2816 nodes->previous = node;
2821 if (node->
order == -1)
2881#define FOR_EACH_SYMBOL(node) \
2882 for ((node) = symtab->first_symbol (); (node); (node) = (node)->next)
2890 for (node =
nodes; node; node = node->
next)
2898#define FOR_EACH_DEFINED_SYMBOL(node) \
2899 for ((node) = symtab->first_defined_symbol (); (node); \
2900 (node) = node->next_defined_symbol ())
2907 for (node =
nodes; node; node = node->
next)
2918 for (; node1; node1 = node1->
next)
2924#define FOR_EACH_VARIABLE(node) \
2925 for ((node) = symtab->first_variable (); \
2927 (node) = symtab->next_variable ((node)))
2934 for (node =
nodes; node; node = node->
next)
2948 for (; node1; node1 = node1->
next)
2958#define FOR_EACH_STATIC_INITIALIZER(node) \
2959 for ((node) = symtab->first_static_initializer (); (node); \
2960 (node) = symtab->next_static_initializer (node))
2967 for (node =
nodes; node; node = node->
next)
2981 for (; node1; node1 = node1->
next)
2990#define FOR_EACH_DEFINED_VARIABLE(node) \
2991 for ((node) = symtab->first_defined_variable (); (node); \
2992 (node) = symtab->next_defined_variable (node))
2999 for (node =
nodes; node; node = node->
next)
3013 for (; node1; node1 = node1->
next)
3023#define FOR_EACH_DEFINED_FUNCTION(node) \
3024 for ((node) = symtab->first_defined_function (); (node); \
3025 (node) = symtab->next_defined_function ((node)))
3032 for (node =
nodes; node; node = node->
next)
3043 for (; node1; node1 = node1->
next)
3054 for (node =
nodes; node; node = node->
next)
3068 for (; node1; node1 = node1->
next)
3078#define FOR_EACH_FUNCTION(node) \
3079 for ((node) = symtab->first_function (); (node); \
3080 (node) = symtab->next_function ((node)))
3095#define FOR_EACH_FUNCTION_WITH_GIMPLE_BODY(node) \
3096 for ((node) = symtab->first_function_with_gimple_body (); (node); \
3097 (node) = symtab->next_function_with_gimple_body (node))
3336 return count.to_cgraph_frequency (
caller->inlined_to
3337 ?
caller->inlined_to->count
3407 bool include_overwritable)
3409 if (include_overwritable
3412 if (callback (
this,
data))
3428 bool include_overwritable)
3430 if (include_overwritable
3433 if (callback (
this,
data))
3449 bool include_overwritable)
3451 if (include_overwritable
3454 if (callback (
this,
data))
3473 return referred->address_can_be_compared_p ();
3583class symbol_table_test
3587 symbol_table_test ();
3590 ~symbol_table_test ();
void cgraph_update_edges_for_call_stmt(gimple *old_stmt, tree old_decl, gimple *new_stmt)
Definition cgraph.cc:1704
bool cgraph_function_possibly_inlined_p(tree decl)
Definition cgraph.cc:2365
symbol_table * symtab
Definition cgraph.cc:81
cgraph_inline_failed_type_t cgraph_inline_failed_type(cgraph_inline_failed_t reason)
Definition cgraph.cc:2068
cgraph_indirect_call_info * cgraph_allocate_init_indirect_info(void)
Definition cgraph.cc:972
const char *const cgraph_availability_names[]
Definition cgraph.cc:2084
void release_function_body(tree decl)
Definition cgraph.cc:1797
symbol_table * saved_symtab
Definition cgraph.cc:4299
void cgraph_cc_finalize(void)
Definition cgraph.cc:4167
const char * cgraph_inline_failed_string(cgraph_inline_failed_t reason)
Definition cgraph.cc:2050
symtab_state
Definition cgraph.h:2185
@ LTO_STREAMING
Definition cgraph.h:2191
@ IPA
Definition cgraph.h:2193
@ PARSING
Definition cgraph.h:2187
@ EXPANSION
Definition cgraph.h:2200
@ IPA_SSA_AFTER_INLINING
Definition cgraph.h:2198
@ FINISHED
Definition cgraph.h:2202
@ IPA_SSA
Definition cgraph.h:2195
@ CONSTRUCTION
Definition cgraph.h:2189
const char * cgraph_inline_failed_string(cgraph_inline_failed_t)
Definition cgraph.cc:2050
void(* cgraph_edge_hook)(cgraph_edge *, void *)
Definition cgraph.h:2166
const char * xstrdup_for_dump(const char *transient_str)
Definition cgraph.h:3557
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:2167
tree ctor_for_folding(tree)
Definition varpool.cc:397
struct varpool_node_set_def * varpool_node_set
Definition cgraph.h:1526
cgraph_inline_failed_type_t cgraph_inline_failed_type(cgraph_inline_failed_t)
Definition cgraph.cc:2068
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:1797
void(* cgraph_2node_hook)(cgraph_node *, cgraph_node *, void *)
Definition cgraph.h:2170
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
bool speculation_useful_p(struct cgraph_edge *e, bool anticipate_inlining)
Definition ipa-inline.cc:1944
bool cgraph_function_possibly_inlined_p(tree)
Definition cgraph.cc:2365
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:1525
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:492
void tree_function_versioning(tree, tree, vec< ipa_replace_map *, va_gc > *, ipa_param_adjustments *, bool, bitmap, basic_block)
Definition tree-inline.cc:6287
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:2169
void dump_callgraph_transformation(const cgraph_node *original, const cgraph_node *clone, const char *suffix)
Definition cgraphclones.cc:311
bool decl_is_tm_clone(const_tree fndecl)
Definition cgraph.h:3341
void cgraphunit_cc_finalize(void)
Definition cgraphunit.cc:2612
tree clone_function_name(const char *name, const char *suffix, unsigned long number)
Definition cgraphclones.cc:523
cgraph_indirect_call_info * cgraph_allocate_init_indirect_info(void)
Definition cgraph.cc:972
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:2665
ipa_opt_pass_d * ipa_opt_pass
Definition cgraph.h:38
void cgraph_update_edges_for_call_stmt(gimple *, tree, gimple *)
Definition cgraph.cc:1704
function_summary< thunk_info * > thunk_summary
Definition cgraph.h:2217
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:2168
function_summary< clone_info * > clone_summary
Definition cgraph.h:2221
vec< cgraph_node * > cgraph_new_nodes
Definition cgraphunit.cc:217
void cgraph_cc_finalize(void)
Definition cgraph.cc:4167
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:2774
ipa_ref * speculative_call_target_ref()
Definition cgraph.h:1801
cgraph_edge * speculative_call_indirect_edge()
Definition cgraph.h:1779
unsigned int indirect_inlining_edge
Definition cgraph.h:1925
void remove_caller(void)
Definition cgraph.cc:1032
profile_count count
Definition cgraph.h:1903
cgraph_node * callee
Definition cgraph.h:1905
static cgraph_edge * set_call_stmt(cgraph_edge *e, gcall *new_stmt, bool update_speculative=true)
Definition cgraph.cc:790
void dump_edge_flags(FILE *f)
Definition cgraph.cc:2090
static cgraph_edge * make_direct(cgraph_edge *edge, cgraph_node *callee)
Definition cgraph.cc:1296
bool binds_to_current_def_p()
Definition cgraph.h:3318
cgraph_edge * prev_caller
Definition cgraph.h:1906
cgraph_edge * next_caller
Definition cgraph.h:1907
unsigned int can_throw_external
Definition cgraph.h:1933
static cgraph_edge * resolve_speculation(cgraph_edge *edge, tree callee_decl=NULL)
Definition cgraph.cc:1209
int m_summary_id
Definition cgraph.h:1971
int m_uid
Definition cgraph.h:1968
void redirect_callee(cgraph_node *n)
Definition cgraph.cc:1372
bool maybe_hot_p(void)
Definition cgraph.cc:2990
unsigned in_polymorphic_cdtor
Definition cgraph.h:1954
cgraph_edge * next_speculative_call_target()
Definition cgraph.h:1765
sreal sreal_frequency()
Definition cgraph.cc:4215
unsigned int speculative_id
Definition cgraph.h:1923
cgraph_indirect_call_info * indirect_info
Definition cgraph.h:1913
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:1106
static void rebuild_references(void)
Definition cgraphbuild.cc:451
friend class symbol_table
Definition cgraph.h:1700
unsigned int call_stmt_cannot_inline_p
Definition cgraph.h:1931
int get_summary_id()
Definition cgraph.h:1882
int num_speculative_call_targets_p(void)
Definition cgraph.cc:4261
void set_callee(cgraph_node *n)
Definition cgraph.h:3279
unsigned int lto_stmt_uid
Definition cgraph.h:1920
void DEBUG_FUNCTION debug(void)
Definition cgraph.cc:2114
bool possibly_call_in_translation_unit_p(void)
Definition cgraph.cc:4227
cgraph_edge * speculative_call_for_target(cgraph_node *)
Definition cgraph.cc:1279
cgraph_node * caller
Definition cgraph.h:1904
enum cgraph_inline_failed_t inline_failed
Definition cgraph.h:1917
unsigned int speculative
Definition cgraph.h:1951
void remove_callee(void)
Definition cgraph.h:3304
static void remove(cgraph_edge *edge)
Definition cgraph.cc:1068
static gimple * redirect_call_stmt_to_callee(cgraph_edge *e, hash_set< tree > *killed_ssas=nullptr)
Definition cgraph.cc:1416
bool verify_count()
Definition cgraph.cc:3261
unsigned int indirect_unknown_callee
Definition cgraph.h:1928
int get_uid()
Definition cgraph.h:1876
bool cannot_lead_to_return_p(void)
Definition cgraph.cc:2970
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:3292
int frequency()
Definition cgraph.h:3331
cgraph_edge * first_speculative_call_target()
Definition cgraph.cc:1145
cgraph_edge * next_callee
Definition cgraph.h:1909
void * aux
Definition cgraph.h:1914
gcall * call_stmt
Definition cgraph.h:1910
bool verify_corresponds_to_fndecl(tree decl)
Definition cgraph.cc:3295
friend struct cgraph_node
Definition cgraph.h:1699
cgraph_edge * prev_callee
Definition cgraph.h:1908
void redirect_callee_duplicating_thunks(cgraph_node *n)
Definition cgraphclones.cc:275
HOST_WIDE_INT otr_token
Definition cgraph.h:1664
tree otr_type
Definition cgraph.h:1666
int ecf_flags
Definition cgraph.h:1670
unsigned agg_contents
Definition cgraph.h:1680
unsigned polymorphic
Definition cgraph.h:1677
unsigned member_ptr
Definition cgraph.h:1682
unsigned guaranteed_unmodified
Definition cgraph.h:1690
unsigned vptr_changed
Definition cgraph.h:1693
HOST_WIDE_INT offset
Definition cgraph.h:1660
int param_index
Definition cgraph.h:1668
unsigned by_ref
Definition cgraph.h:1685
ipa_polymorphic_call_context context
Definition cgraph.h:1662
unsigned num_speculative_call_targets
Definition cgraph.h:1673
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:3518
bool speculation_consistent_p(tree, HOST_WIDE_INT, bool, tree) const
Definition ipa-polymorphic-call.cc:1856
tree outer_type
Definition cgraph.h:1563
unsigned invalid
Definition cgraph.h:1574
unsigned speculative_maybe_derived_type
Definition cgraph.h:1571
HOST_WIDE_INT speculative_offset
Definition cgraph.h:1562
void DEBUG_FUNCTION debug() const
Definition ipa-polymorphic-call.cc:655
unsigned dynamic
Definition cgraph.h:1576
void clear_speculation()
Definition cgraph.h:3495
void clear_outer_type(tree otr_type=NULL)
Definition cgraph.h:3506
unsigned maybe_in_construction
Definition cgraph.h:1566
bool useless_p() const
Definition cgraph.h:3529
ipa_polymorphic_call_context()
Definition cgraph.h:3485
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:1564
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:1561
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:1568
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:2975
int order
Definition cgraph.h:2492
varpool_node * first_variable(void)
Definition cgraph.h:2901
cgraph_node * first_defined_function(void)
Definition cgraph.h:2993
void change_decl_assembler_name(tree decl, tree name)
Definition symtab.cc:274
varpool_node * next_static_initializer(varpool_node *node)
Definition cgraph.h:2942
hash_table< asmname_hasher > * assembler_name_hash
Definition cgraph.h:2510
void free_edge(cgraph_edge *e)
Definition cgraph.cc:1054
vec< int > edge_released_summary_ids
Definition cgraph.h:2480
int assign_summary_id(cgraph_edge *edge)
Definition cgraph.h:2454
cgraph_2edge_hook_list * add_edge_duplication_hook(cgraph_2edge_hook hook, void *data)
Definition cgraph.cc:422
static char symbol_suffix_separator()
Definition symtab.cc:2563
void remove_cgraph_duplication_hook(cgraph_2node_hook_list *entry)
Definition cgraph.cc:480
void DEBUG_FUNCTION debug(void)
Definition symtab.cc:1053
varpool_node_hook_list * m_first_varpool_insertion_hook
Definition cgraph.h:2564
static bool decl_assembler_name_equal(tree decl, const_tree asmname)
Definition symtab.cc:142
symbol_table()
Definition cgraph.h:2230
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:874
symtab_node * first_defined_symbol(void)
Definition cgraph.h:2883
bool global_info_ready
Definition cgraph.h:2498
void clear_asm_symbols(void)
Definition cgraph.h:2275
bool function_flags_ready
Definition cgraph.h:2502
thunk_summary * m_thunks
Definition cgraph.h:2522
friend struct cgraph_edge
Definition cgraph.h:2228
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:2554
asm_node * asmnodes
Definition cgraph.h:2486
void call_cgraph_duplication_hooks(cgraph_node *node, cgraph_node *node2)
Definition cgraph.cc:492
friend struct symtab_node
Definition cgraph.h:2226
int edges_count
Definition cgraph.h:2472
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:2517
cgraph_node * next_defined_function(cgraph_node *node)
Definition cgraph.h:3007
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:327
asm_node * first_asm_symbol(void)
Definition cgraph.h:2311
void release_symbol(cgraph_node *node)
Definition cgraph.h:2862
cgraph_2node_hook_list * m_first_cgraph_duplicated_hook
Definition cgraph.h:2560
cgraph_node_hook_list * add_cgraph_insertion_hook(cgraph_node_hook hook, void *data)
Definition cgraph.cc:393
cgraph_node * next_function(cgraph_node *node)
Definition cgraph.h:3037
hash_table< section_name_hasher > * section_hash
Definition cgraph.h:2507
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:410
void unregister(symtab_node *node)
Definition cgraph.h:2845
cgraph_2node_hook_list * add_cgraph_duplication_hook(cgraph_2node_hook hook, void *data)
Definition cgraph.cc:463
void process_same_body_aliases(void)
Definition cgraphunit.cc:719
varpool_node_hook_list * m_first_varpool_removal_hook
Definition cgraph.h:2566
cgraph_node_hook_list * add_cgraph_removal_hook(cgraph_node_hook hook, void *data)
Definition cgraph.cc:339
clone_summary * m_clones
Definition cgraph.h:2525
hash_set< const cgraph_node * > cloned_nodes
Definition cgraph.h:2519
void initialize(void)
Definition cgraph.cc:278
cgraph_node * next_function_with_gimple_body(cgraph_node *node)
Definition cgraph.h:3062
int cgraph_max_summary_id
Definition cgraph.h:2470
void call_cgraph_insertion_hooks(cgraph_node *node)
Definition cgraph.cc:380
FILE * dump_file
Definition cgraph.h:2515
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:2551
int cgraph_max_uid
Definition cgraph.h:2469
void dump_graphviz(FILE *f)
Definition symtab.cc:1043
bool cpp_implicit_aliases_done
Definition cgraph.h:2504
cgraph_node_hook_list * m_first_cgraph_removal_hook
Definition cgraph.h:2556
asm_node * finalize_toplevel_asm(tree asm_str)
Definition cgraph.h:2825
cgraph_node * create_empty(void)
Definition cgraph.cc:290
symtab_node * first_symbol(void)
Definition cgraph.h:2872
int cgraph_count
Definition cgraph.h:2468
cgraph_node * first_function(void)
Definition cgraph.h:3026
void call_cgraph_removal_hooks(cgraph_node *node)
Definition cgraph.cc:368
int max_unit
Definition cgraph.h:2495
vec< int > cgraph_released_summary_ids
Definition cgraph.h:2477
enum symtab_state state
Definition cgraph.h:2500
void remove_edge_removal_hook(cgraph_edge_hook_list *entry)
Definition cgraph.cc:315
cgraph_edge_hook_list * add_edge_removal_hook(cgraph_edge_hook hook, void *data)
Definition cgraph.cc:298
varpool_node * first_static_initializer(void)
Definition cgraph.h:2928
int assign_summary_id(cgraph_node *node)
Definition cgraph.h:2443
cgraph_node_hook_list * m_first_cgraph_insertion_hook
Definition cgraph.h:2562
symtab_node * nodes
Definition cgraph.h:2485
void dump(FILE *f)
Definition symtab.cc:1034
void register_symbol(symtab_node *node)
Definition cgraph.h:2807
void call_varpool_insertion_hooks(varpool_node *node)
Definition varpool.cc:123
varpool_node * first_defined_variable(void)
Definition cgraph.h:2961
int edges_max_uid
Definition cgraph.h:2473
void remove_cgraph_removal_hook(cgraph_node_hook_list *entry)
Definition cgraph.cc:356
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:2558
cgraph_node * first_function_with_gimple_body(void)
Definition cgraph.h:3048
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:451
void remove_edge_duplication_hook(cgraph_2edge_hook_list *entry)
Definition cgraph.cc:439
varpool_node * next_variable(varpool_node *node)
Definition cgraph.h:2912
void unlink_from_assembler_name_hash(symtab_node *node, bool with_clones)
Definition symtab.cc:203
friend struct cgraph_node
Definition cgraph.h:2227
void call_varpool_removal_hooks(varpool_node *node)
Definition varpool.cc:82
asm_node * asm_last_node
Definition cgraph.h:2487
hash_map< symtab_node *, symbol_priority_map > * init_priority_hash
Definition cgraph.h:2513
int edges_max_summary_id
Definition cgraph.h:2474
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
Definition dump-context.h:31
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
#define REG_BR_PROB_BASE
Definition profile-count.h:73
rtx find_replacement(rtx *loc)
Definition reload.cc:6383
tree asm_str
Definition cgraph.h:2141
int order
Definition cgraph.h:2143
asm_node * next
Definition cgraph.h:2139
static bool equal(symtab_node *n, const_tree t)
Definition cgraph.h:2581
static hashval_t hash(symtab_node *n)
Definition cgraph.h:2574
const_tree compare_type
Definition cgraph.h:2207
static bool equal(cgraph_edge *, gimple *)
Definition cgraph.cc:699
static hashval_t hash(cgraph_edge *)
Definition cgraph.cc:679
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:1521
vec< cgraph_node * > nodes
Definition cgraph.h:1522
cgraph_node_set set
Definition cgraph.h:1541
unsigned index
Definition cgraph.h:1542
static cgraph_node * get(const_tree decl)
Definition cgraph.h:1342
cgraph_edge * indirect_calls
Definition cgraph.h:1399
unsigned only_called_at_startup
Definition cgraph.h:1453
cgraph_node()
Definition cgraph.h:892
void DEBUG_FUNCTION debug(void)
Definition cgraph.cc:2345
void create_wrapper(cgraph_node *target)
Definition cgraphunit.cc:2627
struct cgraph_rtl_info * rtl
Definition cgraph.h:1425
bool can_remove_if_no_direct_calls_p(bool will_inline=false)
Definition cgraph.cc:3033
static void dump_cgraph(FILE *f)
Definition cgraph.cc:2353
enum node_frequency frequency
Definition cgraph.h:1451
void make_local(void)
Definition cgraph.cc:2529
enum availability get_availability(symtab_node *ref=NULL)
Definition cgraph.cc:2375
unsigned split_part
Definition cgraph.h:1479
unsigned nonfreeing_fn
Definition cgraph.h:1471
bool former_thunk_p(void)
Definition cgraph.cc:4282
void DEBUG_FUNCTION verify_node(void)
Definition cgraph.cc:3485
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:617
int count_materialization_scale
Definition cgraph.h:1431
unsigned int profile_id
Definition cgraph.h:1433
cgraph_edge * create_edge(cgraph_node *callee, gcall *call_stmt, profile_count count, bool cloning_p=false)
Definition cgraph.cc:948
unsigned thunk
Definition cgraph.h:1440
void analyze(void)
Definition cgraphunit.cc:626
cgraph_function_version_info * insert_new_function_version(void)
Definition cgraph.cc:185
bool set_const_flag(bool set_const, bool looping)
Definition cgraph.cc:2857
unsigned tm_clone
Definition cgraph.h:1460
bool can_remove_if_no_direct_calls_and_refs_p(void)
Definition cgraph.h:3135
bool get_body()
Definition cgraph.cc:4107
unsigned lowered
Definition cgraph.h:1445
int unit_id
Definition cgraph.h:1435
cgraph_edge * callers
Definition cgraph.h:1396
void set_call_stmt_including_clones(gimple *old_stmt, gcall *new_stmt, bool update_speculative=true)
Definition cgraphclones.cc:772
void expand_all_artificial_thunks()
Definition cgraphclones.cc:288
void remove(void)
Definition cgraph.cc:1876
unsigned icf_merged
Definition cgraph.h:1467
cgraph_node * next_sibling_clone
Definition cgraph.h:1400
cgraph_node * find_replacement(struct clone_info *)
Definition cgraphclones.cc:677
void remove_callees(void)
Definition cgraph.cc:1738
static void checking_verify_cgraph_nodes(void)
Definition cgraph.h:3159
cgraph_node * clones
Definition cgraph.h:1402
unsigned can_change_signature
Definition cgraph.h:1489
static void DEBUG_FUNCTION verify_cgraph_nodes(void)
Definition cgraph.cc:3967
cgraph_node * get_alias_target(void)
Definition cgraph.h:3207
bool check_calls_comdat_local_p()
Definition cgraph.cc:4269
static cgraph_node * create_same_body_alias(tree alias, tree decl)
Definition cgraph.cc:592
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:4016
bool has_gimple_body_p(void)
Definition cgraph.h:3086
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:4204
void remove_from_clone_tree()
Definition cgraphclones.cc:1120
unsigned calls_comdat_local
Definition cgraph.h:1465
cgraph_node * inlined_to
Definition cgraph.h:1423
cgraph_edge * create_indirect_edge(gcall *call_stmt, int ecf_flags, profile_count count, bool cloning_p=false)
Definition cgraph.cc:988
friend class symbol_table
Definition cgraph.h:889
bool local_p(void)
Definition ipa-visibility.cc:113
cgraph_node * clone_of
Definition cgraph.h:1403
bool cannot_return_p(void)
Definition cgraph.cc:2954
static void delete_function_version_by_decl(tree decl)
Definition cgraph.cc:222
void dump(FILE *f)
Definition cgraph.cc:2128
priority_type get_fini_priority(void)
Definition symtab.cc:1842
bool set_malloc_flag(bool malloc_p)
Definition cgraph.cc:2624
bool call_for_symbol_and_aliases(bool(*callback)(cgraph_node *, void *), void *data, bool include_overwritable)
Definition cgraph.h:3422
unsigned gc_candidate
Definition cgraph.h:1500
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=NULL)
Definition cgraphclones.cc:369
cgraph_node * function_symbol(enum availability *avail=NULL, struct symtab_node *ref=NULL)
Definition cgraph.cc:3989
struct function * get_fun() const
Definition cgraph.cc:4149
void mark_force_output(void)
Definition cgraph.h:3353
void create_edge_including_clones(cgraph_node *callee, gimple *old_stmt, gcall *stmt, profile_count count, cgraph_inline_failed_t reason)
Definition cgraphclones.cc:832
unsigned only_called_at_exit
Definition cgraph.h:1455
void dump_graphviz(FILE *f)
Definition cgraph.cc:2329
void release_body(bool keep_arguments=false)
Definition cgraph.cc:1839
profile_count count
Definition cgraph.h:1428
static cgraph_node * get_create(tree)
Definition cgraph.cc:535
bool set_nothrow_flag(bool nothrow)
Definition cgraph.cc:2576
cgraph_simd_clone * simdclone
Definition cgraph.h:1412
unsigned called_by_ifunc_resolver
Definition cgraph.h:1502
bool set_noreturn_flag(bool noreturn_p)
Definition cgraph.cc:2719
void expand(void)
Definition cgraphunit.cc:1812
vec< ipa_opt_pass, va_heap, vl_ptr > ipa_transforms_to_apply
Definition cgraph.h:1419
static cgraph_node * create_alias(tree alias, tree target)
Definition cgraph.cc:566
cgraph_edge * callees
Definition cgraph.h:1395
bool remove_symbol_and_inline_clones(cgraph_node *forbidden_node=NULL)
Definition cgraphclones.cc:885
hash_table< cgraph_edge_hasher > * call_site_hash
Definition cgraph.h:1406
unsigned indirect_call_target
Definition cgraph.h:1481
bool call_for_symbol_and_aliases_1(bool(*callback)(cgraph_node *, void *), void *data, bool include_overwritable)
Definition cgraph.cc:4183
bool only_called_directly_p(void)
Definition cgraph.cc:3164
void assemble_thunks_and_aliases(void)
Definition cgraphunit.cc:1769
unsigned ipcp_clone
Definition cgraph.h:1496
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:2449
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:2461
unsigned merged_comdat
Definition cgraph.h:1473
static cgraph_node * local_info_node(tree decl)
Definition cgraph.cc:2013
void materialize_clone(void)
Definition cgraphclones.cc:1136
unsigned parallelized_function
Definition cgraph.h:1477
static void debug_cgraph(void)
Definition cgraph.h:1309
unsigned versionable
Definition cgraph.h:1486
int m_summary_id
Definition cgraph.h:1509
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 *clone_name, tree target_attributes=NULL_TREE, bool version_decl=true)
Definition cgraphclones.cc:1015
unsigned has_omp_variant_constructs
Definition cgraph.h:1504
auto_vec< cgraph_edge * > collect_callers(void)
Definition cgraph.cc:3194
cgraph_node * prev_sibling_clone
Definition cgraph.h:1401
cgraph_edge * get_edge(gimple *call_stmt)
Definition cgraph.cc:742
unsigned local
Definition cgraph.h:1484
unsigned process
Definition cgraph.h:1448
void mark_address_taken(void)
Definition cgraph.cc:1989
unsigned redefined_extern_inline
Definition cgraph.h:1492
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:585
static void record_function_versions(tree decl1, tree decl2)
Definition cgraph.cc:237
int tp_first_run
Definition cgraph.h:1437
static cgraph_node * create(tree decl)
Definition cgraph.cc:506
bool will_be_removed_from_program_if_no_direct_calls_p(bool will_inline=false)
Definition cgraph.cc:3105
tree former_clone_of
Definition cgraph.h:1408
bool get_untransformed_body()
Definition cgraph.cc:4038
bool only_called_directly_or_aliased_p(void)
Definition cgraph.h:3118
cgraph_node * create_version_clone(tree new_decl, vec< cgraph_edge * > redirect_callers, bitmap bbs_to_copy, const char *suffix=NULL)
Definition cgraphclones.cc:938
cgraph_node * ultimate_alias_target(availability *availability=NULL, symtab_node *ref=NULL)
Definition cgraph.h:3247
static cgraph_node * get_for_asmname(tree asmname)
Definition cgraph.cc:662
cgraph_node * simd_clones
Definition cgraph.h:1414
unsigned merged_extern_inline
Definition cgraph.h:1475
bool add_detected_attribute(const char *attr)
Definition cgraph.cc:2672
int get_summary_id()
Definition cgraph.h:1315
void set_fini_priority(priority_type priority)
Definition symtab.cc:1895
unsigned dispatcher_function
Definition cgraph.h:1462
enum optimize_size_level optimize_for_size_p(void)
Definition cgraph.h:3362
bool set_pure_flag(bool pure, bool looping)
Definition cgraph.cc:2940
void remove_callers(void)
Definition cgraph.cc:1775
unsigned used_as_abstract_origin
Definition cgraph.h:1443
unsigned tm_may_enter_irr
Definition cgraph.h:1494
static struct cgraph_rtl_info * rtl_info(const_tree)
Definition cgraph.cc:2025
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:3110
rtx rtl
Definition cgraph.h:3102
tree value
Definition cgraph.h:3105
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:3462
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:750
static profile_count zero()
Definition profile-count.h:798
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:2181
priority_type init
Definition cgraph.h:2180
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:2694
tree get_alias_target_tree()
Definition cgraph.h:2706
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:2730
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:2763
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:2716
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:3389
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
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:3565
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:3378
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:2750
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:2673
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:3227
const char * get_symtab_type_string() const
Definition symtab.cc:884
bool real_symbol_p(void)
Definition cgraph.h:2645
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:3401
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:2740
symtab_node * next_sharing_asm_name
Definition cgraph.h:629
int get_uid()
Definition cgraph.h:494
void set_init_priority(priority_type priority)
Definition symtab.cc:1876
bool used_from_object_file_p(void)
Definition cgraph.h:2786
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:1534
vec< varpool_node * > nodes
Definition cgraph.h:1535
varpool_node_set set
Definition cgraph.h:1548
unsigned index
Definition cgraph.h:1549
bool can_remove_if_no_refs_p(void)
Definition cgraph.h:3169
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:3443
unsigned output
Definition cgraph.h:2111
varpool_node()
Definition cgraph.h:2003
varpool_node * ultimate_alias_target(availability *availability=NULL, symtab_node *ref=NULL)
Definition cgraph.h:3264
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:3215
static varpool_node * get(const_tree decl)
Definition cgraph.h:2798
bool assemble_decl(void)
Definition varpool.cc:564
bool all_refs_explicit_p()
Definition cgraph.h:3187
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:2117
bool ctor_useable_for_folding_p(void)
Definition varpool.cc:323
void remove(void)
Definition varpool.cc:172
unsigned dynamically_initialized
Definition cgraph.h:2115
unsigned used_by_single_function
Definition cgraph.h:2123
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:1082
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:1705
#define DECL_ASSEMBLER_NAME(NODE)
Definition tree.h:3253
#define DECL_HAS_VALUE_EXPR_P(NODE)
Definition tree.h:3016
#define DECL_SECTION_NAME(NODE)
Definition tree.h:3290
#define DECL_STATIC_CONSTRUCTOR(NODE)
Definition tree.h:3489
#define TYPE_MAIN_VARIANT(NODE)
Definition tree.h:2311
#define DECL_WEAK(NODE)
Definition tree.h:3220
#define DECL_STATIC_DESTRUCTOR(NODE)
Definition tree.h:3492
#define TREE_CODE(NODE)
Definition tree.h:324
#define DECL_ABSTRACT_P(NODE)
Definition tree.h:2919
#define DECL_COMDAT(NODE)
Definition tree.h:3235
#define opt_for_fn(fndecl, opt)
Definition tree.h:6250
#define DECL_INITIAL(NODE)
Definition tree.h:2839
#define TREE_STATIC(NODE)
Definition tree.h:772
#define DECL_COMMON(NODE)
Definition tree.h:3211
#define DECL_EXTERNAL(NODE)
Definition tree.h:2933
#define TREE_PUBLIC(NODE)
Definition tree.h:857
#define DECL_VIRTUAL_P(NODE)
Definition tree.h:2948
#define VAR_P(NODE)
Definition tree.h:235
#define NULL_TREE
Definition tree.h:317
#define DECL_P(NODE)
Definition tree.h:231
static bool set_implicit_section(struct symtab_node *n, void *data)
Definition varasm.cc:476
constexpr vnull vNULL
Definition vec.h:569