diff options
author | Martin Liska <mliska@suse.cz> | 2019-10-30 08:56:22 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-10-30 07:56:22 +0000 |
commit | 87f94429feeb72587549fdafd3106f1d799607ff (patch) | |
tree | 08ffc5d297681144170e188457770e59e6573fe1 /gcc/cgraph.h | |
parent | a62bfab5d2a332925fcf10c45b4c5d8ca499439d (diff) | |
download | gcc-87f94429feeb72587549fdafd3106f1d799607ff.zip gcc-87f94429feeb72587549fdafd3106f1d799607ff.tar.gz gcc-87f94429feeb72587549fdafd3106f1d799607ff.tar.bz2 |
Remove cgraph_local_info structure.
2019-10-30 Martin Liska <mliska@suse.cz>
* cgraph.c (cgraph_node::local_info): Transform to ...
(cgraph_node::local_info_node): ... this.
(cgraph_node::dump): Remove cgraph_local_info and
put its fields directly into cgraph_node.
(cgraph_node::get_availability): Likewise.
(cgraph_node::make_local): Likewise.
(cgraph_node::verify_node): Likewise.
* cgraph.h (struct GTY): Likewise.
* cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
(duplicate_thunk_for_node): Likewise.
(cgraph_node::create_clone): Likewise.
(cgraph_node::create_virtual_clone): Likewise.
(cgraph_node::create_version_clone): Likewise.
* cgraphunit.c (cgraph_node::reset): Likewise.
(cgraph_node::finalize_function): Likewise.
(cgraph_node::add_new_function): Likewise.
(analyze_functions): Likewise.
* combine.c (setup_incoming_promotions): Likewise.
* config/i386/i386.c (ix86_function_regparm): Likewise.
(ix86_function_sseregparm): Likewise.
(init_cumulative_args): Likewise.
* ipa-cp.c (determine_versionability): Likewise.
(count_callers): Likewise.
(set_single_call_flag): Likewise.
(initialize_node_lattices): Likewise.
(estimate_local_effects): Likewise.
(create_specialized_node): Likewise.
(identify_dead_nodes): Likewise.
* ipa-fnsummary.c (compute_fn_summary): Likewise.
(ipa_fn_summary_generate): Likewise.
* ipa-hsa.c (check_warn_node_versionable): Likewise.
(process_hsa_functions): Likewise.
* ipa-icf.c (set_local): Likewise.
* ipa-inline-analysis.c (initialize_inline_failed): Likewise.
* ipa-inline.c (speculation_useful_p): Likewise.
* ipa-profile.c (ipa_propagate_frequency): Likewise.
(ipa_profile): Likewise.
* ipa-split.c (split_function): Likewise.
(execute_split_functions): Likewise.
* ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
(ipa_sra_ipa_function_checks): Likewise.
* ipa-visibility.c (function_and_variable_visibility): Likewise.
* ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
* lto-cgraph.c (lto_output_node): Likewise.
(input_overwrite_node): Likewise.
* multiple_target.c (expand_target_clones): Likewise.
* omp-simd-clone.c (simd_clone_create): Likewise.
* trans-mem.c (expand_call_tm): Likewise.
(ipa_tm_mayenterirr_function): Likewise.
(ipa_tm_diagnose_tm_safe): Likewise.
(ipa_tm_diagnose_transaction): Likewise.
(ipa_tm_create_version): Likewise.
(ipa_tm_transform_calls_redirect): Likewise.
(ipa_tm_execute): Likewise.
* tree-inline.c (expand_call_inline): Likewise.
From-SVN: r277601
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 40 |
1 files changed, 14 insertions, 26 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 826d391..0c5a696 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -707,29 +707,6 @@ struct GTY(()) cgraph_thunk_info { bool thunk_p; }; -/* Information about the function collected locally. - Available after function is analyzed. */ - -struct GTY(()) cgraph_local_info { - /* Set when function is visible in current compilation unit only and - its address is never taken. */ - unsigned local : 1; - - /* False when there is something makes versioning impossible. */ - unsigned versionable : 1; - - /* False when function calling convention and signature cannot be changed. - This is the case when __builtin_apply_args is used. */ - unsigned can_change_signature : 1; - - /* True when the function has been originally extern inline, but it is - redefined now. */ - unsigned redefined_extern_inline : 1; - - /* True if the function may enter serial irrevocable mode. */ - unsigned tm_may_enter_irr : 1; -}; - /* Represent which DECL tree (or reference to such tree) will be replaced by another tree while versioning. */ struct GTY(()) ipa_replace_map @@ -1370,7 +1347,7 @@ struct GTY((tag ("SYMTAB_FUNCTION"))) cgraph_node : public symtab_node static cgraph_node * get_create (tree); /* Return local info for the compiled function. */ - static cgraph_local_info *local_info (tree decl); + static cgraph_node *local_info_node (tree decl); /* Return RTL info for the compiled function. */ static struct cgraph_rtl_info *rtl_info (const_tree); @@ -1436,8 +1413,6 @@ struct GTY((tag ("SYMTAB_FUNCTION"))) cgraph_node : public symtab_node per-function in order to allow IPA passes to introduce new functions. */ vec<ipa_opt_pass> GTY((skip)) ipa_transforms_to_apply; - cgraph_local_info local; - /* For inline clones this points to the function they will be inlined into. */ cgraph_node *inlined_to; @@ -1495,6 +1470,19 @@ struct GTY((tag ("SYMTAB_FUNCTION"))) cgraph_node : public symtab_node unsigned split_part : 1; /* True if the function appears as possible target of indirect call. */ unsigned indirect_call_target : 1; + /* Set when function is visible in current compilation unit only and + its address is never taken. */ + unsigned local : 1; + /* False when there is something makes versioning impossible. */ + unsigned versionable : 1; + /* False when function calling convention and signature cannot be changed. + This is the case when __builtin_apply_args is used. */ + unsigned can_change_signature : 1; + /* True when the function has been originally extern inline, but it is + redefined now. */ + unsigned redefined_extern_inline : 1; + /* True if the function may enter serial irrevocable mode. */ + unsigned tm_may_enter_irr : 1; private: /* Unique id of the node. */ |