* config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
[official-gcc.git] / gcc / ipa-prop.h
blob48634d2e172a33f845e770270c4bd33b5a158782
1 /* Interprocedural analyses.
2 Copyright (C) 2005-2013 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
23 #include "tree.h"
24 #include "vec.h"
25 #include "cgraph.h"
26 #include "gimple.h"
27 #include "alloc-pool.h"
29 /* The following definitions and interfaces are used by
30 interprocedural analyses or parameters. */
32 #define IPA_UNDESCRIBED_USE -1
34 /* ipa-prop.c stuff (ipa-cp, indirect inlining): */
36 /* A jump function for a callsite represents the values passed as actual
37 arguments of the callsite. They were originally proposed in a paper called
38 "Interprocedural Constant Propagation", by David Callahan, Keith D Cooper,
39 Ken Kennedy, Linda Torczon in Comp86, pg 152-161. There are three main
40 types of values :
42 Pass-through - the caller's formal parameter is passed as an actual
43 argument, possibly one simple operation performed on it.
44 Constant - a constant (is_gimple_ip_invariant)is passed as an actual
45 argument.
46 Unknown - neither of the above.
48 IPA_JF_ANCESTOR is a special pass-through jump function, which means that
49 the result is an address of a part of the object pointed to by the formal
50 parameter to which the function refers. It is mainly intended to represent
51 getting addresses of of ancestor fields in C++
52 (e.g. &this_1(D)->D.1766.D.1756). Note that if the original pointer is
53 NULL, ancestor jump function must behave like a simple pass-through.
55 Other pass-through functions can either simply pass on an unchanged formal
56 parameter or can apply one simple binary operation to it (such jump
57 functions are called polynomial).
59 IPA_JF_KNOWN_TYPE is a special type of an "unknown" function that applies
60 only to pointer parameters. It means that even though we cannot prove that
61 the passed value is an interprocedural constant, we still know the exact
62 type of the containing object which may be valuable for devirtualization.
64 Jump functions are computed in ipa-prop.c by function
65 update_call_notes_after_inlining. Some information can be lost and jump
66 functions degraded accordingly when inlining, see
67 update_call_notes_after_inlining in the same file. */
69 enum jump_func_type
71 IPA_JF_UNKNOWN = 0, /* newly allocated and zeroed jump functions default */
72 IPA_JF_KNOWN_TYPE, /* represented by field known_type */
73 IPA_JF_CONST, /* represented by field costant */
74 IPA_JF_PASS_THROUGH, /* represented by field pass_through */
75 IPA_JF_ANCESTOR /* represented by field ancestor */
78 /* Structure holding data required to describe a known type jump function. */
79 struct GTY(()) ipa_known_type_data
81 /* Offset of the component of the base_type being described. */
82 HOST_WIDE_INT offset;
83 /* Type of the whole object. */
84 tree base_type;
85 /* Type of the component of the object that is being described. */
86 tree component_type;
89 struct ipa_cst_ref_desc;
91 /* Structure holding data required to describe a constant jump function. */
92 struct GTY(()) ipa_constant_data
94 /* THe value of the constant. */
95 tree value;
96 /* Pointer to the structure that describes the reference. */
97 struct ipa_cst_ref_desc GTY((skip)) *rdesc;
100 /* Structure holding data required to describe a pass-through jump function. */
102 struct GTY(()) ipa_pass_through_data
104 /* If an operation is to be performed on the original parameter, this is the
105 second (constant) operand. */
106 tree operand;
107 /* Number of the caller's formal parameter being passed. */
108 int formal_id;
109 /* Operation that is performed on the argument before it is passed on.
110 NOP_EXPR means no operation. Otherwise oper must be a simple binary
111 arithmetic operation where the caller's parameter is the first operand and
112 operand field from this structure is the second one. */
113 enum tree_code operation;
114 /* When the passed value is a pointer, it is set to true only when we are
115 certain that no write to the object it points to has occurred since the
116 caller functions started execution, except for changes noted in the
117 aggregate part of the jump function (see description of
118 ipa_agg_jump_function). The flag is used only when the operation is
119 NOP_EXPR. */
120 unsigned agg_preserved : 1;
122 /* When set to true, we guarantee that, if there is a C++ object pointed to
123 by this object, it does not undergo dynamic type change in the course of
124 functions decribed by this jump function. */
125 unsigned type_preserved : 1;
128 /* Structure holding data required to describe an ancestor pass-through
129 jump function. */
131 struct GTY(()) ipa_ancestor_jf_data
133 /* Offset of the field representing the ancestor. */
134 HOST_WIDE_INT offset;
135 /* Type of the result. */
136 tree type;
137 /* Number of the caller's formal parameter being passed. */
138 int formal_id;
139 /* Flag with the same meaning like agg_preserve in ipa_pass_through_data. */
140 unsigned agg_preserved : 1;
141 /* When set to true, we guarantee that, if there is a C++ object pointed to
142 by this object, it does not undergo dynamic type change in the course of
143 functions decribed by this jump function. */
144 unsigned type_preserved : 1;
147 /* An element in an aggegate part of a jump function describing a known value
148 at a given offset. When it is part of a pass-through jump function with
149 agg_preserved set or an ancestor jump function with agg_preserved set, all
150 unlisted positions are assumed to be preserved but the value can be a type
151 node, which means that the particular piece (starting at offset and having
152 the size of the type) is clobbered with an unknown value. When
153 agg_preserved is false or the type of the containing jump function is
154 different, all unlisted parts are assumed to be unknown and all values must
155 fulfill is_gimple_ip_invariant. */
157 typedef struct GTY(()) ipa_agg_jf_item
159 /* The offset at which the known value is located within the aggregate. */
160 HOST_WIDE_INT offset;
162 /* The known constant or type if this is a clobber. */
163 tree value;
164 } ipa_agg_jf_item_t;
167 /* Aggregate jump function - i.e. description of contents of aggregates passed
168 either by reference or value. */
170 struct GTY(()) ipa_agg_jump_function
172 /* Description of the individual items. */
173 vec<ipa_agg_jf_item_t, va_gc> *items;
174 /* True if the data was passed by reference (as opposed to by value). */
175 bool by_ref;
178 typedef struct ipa_agg_jump_function *ipa_agg_jump_function_p;
179 typedef struct ipa_agg_jump_function ipa_agg_jump_function_t;
181 /* A jump function for a callsite represents the values passed as actual
182 arguments of the callsite. See enum jump_func_type for the various
183 types of jump functions supported. */
184 typedef struct GTY (()) ipa_jump_func
186 /* Aggregate contants description. See struct ipa_agg_jump_function and its
187 description. */
188 struct ipa_agg_jump_function agg;
190 enum jump_func_type type;
191 /* Represents a value of a jump function. pass_through is used only in jump
192 function context. constant represents the actual constant in constant jump
193 functions and member_cst holds constant c++ member functions. */
194 union jump_func_value
196 struct ipa_known_type_data GTY ((tag ("IPA_JF_KNOWN_TYPE"))) known_type;
197 struct ipa_constant_data GTY ((tag ("IPA_JF_CONST"))) constant;
198 struct ipa_pass_through_data GTY ((tag ("IPA_JF_PASS_THROUGH"))) pass_through;
199 struct ipa_ancestor_jf_data GTY ((tag ("IPA_JF_ANCESTOR"))) ancestor;
200 } GTY ((desc ("%1.type"))) value;
201 } ipa_jump_func_t;
204 /* Return the offset of the component that is described by a known type jump
205 function JFUNC. */
207 static inline HOST_WIDE_INT
208 ipa_get_jf_known_type_offset (struct ipa_jump_func *jfunc)
210 gcc_checking_assert (jfunc->type == IPA_JF_KNOWN_TYPE);
211 return jfunc->value.known_type.offset;
214 /* Return the base type of a known type jump function JFUNC. */
216 static inline tree
217 ipa_get_jf_known_type_base_type (struct ipa_jump_func *jfunc)
219 gcc_checking_assert (jfunc->type == IPA_JF_KNOWN_TYPE);
220 return jfunc->value.known_type.base_type;
223 /* Return the component type of a known type jump function JFUNC. */
225 static inline tree
226 ipa_get_jf_known_type_component_type (struct ipa_jump_func *jfunc)
228 gcc_checking_assert (jfunc->type == IPA_JF_KNOWN_TYPE);
229 return jfunc->value.known_type.component_type;
232 /* Return the constant stored in a constant jump functin JFUNC. */
234 static inline tree
235 ipa_get_jf_constant (struct ipa_jump_func *jfunc)
237 gcc_checking_assert (jfunc->type == IPA_JF_CONST);
238 return jfunc->value.constant.value;
241 static inline struct ipa_cst_ref_desc *
242 ipa_get_jf_constant_rdesc (struct ipa_jump_func *jfunc)
244 gcc_checking_assert (jfunc->type == IPA_JF_CONST);
245 return jfunc->value.constant.rdesc;
248 /* Return the operand of a pass through jmp function JFUNC. */
250 static inline tree
251 ipa_get_jf_pass_through_operand (struct ipa_jump_func *jfunc)
253 gcc_checking_assert (jfunc->type == IPA_JF_PASS_THROUGH);
254 return jfunc->value.pass_through.operand;
257 /* Return the number of the caller's formal parameter that a pass through jump
258 function JFUNC refers to. */
260 static inline int
261 ipa_get_jf_pass_through_formal_id (struct ipa_jump_func *jfunc)
263 gcc_checking_assert (jfunc->type == IPA_JF_PASS_THROUGH);
264 return jfunc->value.pass_through.formal_id;
267 /* Return operation of a pass through jump function JFUNC. */
269 static inline enum tree_code
270 ipa_get_jf_pass_through_operation (struct ipa_jump_func *jfunc)
272 gcc_checking_assert (jfunc->type == IPA_JF_PASS_THROUGH);
273 return jfunc->value.pass_through.operation;
276 /* Return the agg_preserved flag of a pass through jump function JFUNC. */
278 static inline bool
279 ipa_get_jf_pass_through_agg_preserved (struct ipa_jump_func *jfunc)
281 gcc_checking_assert (jfunc->type == IPA_JF_PASS_THROUGH);
282 return jfunc->value.pass_through.agg_preserved;
285 /* Return the type_preserved flag of a pass through jump function JFUNC. */
287 static inline bool
288 ipa_get_jf_pass_through_type_preserved (struct ipa_jump_func *jfunc)
290 gcc_checking_assert (jfunc->type == IPA_JF_PASS_THROUGH);
291 return jfunc->value.pass_through.type_preserved;
294 /* Return the offset of an ancestor jump function JFUNC. */
296 static inline HOST_WIDE_INT
297 ipa_get_jf_ancestor_offset (struct ipa_jump_func *jfunc)
299 gcc_checking_assert (jfunc->type == IPA_JF_ANCESTOR);
300 return jfunc->value.ancestor.offset;
303 /* Return the result type of an ancestor jump function JFUNC. */
305 static inline tree
306 ipa_get_jf_ancestor_type (struct ipa_jump_func *jfunc)
308 gcc_checking_assert (jfunc->type == IPA_JF_ANCESTOR);
309 return jfunc->value.ancestor.type;
312 /* Return the number of the caller's formal parameter that an ancestor jump
313 function JFUNC refers to. */
315 static inline int
316 ipa_get_jf_ancestor_formal_id (struct ipa_jump_func *jfunc)
318 gcc_checking_assert (jfunc->type == IPA_JF_ANCESTOR);
319 return jfunc->value.ancestor.formal_id;
322 /* Return the agg_preserved flag of an ancestor jump function JFUNC. */
324 static inline bool
325 ipa_get_jf_ancestor_agg_preserved (struct ipa_jump_func *jfunc)
327 gcc_checking_assert (jfunc->type == IPA_JF_ANCESTOR);
328 return jfunc->value.ancestor.agg_preserved;
331 /* Return the type_preserved flag of an ancestor jump function JFUNC. */
333 static inline bool
334 ipa_get_jf_ancestor_type_preserved (struct ipa_jump_func *jfunc)
336 gcc_checking_assert (jfunc->type == IPA_JF_ANCESTOR);
337 return jfunc->value.ancestor.type_preserved;
340 /* Summary describing a single formal parameter. */
342 struct ipa_param_descriptor
344 /* PARAM_DECL of this parameter. */
345 tree decl;
346 /* If all uses of the parameter are described by ipa-prop structures, this
347 says how many there are. If any use could not be described by means of
348 ipa-prop structures, this is IPA_UNDESCRIBED_USE. */
349 int controlled_uses;
350 unsigned int move_cost : 31;
351 /* The parameter is used. */
352 unsigned used : 1;
355 typedef struct ipa_param_descriptor ipa_param_descriptor_t;
356 struct ipcp_lattice;
358 /* ipa_node_params stores information related to formal parameters of functions
359 and some other information for interprocedural passes that operate on
360 parameters (such as ipa-cp). */
362 struct ipa_node_params
364 /* Information about individual formal parameters that are gathered when
365 summaries are generated. */
366 vec<ipa_param_descriptor_t> descriptors;
367 /* Pointer to an array of structures describing individual formal
368 parameters. */
369 struct ipcp_param_lattices *lattices;
370 /* Only for versioned nodes this field would not be NULL,
371 it points to the node that IPA cp cloned from. */
372 struct cgraph_node *ipcp_orig_node;
373 /* If this node is an ipa-cp clone, these are the known values that describe
374 what it has been specialized for. */
375 vec<tree> known_vals;
376 /* Whether the param uses analysis has already been performed. */
377 unsigned uses_analysis_done : 1;
378 /* Whether the function is enqueued in ipa-cp propagation stack. */
379 unsigned node_enqueued : 1;
380 /* Whether we should create a specialized version based on values that are
381 known to be constant in all contexts. */
382 unsigned do_clone_for_all_contexts : 1;
383 /* Set if this is an IPA-CP clone for all contexts. */
384 unsigned is_all_contexts_clone : 1;
385 /* Node has been completely replaced by clones and will be removed after
386 ipa-cp is finished. */
387 unsigned node_dead : 1;
390 /* ipa_node_params access functions. Please use these to access fields that
391 are or will be shared among various passes. */
393 /* Return the number of formal parameters. */
395 static inline int
396 ipa_get_param_count (struct ipa_node_params *info)
398 return info->descriptors.length ();
401 /* Return the declaration of Ith formal parameter of the function corresponding
402 to INFO. Note there is no setter function as this array is built just once
403 using ipa_initialize_node_params. */
405 static inline tree
406 ipa_get_param (struct ipa_node_params *info, int i)
408 gcc_checking_assert (!flag_wpa);
409 return info->descriptors[i].decl;
412 /* Return the move cost of Ith formal parameter of the function corresponding
413 to INFO. */
415 static inline int
416 ipa_get_param_move_cost (struct ipa_node_params *info, int i)
418 return info->descriptors[i].move_cost;
421 /* Set the used flag corresponding to the Ith formal parameter of the function
422 associated with INFO to VAL. */
424 static inline void
425 ipa_set_param_used (struct ipa_node_params *info, int i, bool val)
427 info->descriptors[i].used = val;
430 /* Return how many uses described by ipa-prop a parameter has or
431 IPA_UNDESCRIBED_USE if there is a use that is not described by these
432 structures. */
433 static inline int
434 ipa_get_controlled_uses (struct ipa_node_params *info, int i)
436 return info->descriptors[i].controlled_uses;
439 /* Set the controlled counter of a given parameter. */
441 static inline void
442 ipa_set_controlled_uses (struct ipa_node_params *info, int i, int val)
444 info->descriptors[i].controlled_uses = val;
447 /* Return the used flag corresponding to the Ith formal parameter of the
448 function associated with INFO. */
450 static inline bool
451 ipa_is_param_used (struct ipa_node_params *info, int i)
453 return info->descriptors[i].used;
456 /* Information about replacements done in aggregates for a given node (each
457 node has its linked list). */
458 struct GTY(()) ipa_agg_replacement_value
460 /* Next item in the linked list. */
461 struct ipa_agg_replacement_value *next;
462 /* Offset within the aggregate. */
463 HOST_WIDE_INT offset;
464 /* The constant value. */
465 tree value;
466 /* The paramter index. */
467 int index;
468 /* Whether the value was passed by reference. */
469 bool by_ref;
472 typedef struct ipa_agg_replacement_value *ipa_agg_replacement_value_p;
474 void ipa_set_node_agg_value_chain (struct cgraph_node *node,
475 struct ipa_agg_replacement_value *aggvals);
477 /* ipa_edge_args stores information related to a callsite and particularly its
478 arguments. It can be accessed by the IPA_EDGE_REF macro. */
479 typedef struct GTY(()) ipa_edge_args
481 /* Vector of the callsite's jump function of each parameter. */
482 vec<ipa_jump_func_t, va_gc> *jump_functions;
483 } ipa_edge_args_t;
485 /* ipa_edge_args access functions. Please use these to access fields that
486 are or will be shared among various passes. */
488 /* Return the number of actual arguments. */
490 static inline int
491 ipa_get_cs_argument_count (struct ipa_edge_args *args)
493 return vec_safe_length (args->jump_functions);
496 /* Returns a pointer to the jump function for the ith argument. Please note
497 there is no setter function as jump functions are all set up in
498 ipa_compute_jump_functions. */
500 static inline struct ipa_jump_func *
501 ipa_get_ith_jump_func (struct ipa_edge_args *args, int i)
503 return &(*args->jump_functions)[i];
506 /* Vectors need to have typedefs of structures. */
507 typedef struct ipa_node_params ipa_node_params_t;
509 /* Types of vectors holding the infos. */
511 /* Vector where the parameter infos are actually stored. */
512 extern vec<ipa_node_params_t> ipa_node_params_vector;
513 /* Vector of known aggregate values in cloned nodes. */
514 extern GTY(()) vec<ipa_agg_replacement_value_p, va_gc> *ipa_node_agg_replacements;
515 /* Vector where the parameter infos are actually stored. */
516 extern GTY(()) vec<ipa_edge_args_t, va_gc> *ipa_edge_args_vector;
518 /* Return the associated parameter/argument info corresponding to the given
519 node/edge. */
520 #define IPA_NODE_REF(NODE) (&ipa_node_params_vector[(NODE)->uid])
521 #define IPA_EDGE_REF(EDGE) (&(*ipa_edge_args_vector)[(EDGE)->uid])
522 /* This macro checks validity of index returned by
523 ipa_get_param_decl_index function. */
524 #define IS_VALID_JUMP_FUNC_INDEX(I) ((I) != -1)
526 /* Creating and freeing ipa_node_params and ipa_edge_args. */
527 void ipa_create_all_node_params (void);
528 void ipa_create_all_edge_args (void);
529 void ipa_free_edge_args_substructures (struct ipa_edge_args *);
530 void ipa_free_node_params_substructures (struct ipa_node_params *);
531 void ipa_free_all_node_params (void);
532 void ipa_free_all_edge_args (void);
533 void ipa_free_all_structures_after_ipa_cp (void);
534 void ipa_free_all_structures_after_iinln (void);
535 void ipa_register_cgraph_hooks (void);
537 /* This function ensures the array of node param infos is big enough to
538 accommodate a structure for all nodes and reallocates it if not. */
540 static inline void
541 ipa_check_create_node_params (void)
543 if (!ipa_node_params_vector.exists ())
544 ipa_node_params_vector.create (cgraph_max_uid);
546 if (ipa_node_params_vector.length () <= (unsigned) cgraph_max_uid)
547 ipa_node_params_vector.safe_grow_cleared (cgraph_max_uid + 1);
550 /* This function ensures the array of edge arguments infos is big enough to
551 accommodate a structure for all edges and reallocates it if not. */
553 static inline void
554 ipa_check_create_edge_args (void)
556 if (vec_safe_length (ipa_edge_args_vector) <= (unsigned) cgraph_edge_max_uid)
557 vec_safe_grow_cleared (ipa_edge_args_vector, cgraph_edge_max_uid + 1);
560 /* Returns true if the array of edge infos is large enough to accommodate an
561 info for EDGE. The main purpose of this function is that debug dumping
562 function can check info availability without causing reallocations. */
564 static inline bool
565 ipa_edge_args_info_available_for_edge_p (struct cgraph_edge *edge)
567 return ((unsigned) edge->uid < vec_safe_length (ipa_edge_args_vector));
570 /* Return the aggregate replacements for NODE, if there are any. */
572 static inline struct ipa_agg_replacement_value *
573 ipa_get_agg_replacements_for_node (struct cgraph_node *node)
575 if ((unsigned) node->uid >= vec_safe_length (ipa_node_agg_replacements))
576 return NULL;
577 return (*ipa_node_agg_replacements)[node->uid];
580 /* Function formal parameters related computations. */
581 void ipa_initialize_node_params (struct cgraph_node *node);
582 bool ipa_propagate_indirect_call_infos (struct cgraph_edge *cs,
583 vec<cgraph_edge_p> *new_edges);
585 /* Indirect edge and binfo processing. */
586 tree ipa_get_indirect_edge_target (struct cgraph_edge *ie,
587 vec<tree> ,
588 vec<tree> ,
589 vec<ipa_agg_jump_function_p> );
590 struct cgraph_edge *ipa_make_edge_direct_to_target (struct cgraph_edge *, tree);
591 tree ipa_binfo_from_known_type_jfunc (struct ipa_jump_func *);
592 tree ipa_intraprocedural_devirtualization (gimple);
594 /* Functions related to both. */
595 void ipa_analyze_node (struct cgraph_node *);
597 /* Aggregate jump function related functions. */
598 tree ipa_find_agg_cst_for_param (struct ipa_agg_jump_function *, HOST_WIDE_INT,
599 bool);
600 bool ipa_load_from_parm_agg (struct ipa_node_params *, gimple, tree, int *,
601 HOST_WIDE_INT *, bool *);
603 /* Debugging interface. */
604 void ipa_print_node_params (FILE *, struct cgraph_node *node);
605 void ipa_print_all_params (FILE *);
606 void ipa_print_node_jump_functions (FILE *f, struct cgraph_node *node);
607 void ipa_print_all_jump_functions (FILE * f);
608 void ipcp_verify_propagated_values (void);
610 extern alloc_pool ipcp_values_pool;
611 extern alloc_pool ipcp_sources_pool;
612 extern alloc_pool ipcp_agg_lattice_pool;
614 /* Structure to describe transformations of formal parameters and actual
615 arguments. Each instance describes one new parameter and they are meant to
616 be stored in a vector. Additionally, most users will probably want to store
617 adjustments about parameters that are being removed altogether so that SSA
618 names belonging to them can be replaced by SSA names of an artificial
619 variable. */
620 struct ipa_parm_adjustment
622 /* The original PARM_DECL itself, helpful for processing of the body of the
623 function itself. Intended for traversing function bodies.
624 ipa_modify_formal_parameters, ipa_modify_call_arguments and
625 ipa_combine_adjustments ignore this and use base_index.
626 ipa_modify_formal_parameters actually sets this. */
627 tree base;
629 /* Type of the new parameter. However, if by_ref is true, the real type will
630 be a pointer to this type. */
631 tree type;
633 /* Alias refrerence type to be used in MEM_REFs when adjusting caller
634 arguments. */
635 tree alias_ptr_type;
637 /* The new declaration when creating/replacing a parameter. Created by
638 ipa_modify_formal_parameters, useful for functions modifying the body
639 accordingly. */
640 tree reduction;
642 /* New declaration of a substitute variable that we may use to replace all
643 non-default-def ssa names when a parm decl is going away. */
644 tree new_ssa_base;
646 /* If non-NULL and the original parameter is to be removed (copy_param below
647 is NULL), this is going to be its nonlocalized vars value. */
648 tree nonlocal_value;
650 /* Offset into the original parameter (for the cases when the new parameter
651 is a component of an original one). */
652 HOST_WIDE_INT offset;
654 /* Zero based index of the original parameter this one is based on. (ATM
655 there is no way to insert a new parameter out of the blue because there is
656 no need but if it arises the code can be easily exteded to do so.) */
657 int base_index;
659 /* This new parameter is an unmodified parameter at index base_index. */
660 unsigned copy_param : 1;
662 /* This adjustment describes a parameter that is about to be removed
663 completely. Most users will probably need to book keep those so that they
664 don't leave behinfd any non default def ssa names belonging to them. */
665 unsigned remove_param : 1;
667 /* The parameter is to be passed by reference. */
668 unsigned by_ref : 1;
671 typedef struct ipa_parm_adjustment ipa_parm_adjustment_t;
673 typedef vec<ipa_parm_adjustment_t> ipa_parm_adjustment_vec;
675 vec<tree> ipa_get_vector_of_formal_parms (tree fndecl);
676 void ipa_modify_formal_parameters (tree fndecl, ipa_parm_adjustment_vec,
677 const char *);
678 void ipa_modify_call_arguments (struct cgraph_edge *, gimple,
679 ipa_parm_adjustment_vec);
680 ipa_parm_adjustment_vec ipa_combine_adjustments (ipa_parm_adjustment_vec,
681 ipa_parm_adjustment_vec);
682 void ipa_dump_param_adjustments (FILE *, ipa_parm_adjustment_vec, tree);
683 void ipa_dump_agg_replacement_values (FILE *f,
684 struct ipa_agg_replacement_value *av);
685 void ipa_prop_write_jump_functions (void);
686 void ipa_prop_read_jump_functions (void);
687 void ipa_prop_write_all_agg_replacement (void);
688 void ipa_prop_read_all_agg_replacement (void);
689 void ipa_update_after_lto_read (void);
690 int ipa_get_param_decl_index (struct ipa_node_params *, tree);
691 tree ipa_value_from_jfunc (struct ipa_node_params *info,
692 struct ipa_jump_func *jfunc);
693 unsigned int ipcp_transform_function (struct cgraph_node *node);
694 void ipa_dump_param (FILE *, struct ipa_node_params *info, int i);
697 /* From tree-sra.c: */
698 tree build_ref_for_offset (location_t, tree, HOST_WIDE_INT, tree,
699 gimple_stmt_iterator *, bool);
701 #endif /* IPA_PROP_H */