aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-pass.h
diff options
context:
space:
mode:
authorKenneth Zadeck <zadeck@naturalbridge.com>2008-05-15 22:58:03 +0000
committerKenneth Zadeck <zadeck@gcc.gnu.org>2008-05-15 22:58:03 +0000
commit1920df6c2253448d27f4e8e016fa504810857649 (patch)
tree2c6ab8e53e59d94a67a634900e3ca0f68350582a /gcc/tree-pass.h
parentbe95b3555aa82872565a1e1ea85ff826a20c8e2e (diff)
downloadgcc-1920df6c2253448d27f4e8e016fa504810857649.zip
gcc-1920df6c2253448d27f4e8e016fa504810857649.tar.gz
gcc-1920df6c2253448d27f4e8e016fa504810857649.tar.bz2
cgraph.h (compute_inline_parameters): Made public.
2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com> * cgraph.h (compute_inline_parameters): Made public. * tree-pass.h (ipa_opt_pass): Removed function_generate_summary, variable_generate_summary, function_write_summary, variable_write_summary, variable_read_summary. Added generate_summary, write_summary, read_summary. * cgraphunit.c (cgraph_process_new_functions): Changed call from pass_ipa_inline.function_generate_summary, to compute_inline_parameters. * ipa-inline.c (compute_inline_parameters): Made public and added node parameter. (compute_inline_parameters_for_current): New function. (pass_inline_param): Now calls compute_inline_parameters_for_current. (inline_generate_summary): Removed parameter and made to loop over all cgraph nodes. (pass_ipa_inline): Updated for new IPA_PASS structure. * passes.c (execute_ipa_summary_passes): Now is called once per pass rather than once per node*pass. From-SVN: r135401
Diffstat (limited to 'gcc/tree-pass.h')
-rw-r--r--gcc/tree-pass.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h
index b1ac95f..8ec46e8 100644
--- a/gcc/tree-pass.h
+++ b/gcc/tree-pass.h
@@ -155,24 +155,24 @@ struct ipa_opt_pass
{
struct opt_pass pass;
- /* IPA passes can analyze function body and variable initializers using this
- hook and produce summary. */
- void (*function_generate_summary) (struct cgraph_node *);
- void (*variable_generate_summary) (struct varpool_node *);
-
- /* These hooks will be used to serialize IPA summaries on disk. For a moment
- they are just placeholders. */
- void (*function_write_summary) (struct cgraph_node *);
- void (*variable_write_summary) (struct varpool_node *);
- void (*function_read_summary) (struct cgraph_node *);
- void (*variable_read_summary) (struct varpool_node *);
+ /* IPA passes can analyze function body and variable initializers
+ using this hook and produce summary. */
+ void (*generate_summary) (void);
+
+ /* This hook is used to serialize IPA summaries on disk. */
+ void (*write_summary) (void);
+ /* For most ipa passes, the information can only be deserialized in
+ one chunk. However, function bodies are read function at a time
+ as needed so both calls are necessary. */
+ void (*read_summary) (void);
+ void (*function_read_summary) (struct cgraph_node *);
+
/* Results of interprocedural propagation of an IPA pass is applied to
function body via this hook. */
unsigned int function_transform_todo_flags_start;
unsigned int (*function_transform) (struct cgraph_node *);
void (*variable_transform) (struct varpool_node *);
-
};
/* Description of simple IPA pass. Simple IPA passes have just one execute