* gcc.dg/store-motion-fgcse-sm.c (dg-final): Cleanup
[official-gcc.git] / gcc / ipa-prop.h
blob9190aad032507051a58b9b197d0b608e3ce1fcd2
1 /* Interprocedural analyses.
2 Copyright (C) 2005-2014 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
9 version.
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 #ifndef IPA_PROP_H
21 #define IPA_PROP_H
24 /* The following definitions and interfaces are used by
25 interprocedural analyses or parameters. */
27 #define IPA_UNDESCRIBED_USE -1
29 /* ipa-prop.c stuff (ipa-cp, indirect inlining): */
31 /* A jump function for a callsite represents the values passed as actual
32 arguments of the callsite. They were originally proposed in a paper called
33 "Interprocedural Constant Propagation", by David Callahan, Keith D Cooper,
34 Ken Kennedy, Linda Torczon in Comp86, pg 152-161. There are three main
35 types of values :
37 Pass-through - the caller's formal parameter is passed as an actual
38 argument, possibly one simple operation performed on it.
39 Constant - a constant (is_gimple_ip_invariant)is passed as an actual
40 argument.
41 Unknown - neither of the above.
43 IPA_JF_ANCESTOR is a special pass-through jump function, which means that
44 the result is an address of a part of the object pointed to by the formal
45 parameter to which the function refers. It is mainly intended to represent
46 getting addresses of of ancestor fields in C++
47 (e.g. &this_1(D)->D.1766.D.1756). Note that if the original pointer is
48 NULL, ancestor jump function must behave like a simple pass-through.
50 Other pass-through functions can either simply pass on an unchanged formal
51 parameter or can apply one simple binary operation to it (such jump
52 functions are called polynomial).
54 Jump functions are computed in ipa-prop.c by function
55 update_call_notes_after_inlining. Some information can be lost and jump
56 functions degraded accordingly when inlining, see
57 update_call_notes_after_inlining in the same file. */
59 enum jump_func_type
61 IPA_JF_UNKNOWN = 0, /* newly allocated and zeroed jump functions default */
62 IPA_JF_CONST, /* represented by field costant */
63 IPA_JF_PASS_THROUGH, /* represented by field pass_through */
64 IPA_JF_ANCESTOR /* represented by field ancestor */
67 struct ipa_cst_ref_desc;
69 /* Structure holding data required to describe a constant jump function. */
70 struct GTY(()) ipa_constant_data
72 /* THe value of the constant. */
73 tree value;
74 /* Pointer to the structure that describes the reference. */
75 struct ipa_cst_ref_desc GTY((skip)) *rdesc;
78 /* Structure holding data required to describe a pass-through jump function. */
80 struct GTY(()) ipa_pass_through_data
82 /* If an operation is to be performed on the original parameter, this is the
83 second (constant) operand. */
84 tree operand;
85 /* Number of the caller's formal parameter being passed. */
86 int formal_id;
87 /* Operation that is performed on the argument before it is passed on.
88 NOP_EXPR means no operation. Otherwise oper must be a simple binary
89 arithmetic operation where the caller's parameter is the first operand and
90 operand field from this structure is the second one. */
91 enum tree_code operation;
92 /* When the passed value is a pointer, it is set to true only when we are
93 certain that no write to the object it points to has occurred since the
94 caller functions started execution, except for changes noted in the
95 aggregate part of the jump function (see description of
96 ipa_agg_jump_function). The flag is used only when the operation is
97 NOP_EXPR. */
98 unsigned agg_preserved : 1;
101 /* Structure holding data required to describe an ancestor pass-through
102 jump function. */
104 struct GTY(()) ipa_ancestor_jf_data
106 /* Offset of the field representing the ancestor. */
107 HOST_WIDE_INT offset;
108 /* Number of the caller's formal parameter being passed. */
109 int formal_id;
110 /* Flag with the same meaning like agg_preserve in ipa_pass_through_data. */
111 unsigned agg_preserved : 1;
114 /* An element in an aggegate part of a jump function describing a known value
115 at a given offset. When it is part of a pass-through jump function with
116 agg_preserved set or an ancestor jump function with agg_preserved set, all
117 unlisted positions are assumed to be preserved but the value can be a type
118 node, which means that the particular piece (starting at offset and having
119 the size of the type) is clobbered with an unknown value. When
120 agg_preserved is false or the type of the containing jump function is
121 different, all unlisted parts are assumed to be unknown and all values must
122 fulfill is_gimple_ip_invariant. */
124 struct GTY(()) ipa_agg_jf_item
126 /* The offset at which the known value is located within the aggregate. */
127 HOST_WIDE_INT offset;
129 /* The known constant or type if this is a clobber. */
130 tree value;
134 /* Aggregate jump function - i.e. description of contents of aggregates passed
135 either by reference or value. */
137 struct GTY(()) ipa_agg_jump_function
139 /* Description of the individual items. */
140 vec<ipa_agg_jf_item, va_gc> *items;
141 /* True if the data was passed by reference (as opposed to by value). */
142 bool by_ref;
145 typedef struct ipa_agg_jump_function *ipa_agg_jump_function_p;
147 /* A jump function for a callsite represents the values passed as actual
148 arguments of the callsite. See enum jump_func_type for the various
149 types of jump functions supported. */
150 struct GTY (()) ipa_jump_func
152 /* Aggregate contants description. See struct ipa_agg_jump_function and its
153 description. */
154 struct ipa_agg_jump_function agg;
156 enum jump_func_type type;
157 /* Represents a value of a jump function. pass_through is used only in jump
158 function context. constant represents the actual constant in constant jump
159 functions and member_cst holds constant c++ member functions. */
160 union jump_func_value
162 struct ipa_constant_data GTY ((tag ("IPA_JF_CONST"))) constant;
163 struct ipa_pass_through_data GTY ((tag ("IPA_JF_PASS_THROUGH"))) pass_through;
164 struct ipa_ancestor_jf_data GTY ((tag ("IPA_JF_ANCESTOR"))) ancestor;
165 } GTY ((desc ("%1.type"))) value;
169 /* Return the constant stored in a constant jump functin JFUNC. */
171 static inline tree
172 ipa_get_jf_constant (struct ipa_jump_func *jfunc)
174 gcc_checking_assert (jfunc->type == IPA_JF_CONST);
175 return jfunc->value.constant.value;
178 static inline struct ipa_cst_ref_desc *
179 ipa_get_jf_constant_rdesc (struct ipa_jump_func *jfunc)
181 gcc_checking_assert (jfunc->type == IPA_JF_CONST);
182 return jfunc->value.constant.rdesc;
185 /* Return the operand of a pass through jmp function JFUNC. */
187 static inline tree
188 ipa_get_jf_pass_through_operand (struct ipa_jump_func *jfunc)
190 gcc_checking_assert (jfunc->type == IPA_JF_PASS_THROUGH);
191 return jfunc->value.pass_through.operand;
194 /* Return the number of the caller's formal parameter that a pass through jump
195 function JFUNC refers to. */
197 static inline int
198 ipa_get_jf_pass_through_formal_id (struct ipa_jump_func *jfunc)
200 gcc_checking_assert (jfunc->type == IPA_JF_PASS_THROUGH);
201 return jfunc->value.pass_through.formal_id;
204 /* Return operation of a pass through jump function JFUNC. */
206 static inline enum tree_code
207 ipa_get_jf_pass_through_operation (struct ipa_jump_func *jfunc)
209 gcc_checking_assert (jfunc->type == IPA_JF_PASS_THROUGH);
210 return jfunc->value.pass_through.operation;
213 /* Return the agg_preserved flag of a pass through jump function JFUNC. */
215 static inline bool
216 ipa_get_jf_pass_through_agg_preserved (struct ipa_jump_func *jfunc)
218 gcc_checking_assert (jfunc->type == IPA_JF_PASS_THROUGH);
219 return jfunc->value.pass_through.agg_preserved;
222 /* Return true if pass through jump function JFUNC preserves type
223 information. */
225 static inline bool
226 ipa_get_jf_pass_through_type_preserved (struct ipa_jump_func *jfunc)
228 gcc_checking_assert (jfunc->type == IPA_JF_PASS_THROUGH);
229 return jfunc->value.pass_through.agg_preserved;
232 /* Return the offset of an ancestor jump function JFUNC. */
234 static inline HOST_WIDE_INT
235 ipa_get_jf_ancestor_offset (struct ipa_jump_func *jfunc)
237 gcc_checking_assert (jfunc->type == IPA_JF_ANCESTOR);
238 return jfunc->value.ancestor.offset;
241 /* Return the number of the caller's formal parameter that an ancestor jump
242 function JFUNC refers to. */
244 static inline int
245 ipa_get_jf_ancestor_formal_id (struct ipa_jump_func *jfunc)
247 gcc_checking_assert (jfunc->type == IPA_JF_ANCESTOR);
248 return jfunc->value.ancestor.formal_id;
251 /* Return the agg_preserved flag of an ancestor jump function JFUNC. */
253 static inline bool
254 ipa_get_jf_ancestor_agg_preserved (struct ipa_jump_func *jfunc)
256 gcc_checking_assert (jfunc->type == IPA_JF_ANCESTOR);
257 return jfunc->value.ancestor.agg_preserved;
260 /* Return true if ancestor jump function JFUNC presrves type information. */
262 static inline bool
263 ipa_get_jf_ancestor_type_preserved (struct ipa_jump_func *jfunc)
265 gcc_checking_assert (jfunc->type == IPA_JF_ANCESTOR);
266 return jfunc->value.ancestor.agg_preserved;
269 /* Summary describing a single formal parameter. */
271 struct ipa_param_descriptor
273 /* PARAM_DECL of this parameter. */
274 tree decl;
275 /* If all uses of the parameter are described by ipa-prop structures, this
276 says how many there are. If any use could not be described by means of
277 ipa-prop structures, this is IPA_UNDESCRIBED_USE. */
278 int controlled_uses;
279 unsigned int move_cost : 31;
280 /* The parameter is used. */
281 unsigned used : 1;
284 /* ipa_node_params stores information related to formal parameters of functions
285 and some other information for interprocedural passes that operate on
286 parameters (such as ipa-cp). */
288 struct ipa_node_params
290 /* Information about individual formal parameters that are gathered when
291 summaries are generated. */
292 vec<ipa_param_descriptor> descriptors;
293 /* Pointer to an array of structures describing individual formal
294 parameters. */
295 struct ipcp_param_lattices *lattices;
296 /* Only for versioned nodes this field would not be NULL,
297 it points to the node that IPA cp cloned from. */
298 struct cgraph_node *ipcp_orig_node;
299 /* If this node is an ipa-cp clone, these are the known constants that
300 describe what it has been specialized for. */
301 vec<tree> known_csts;
302 /* If this node is an ipa-cp clone, these are the known polymorphic contexts
303 that describe what it has been specialized for. */
304 vec<ipa_polymorphic_call_context> known_contexts;
305 /* Whether the param uses analysis and jump function computation has already
306 been performed. */
307 unsigned analysis_done : 1;
308 /* Whether the function is enqueued in ipa-cp propagation stack. */
309 unsigned node_enqueued : 1;
310 /* Whether we should create a specialized version based on values that are
311 known to be constant in all contexts. */
312 unsigned do_clone_for_all_contexts : 1;
313 /* Set if this is an IPA-CP clone for all contexts. */
314 unsigned is_all_contexts_clone : 1;
315 /* Node has been completely replaced by clones and will be removed after
316 ipa-cp is finished. */
317 unsigned node_dead : 1;
320 /* ipa_node_params access functions. Please use these to access fields that
321 are or will be shared among various passes. */
323 /* Return the number of formal parameters. */
325 static inline int
326 ipa_get_param_count (struct ipa_node_params *info)
328 return info->descriptors.length ();
331 /* Return the declaration of Ith formal parameter of the function corresponding
332 to INFO. Note there is no setter function as this array is built just once
333 using ipa_initialize_node_params. */
335 static inline tree
336 ipa_get_param (struct ipa_node_params *info, int i)
338 gcc_checking_assert (!flag_wpa);
339 return info->descriptors[i].decl;
342 /* Return the move cost of Ith formal parameter of the function corresponding
343 to INFO. */
345 static inline int
346 ipa_get_param_move_cost (struct ipa_node_params *info, int i)
348 return info->descriptors[i].move_cost;
351 /* Set the used flag corresponding to the Ith formal parameter of the function
352 associated with INFO to VAL. */
354 static inline void
355 ipa_set_param_used (struct ipa_node_params *info, int i, bool val)
357 info->descriptors[i].used = val;
360 /* Return how many uses described by ipa-prop a parameter has or
361 IPA_UNDESCRIBED_USE if there is a use that is not described by these
362 structures. */
363 static inline int
364 ipa_get_controlled_uses (struct ipa_node_params *info, int i)
366 /* FIXME: introducing speuclation causes out of bounds access here. */
367 if (info->descriptors.length () > (unsigned)i)
368 return info->descriptors[i].controlled_uses;
369 return IPA_UNDESCRIBED_USE;
372 /* Set the controlled counter of a given parameter. */
374 static inline void
375 ipa_set_controlled_uses (struct ipa_node_params *info, int i, int val)
377 info->descriptors[i].controlled_uses = val;
380 /* Return the used flag corresponding to the Ith formal parameter of the
381 function associated with INFO. */
383 static inline bool
384 ipa_is_param_used (struct ipa_node_params *info, int i)
386 return info->descriptors[i].used;
389 /* Information about replacements done in aggregates for a given node (each
390 node has its linked list). */
391 struct GTY(()) ipa_agg_replacement_value
393 /* Next item in the linked list. */
394 struct ipa_agg_replacement_value *next;
395 /* Offset within the aggregate. */
396 HOST_WIDE_INT offset;
397 /* The constant value. */
398 tree value;
399 /* The paramter index. */
400 int index;
401 /* Whether the value was passed by reference. */
402 bool by_ref;
405 typedef struct ipa_agg_replacement_value *ipa_agg_replacement_value_p;
407 void ipa_set_node_agg_value_chain (struct cgraph_node *node,
408 struct ipa_agg_replacement_value *aggvals);
410 /* ipa_edge_args stores information related to a callsite and particularly its
411 arguments. It can be accessed by the IPA_EDGE_REF macro. */
412 struct GTY(()) ipa_edge_args
414 /* Vector of the callsite's jump function of each parameter. */
415 vec<ipa_jump_func, va_gc> *jump_functions;
416 vec<ipa_polymorphic_call_context, va_gc> *polymorphic_call_contexts;
419 /* ipa_edge_args access functions. Please use these to access fields that
420 are or will be shared among various passes. */
422 /* Return the number of actual arguments. */
424 static inline int
425 ipa_get_cs_argument_count (struct ipa_edge_args *args)
427 return vec_safe_length (args->jump_functions);
430 /* Returns a pointer to the jump function for the ith argument. Please note
431 there is no setter function as jump functions are all set up in
432 ipa_compute_jump_functions. */
434 static inline struct ipa_jump_func *
435 ipa_get_ith_jump_func (struct ipa_edge_args *args, int i)
437 return &(*args->jump_functions)[i];
440 /* Returns a pointer to the polymorphic call context for the ith argument.
441 NULL if contexts are not computed. */
442 static inline struct ipa_polymorphic_call_context *
443 ipa_get_ith_polymorhic_call_context (struct ipa_edge_args *args, int i)
445 if (!args->polymorphic_call_contexts)
446 return NULL;
447 return &(*args->polymorphic_call_contexts)[i];
450 /* Types of vectors holding the infos. */
452 /* Vector where the parameter infos are actually stored. */
453 extern vec<ipa_node_params> ipa_node_params_vector;
454 /* Vector of known aggregate values in cloned nodes. */
455 extern GTY(()) vec<ipa_agg_replacement_value_p, va_gc> *ipa_node_agg_replacements;
456 /* Vector where the parameter infos are actually stored. */
457 extern GTY(()) vec<ipa_edge_args, va_gc> *ipa_edge_args_vector;
459 /* Return the associated parameter/argument info corresponding to the given
460 node/edge. */
461 #define IPA_NODE_REF(NODE) (&ipa_node_params_vector[(NODE)->uid])
462 #define IPA_EDGE_REF(EDGE) (&(*ipa_edge_args_vector)[(EDGE)->uid])
463 /* This macro checks validity of index returned by
464 ipa_get_param_decl_index function. */
465 #define IS_VALID_JUMP_FUNC_INDEX(I) ((I) != -1)
467 /* Creating and freeing ipa_node_params and ipa_edge_args. */
468 void ipa_create_all_node_params (void);
469 void ipa_create_all_edge_args (void);
470 void ipa_free_edge_args_substructures (struct ipa_edge_args *);
471 void ipa_free_node_params_substructures (struct ipa_node_params *);
472 void ipa_free_all_node_params (void);
473 void ipa_free_all_edge_args (void);
474 void ipa_free_all_structures_after_ipa_cp (void);
475 void ipa_free_all_structures_after_iinln (void);
476 void ipa_register_cgraph_hooks (void);
477 int count_formal_params (tree fndecl);
479 /* This function ensures the array of node param infos is big enough to
480 accommodate a structure for all nodes and reallocates it if not. */
482 static inline void
483 ipa_check_create_node_params (void)
485 if (!ipa_node_params_vector.exists ())
486 ipa_node_params_vector.create (symtab->cgraph_max_uid);
488 if (ipa_node_params_vector.length () <= (unsigned) symtab->cgraph_max_uid)
489 ipa_node_params_vector.safe_grow_cleared (symtab->cgraph_max_uid + 1);
492 /* This function ensures the array of edge arguments infos is big enough to
493 accommodate a structure for all edges and reallocates it if not. */
495 static inline void
496 ipa_check_create_edge_args (void)
498 if (vec_safe_length (ipa_edge_args_vector)
499 <= (unsigned) symtab->edges_max_uid)
500 vec_safe_grow_cleared (ipa_edge_args_vector, symtab->edges_max_uid + 1);
503 /* Returns true if the array of edge infos is large enough to accommodate an
504 info for EDGE. The main purpose of this function is that debug dumping
505 function can check info availability without causing reallocations. */
507 static inline bool
508 ipa_edge_args_info_available_for_edge_p (struct cgraph_edge *edge)
510 return ((unsigned) edge->uid < vec_safe_length (ipa_edge_args_vector));
513 /* Return the aggregate replacements for NODE, if there are any. */
515 static inline struct ipa_agg_replacement_value *
516 ipa_get_agg_replacements_for_node (struct cgraph_node *node)
518 if ((unsigned) node->uid >= vec_safe_length (ipa_node_agg_replacements))
519 return NULL;
520 return (*ipa_node_agg_replacements)[node->uid];
523 /* Function formal parameters related computations. */
524 void ipa_initialize_node_params (struct cgraph_node *node);
525 bool ipa_propagate_indirect_call_infos (struct cgraph_edge *cs,
526 vec<cgraph_edge *> *new_edges);
528 /* Indirect edge and binfo processing. */
529 tree ipa_get_indirect_edge_target (struct cgraph_edge *ie,
530 vec<tree> ,
531 vec<ipa_polymorphic_call_context>,
532 vec<ipa_agg_jump_function_p>,
533 bool *);
534 struct cgraph_edge *ipa_make_edge_direct_to_target (struct cgraph_edge *, tree,
535 bool speculative = false);
536 tree ipa_impossible_devirt_target (struct cgraph_edge *, tree);
538 /* Functions related to both. */
539 void ipa_analyze_node (struct cgraph_node *);
541 /* Aggregate jump function related functions. */
542 tree ipa_find_agg_cst_for_param (struct ipa_agg_jump_function *, HOST_WIDE_INT,
543 bool);
544 bool ipa_load_from_parm_agg (struct ipa_node_params *, gimple, tree, int *,
545 HOST_WIDE_INT *, bool *);
547 /* Debugging interface. */
548 void ipa_print_node_params (FILE *, struct cgraph_node *node);
549 void ipa_print_all_params (FILE *);
550 void ipa_print_node_jump_functions (FILE *f, struct cgraph_node *node);
551 void ipa_print_all_jump_functions (FILE * f);
552 void ipcp_verify_propagated_values (void);
554 extern alloc_pool ipcp_cst_values_pool;
555 extern alloc_pool ipcp_poly_ctx_values_pool;
556 extern alloc_pool ipcp_sources_pool;
557 extern alloc_pool ipcp_agg_lattice_pool;
559 /* Operation to be performed for the parameter in ipa_parm_adjustment
560 below. */
561 enum ipa_parm_op {
562 IPA_PARM_OP_NONE,
564 /* This describes a brand new parameter.
566 The field `type' should be set to the new type, `arg_prefix'
567 should be set to the string prefix for the new DECL_NAME, and
568 `new_decl' will ultimately hold the newly created argument. */
569 IPA_PARM_OP_NEW,
571 /* This new parameter is an unmodified parameter at index base_index. */
572 IPA_PARM_OP_COPY,
574 /* This adjustment describes a parameter that is about to be removed
575 completely. Most users will probably need to book keep those so that they
576 don't leave behinfd any non default def ssa names belonging to them. */
577 IPA_PARM_OP_REMOVE
580 /* Structure to describe transformations of formal parameters and actual
581 arguments. Each instance describes one new parameter and they are meant to
582 be stored in a vector. Additionally, most users will probably want to store
583 adjustments about parameters that are being removed altogether so that SSA
584 names belonging to them can be replaced by SSA names of an artificial
585 variable. */
586 struct ipa_parm_adjustment
588 /* The original PARM_DECL itself, helpful for processing of the body of the
589 function itself. Intended for traversing function bodies.
590 ipa_modify_formal_parameters, ipa_modify_call_arguments and
591 ipa_combine_adjustments ignore this and use base_index.
592 ipa_modify_formal_parameters actually sets this. */
593 tree base;
595 /* Type of the new parameter. However, if by_ref is true, the real type will
596 be a pointer to this type. */
597 tree type;
599 /* Alias refrerence type to be used in MEM_REFs when adjusting caller
600 arguments. */
601 tree alias_ptr_type;
603 /* The new declaration when creating/replacing a parameter. Created
604 by ipa_modify_formal_parameters, useful for functions modifying
605 the body accordingly. For brand new arguments, this is the newly
606 created argument. */
607 tree new_decl;
609 /* New declaration of a substitute variable that we may use to replace all
610 non-default-def ssa names when a parm decl is going away. */
611 tree new_ssa_base;
613 /* If non-NULL and the original parameter is to be removed (copy_param below
614 is NULL), this is going to be its nonlocalized vars value. */
615 tree nonlocal_value;
617 /* This holds the prefix to be used for the new DECL_NAME. */
618 const char *arg_prefix;
620 /* Offset into the original parameter (for the cases when the new parameter
621 is a component of an original one). */
622 HOST_WIDE_INT offset;
624 /* Zero based index of the original parameter this one is based on. */
625 int base_index;
627 /* Whether this parameter is a new parameter, a copy of an old one,
628 or one about to be removed. */
629 enum ipa_parm_op op;
631 /* The parameter is to be passed by reference. */
632 unsigned by_ref : 1;
635 typedef vec<ipa_parm_adjustment> ipa_parm_adjustment_vec;
637 vec<tree> ipa_get_vector_of_formal_parms (tree fndecl);
638 vec<tree> ipa_get_vector_of_formal_parm_types (tree fntype);
639 void ipa_modify_formal_parameters (tree fndecl, ipa_parm_adjustment_vec);
640 void ipa_modify_call_arguments (struct cgraph_edge *, gcall *,
641 ipa_parm_adjustment_vec);
642 ipa_parm_adjustment_vec ipa_combine_adjustments (ipa_parm_adjustment_vec,
643 ipa_parm_adjustment_vec);
644 void ipa_dump_param_adjustments (FILE *, ipa_parm_adjustment_vec, tree);
645 void ipa_dump_agg_replacement_values (FILE *f,
646 struct ipa_agg_replacement_value *av);
647 void ipa_prop_write_jump_functions (void);
648 void ipa_prop_read_jump_functions (void);
649 void ipa_prop_write_all_agg_replacement (void);
650 void ipa_prop_read_all_agg_replacement (void);
651 void ipa_update_after_lto_read (void);
652 int ipa_get_param_decl_index (struct ipa_node_params *, tree);
653 tree ipa_value_from_jfunc (struct ipa_node_params *info,
654 struct ipa_jump_func *jfunc);
655 unsigned int ipcp_transform_function (struct cgraph_node *node);
656 ipa_polymorphic_call_context ipa_context_from_jfunc (ipa_node_params *,
657 cgraph_edge *,
658 int,
659 ipa_jump_func *);
660 void ipa_dump_param (FILE *, struct ipa_node_params *info, int i);
661 bool ipa_modify_expr (tree *, bool, ipa_parm_adjustment_vec);
662 ipa_parm_adjustment *ipa_get_adjustment_candidate (tree **, bool *,
663 ipa_parm_adjustment_vec,
664 bool);
667 /* From tree-sra.c: */
668 tree build_ref_for_offset (location_t, tree, HOST_WIDE_INT, tree,
669 gimple_stmt_iterator *, bool);
671 /* In ipa-cp.c */
672 void ipa_cp_c_finalize (void);
674 #endif /* IPA_PROP_H */