GCC Middle and Back End API Reference
function.h
Go to the documentation of this file.
1/* Structure for saving state for a nested function.
2 Copyright (C) 1989-2026 Free Software Foundation, Inc.
3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify it under
7the terms of the GNU General Public License as published by the Free
8Software Foundation; either version 3, or (at your option) any later
9version.
10
11GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or
13FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14for more details.
15
16You should have received a copy of the GNU General Public License
17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
19
20#ifndef GCC_FUNCTION_H
21#define GCC_FUNCTION_H
22
23
24/* Stack of pending (incomplete) sequences saved by `start_sequence'.
25 Each element describes one pending sequence.
26 The main insn-chain is saved in the last element of the chain,
27 unless the chain is empty. */
28
29struct GTY(()) sequence_stack {
30 /* First and last insns in the chain of the saved sequence. */
34};
35
36struct GTY(()) emit_status {
38
39 /* This is reset to LAST_VIRTUAL_REGISTER + 1 at the start of each function.
40 After rtl generation, it is 1 plus the largest register number used. */
42
43 /* Lowest label number in current function. */
45
46 /* seq.first and seq.last are the ends of the doubly-linked chain of
47 rtl for the current function. Both are reset to null at the
48 start of rtl generation for the function.
49
50 start_sequence saves both of these on seq.next and then starts
51 a new, nested sequence of insns.
52
53 seq.next is a stack of pending (incomplete) sequences saved by
54 start_sequence. Each element describes one pending sequence.
55 The main insn-chain is the last element of the chain. */
57
58 /* INSN_UID for next insn emitted.
59 Reset to 1 for each function compiled. */
61
62 /* INSN_UID for next debug insn emitted. Only used if
63 --param min-nondebug-insn-uid=<value> is given with nonzero value. */
65
66 /* The length of the regno_pointer_align, regno_decl, and x_regno_reg_rtx
67 vectors. Since these vectors are needed during the expansion phase when
68 the total number of registers in the function is not yet known, the
69 vectors are copied and made bigger when necessary. */
71
72 /* Indexed by pseudo register number, if nonzero gives the known alignment
73 for that pseudo (if REG_POINTER is set in x_regno_reg_rtx).
74 Allocated in parallel with x_regno_reg_rtx. */
75 unsigned char * GTY((skip)) regno_pointer_align;
76};
77
78
79/* Indexed by register number, gives an rtx for that register (and only
80 that register). For pseudo registers, it is the unique rtx for
81 that pseudo. For hard registers, it is an rtx of the mode specified
82 by reg_raw_mode.
83
84 FIXME: We could put it into emit_status struct, but gengtype is not
85 able to deal with length attribute nested in top level structures. */
86
87extern GTY ((length ("crtl->emit.x_reg_rtx_no"))) rtx * regno_reg_rtx;
88
89/* For backward compatibility... eventually these should all go away. */
90#define reg_rtx_no (crtl->emit.x_reg_rtx_no)
91
92#define REGNO_POINTER_ALIGN(REGNO) (crtl->emit.regno_pointer_align[REGNO])
93
94struct GTY(()) expr_status {
95 /* Number of units that we should eventually pop off the stack.
96 These are the arguments to function calls that have already returned. */
98
99 /* Under some ABIs, it is the caller's responsibility to pop arguments
100 pushed for function calls. A naive implementation would simply pop
101 the arguments immediately after each call. However, if several
102 function calls are made in a row, it is typically cheaper to pop
103 all the arguments after all of the calls are complete since a
104 single pop instruction can be used. Therefore, GCC attempts to
105 defer popping the arguments until absolutely necessary. (For
106 example, at the end of a conditional, the arguments must be popped,
107 since code outside the conditional won't know whether or not the
108 arguments need to be popped.)
109
110 When INHIBIT_DEFER_POP is nonzero, however, the compiler does not
111 attempt to defer pops. Instead, the stack is popped immediately
112 after each call. Rather then setting this variable directly, use
113 NO_DEFER_POP and OK_DEFER_POP. */
115
116 /* If PREFERRED_STACK_BOUNDARY and PUSH_ROUNDING are defined, the stack
117 boundary can be momentarily unaligned while pushing the arguments.
118 Record the delta since last aligned boundary here in order to get
119 stack alignment in the nested function calls working right. */
121
122 /* Nonzero means __builtin_saveregs has already been done in this function.
123 The value is the pseudoreg containing the value __builtin_saveregs
124 returned. */
126
127 /* Similarly for __builtin_apply_args. */
129
130 /* List of labels that must never be deleted. */
132};
133
135
136/* RTL representation of exception handling. */
149
150#define pending_stack_adjust (crtl->expr.x_pending_stack_adjust)
151#define inhibit_defer_pop (crtl->expr.x_inhibit_defer_pop)
152#define saveregs_value (crtl->expr.x_saveregs_value)
153#define apply_args_value (crtl->expr.x_apply_args_value)
154#define forced_labels (crtl->expr.x_forced_labels)
155#define stack_pointer_delta (crtl->expr.x_stack_pointer_delta)
156
157struct gimple_df;
158struct call_site_record_d;
159struct dw_fde_node;
160class range_query;
161
162struct GTY(()) varasm_status {
163 /* If we're using a per-function constant pool, this is it. */
165
166 /* Number of tree-constants deferred during the expansion of this
167 function. */
168 unsigned int deferred_constants;
169};
170
171
172/* Data for function partitioning. */
174 /* Assembly labels for the hot and cold text sections, to
175 be used by debugger functions for determining the size of text
176 sections. */
177
178 const char *hot_section_label;
182};
183
184/* Describe an empty area of space in the stack frame. These can be chained
185 into a list; this is used to keep track of space wasted for alignment
186 reasons. */
188{
189public:
191
194};
195
196/* Describe emitted calls for -fcallgraph-info. */
198{
199 location_t location;
201};
202
203/* Describe dynamic allocation for -fcallgraph-info=da. */
205{
206 location_t location;
207 char const *name;
208};
209
211{
212public:
213 /* # of bytes of static stack space allocated by the function. */
214 HOST_WIDE_INT static_stack_size;
215
216 /* # of bytes of dynamic stack space allocated by the function. This is
217 meaningful only if has_unbounded_dynamic_stack_size is zero. */
218 HOST_WIDE_INT dynamic_stack_size;
219
220 /* Upper bound on the number of bytes pushed onto the stack after the
221 prologue. If !ACCUMULATE_OUTGOING_ARGS, it contains the outgoing
222 arguments. */
224
225 /* Nonzero if the amount of stack space allocated dynamically cannot
226 be bounded at compile-time. */
228
229 /* Functions called within the function, if callgraph is enabled. */
231
232 /* Dynamic allocations encountered within the function, if callgraph
233 da is enabled. */
235};
236
237#define current_function_static_stack_size (cfun->su->static_stack_size)
238#define current_function_dynamic_stack_size (cfun->su->dynamic_stack_size)
239#define current_function_pushed_stack_size (cfun->su->pushed_stack_size)
240#define current_function_has_unbounded_dynamic_stack_size \
241 (cfun->su->has_unbounded_dynamic_stack_size)
242#define current_function_allocates_dynamic_stack_space \
243 (current_function_dynamic_stack_size != 0 \
244 || current_function_has_unbounded_dynamic_stack_size)
245
246/* This structure can save all the important global and static variables
247 describing the status of the current function. */
248
249struct GTY(()) function {
250 struct eh_status *eh;
251
252 /* The control flow graph for this function. */
254
255 /* GIMPLE body for this function. */
257
258 /* SSA and dataflow information. */
260
261 /* The loops in this function. */
263
264 /* Filled by the GIMPLE and RTL FEs, pass to start compilation with. */
266
267 /* The stack usage of this function. */
269
270 /* Value histograms attached to particular statements. */
271 htab_t GTY((skip)) value_histograms;
272
273 /* Annotated gconds so that basic conditions in the same expression map to
274 the same uid. This is used for condition coverage. */
275 hash_map <gcond*, unsigned> *GTY((skip)) cond_uids;
276
277 /* Per-function copyid allocator for hierarchical discriminators.
278 Tracks the next available copyid for each location to ensure uniqueness
279 across code duplication passes (unrolling, vectorization, etc.). */
281
282 /* For function.cc. */
283
284 /* Points to the FUNCTION_DECL of this function. */
286
287 /* A PARM_DECL that should contain the static chain for this function.
288 It will be initialized at the beginning of the function. */
290
291 /* An expression that contains the non-local goto save area. The first
292 word is the saved frame pointer and the second is the saved stack
293 pointer. */
295
296 /* Vector of function local variables, functions, types and constants. */
298
299 /* For md files. */
300
301 /* tm.h can use this to store whatever it likes. */
302 struct machine_function * GTY ((maybe_undef)) machine;
303
304 /* Language-specific code can use this to store whatever it likes. */
305 struct language_function * language;
306
307 /* Used types hash table. */
309
310 /* Dwarf2 Frame Description Entry, containing the Call Frame Instructions
311 used for unwinding. Only set when either dwarf2 unwinding or dwarf2
312 debugging is enabled. */
314
315 /* Range query mechanism for functions. The default is to pick up
316 global ranges. If a pass wants on-demand ranges OTOH, it must
317 call enable/disable_ranger(). The pointer is never null. It
318 should be queried by calling get_range_query(). */
320
321 /* Last statement uid. */
323
324 /* Debug marker counter. Count begin stmt markers. We don't have
325 to keep it exact, it's more of a rough estimate to enable us to
326 decide whether they are too many to copy during inlining, or when
327 expanding to RTL. */
329
330 /* Function sequence number for profiling, debugging, etc. */
332
333 /* Line number of the start of the function for debugging purposes. */
335
336 /* Line number of the end of the function. */
338
339 /* Properties used by the pass manager. */
340 unsigned int curr_properties;
341
342 /* Different from normal TODO_flags which are handled right at the
343 beginning or the end of one pass execution, the pending_TODOs
344 are passed down in the pipeline until one of its consumers can
345 perform the requested action. Consumers should then clear the
346 flags for the actions that they have taken. */
347 unsigned int pending_TODOs;
348
349 /* Non-null if the function does something that would prevent it from
350 being copied; this applies to both versioning and inlining. Set to
351 a string describing the reason for failure. */
352 const char * GTY((skip)) cannot_be_copied_reason;
353
354 /* Last assigned dependence info clique. */
355 unsigned short last_clique;
356
357 /* Collected bit flags. */
358
359 /* Number of units of general registers that need saving in stdarg
360 function. What unit is depends on the backend, either it is number
361 of bytes, or it can be number of registers. */
362 unsigned int va_list_gpr_size : 8;
363
364 /* Number of units of floating point registers that need saving in stdarg
365 function. */
366 unsigned int va_list_fpr_size : 8;
367
368 /* Nonzero if function being compiled can call setjmp. */
369 unsigned int calls_setjmp : 1;
370
371 /* Nonzero if function being compiled can call alloca,
372 either as a subroutine or builtin. */
373 unsigned int calls_alloca : 1;
374
375 /* Nonzero if function being compiled can call __builtin_eh_return. */
376 unsigned int calls_eh_return : 1;
377
378 /* Nonzero if function being compiled receives nonlocal gotos
379 from nested functions. */
380 unsigned int has_nonlocal_label : 1;
381
382 /* Nonzero if function being compiled has a forced label
383 placed into static storage. */
385
386 /* Nonzero if we've set cannot_be_copied_reason. I.e. if
387 (cannot_be_copied_set && !cannot_be_copied_reason), the function
388 can in fact be copied. */
389 unsigned int cannot_be_copied_set : 1;
390
391 /* Nonzero if current function uses stdarg.h or equivalent. */
392 unsigned int stdarg : 1;
393
394 unsigned int after_inlining : 1;
396
397 /* Nonzero if function being compiled can throw synchronous non-call
398 exceptions. */
400
401 /* Nonzero if instructions that may throw exceptions but don't otherwise
402 contribute to the execution of the program can be deleted. */
404
405 /* Fields below this point are not set for abstract functions; see
406 allocate_struct_function. */
407
408 /* Nonzero if function being compiled needs to be given an address
409 where the value should be stored. */
410 unsigned int returns_struct : 1;
411
412 /* Nonzero if function being compiled needs to
413 return the address of where it has put a structure value. */
414 unsigned int returns_pcc_struct : 1;
415
416 /* Nonzero if this function has local DECL_HARD_REGISTER variables.
417 In this case code motion has to be done more carefully. */
419
420 /* Nonzero if the current function is a thunk, i.e., a lightweight
421 function implemented by the output_mi_thunk hook) that just
422 adjusts one of its arguments and forwards to another
423 function. */
424 unsigned int is_thunk : 1;
425
426 /* Nonzero if the current function contains any loops with
427 loop->force_vectorize set. */
429
430 /* Nonzero if the current function contains any loops with
431 nonzero value in loop->simduid. */
432 unsigned int has_simduid_loops : 1;
433
434 /* Nonzero when the tail call has been identified. */
435 unsigned int tail_call_marked : 1;
436
437 /* Has musttail marked calls. */
438 unsigned int has_musttail : 1;
439
440 /* Nonzero if the current function contains a #pragma GCC unroll. */
441 unsigned int has_unroll : 1;
442
443 /* Set when the function was compiled with generation of debug
444 (begin stmt, inline entry, ...) markers enabled. */
445 unsigned int debug_nonbind_markers : 1;
446
447 /* Set if this is a coroutine-related function. */
448 unsigned int coroutine_component : 1;
449
450 /* Set if there are any OMP_TARGET regions in the function. */
451 unsigned int has_omp_target : 1;
452
453 /* Set for artificial function created for [[assume (cond)]].
454 These should be GIMPLE optimized, but not expanded to RTL. */
455 unsigned int assume_function : 1;
456
457 /* Nonzero if reload will have to split basic blocks. */
459};
460
461/* Add the decl D to the local_decls list of FUN. */
462
463void add_local_decl (struct function *fun, tree d);
464
465#define FOR_EACH_LOCAL_DECL(FUN, I, D) \
466 FOR_EACH_VEC_SAFE_ELT_REVERSE ((FUN)->local_decls, I, D)
467
468/* Record a final call to CALLEE at LOCATION. */
469void record_final_call (tree callee, location_t location);
470
471/* Record a dynamic allocation made for DECL_OR_EXP. */
472void record_dynamic_alloc (tree decl_or_exp);
473
474/* If va_list_[gf]pr_size is set to this, it means we don't know how
475 many units need to be saved. */
476#define VA_LIST_MAX_GPR_SIZE 255
477#define VA_LIST_MAX_FPR_SIZE 255
478
479/* The function currently being compiled. */
480extern GTY(()) struct function *cfun;
481
482/* In order to ensure that cfun is not set directly, we redefine it so
483 that it is not an lvalue. Rather than assign to cfun, use
484 push_cfun or set_cfun. */
485#define cfun (cfun + 0)
486
487/* Nonzero if we've already converted virtual regs to hard regs. */
488extern int virtuals_instantiated;
489
490/* Nonzero if at least one trampoline has been created. */
491extern int trampolines_created;
492
497
498struct used_type_hasher : ggc_ptr_hash<types_used_by_vars_entry>
499{
500 static hashval_t hash (types_used_by_vars_entry *);
502};
503
504/* Hash table making the relationship between a global variable
505 and the types it references in its initializer. The key of the
506 entry is a referenced type, and the value is the DECL of the global
507 variable. types_use_by_vars_do_hash and types_used_by_vars_eq below are
508 the hash and equality functions to use for this hash table. */
510
512
513/* During parsing of a global variable, this vector contains the types
514 referenced by the global variable. */
516
517
518/* Return the loop tree of FN. */
519
520inline struct loops *
522{
523 return fn->x_current_loops;
524}
525
526/* Set the loop tree of FN to LOOPS. */
527
528inline void
530{
533}
534
535/* Get a new unique dependence clique or zero if none is left. */
536
537inline unsigned short
539{
540 unsigned short clique = fn->last_clique + 1;
541 if (clique != 0)
542 fn->last_clique = clique;
543 return clique;
544}
545
546/* For backward compatibility... eventually these should all go away. */
547#define current_function_funcdef_no (cfun->funcdef_no)
548
549#define current_loops (cfun->x_current_loops)
550#define dom_computed (cfun->cfg->x_dom_computed)
551#define n_bbs_in_dom_tree (cfun->cfg->x_n_bbs_in_dom_tree)
552#define VALUE_HISTOGRAMS(fun) (fun)->value_histograms
553
554/* A pointer to a function to create target specific, per-function
555 data structures. */
556extern struct machine_function * (*init_machine_status) (void);
557
558/* Structure to record the size of a sequence of arguments
559 as the sum of a tree-expression and a constant. This structure is
560 also used to store offsets from the stack, which might be negative,
561 so the variable part must be ssizetype, not sizetype. */
562
568
569/* Package up various arg related fields of struct args for
570 locate_and_pad_parm. */
572{
573 /* Size of this argument on the stack, rounded up for any padding it
574 gets. If REG_PARM_STACK_SPACE is defined, then register parms are
575 counted here, otherwise they aren't. */
577 /* Offset of this argument from beginning of stack-args. */
579 /* Offset to the start of the stack slot. Different from OFFSET
580 if this arg pads downward. */
582 /* The amount that the stack pointer needs to be adjusted to
583 force alignment for the next argument. */
585 /* Which way we should pad this arg. */
587 /* slot_offset is at least this aligned. */
588 unsigned int boundary;
589};
590
591/* Add the value of the tree INC to the `struct args_size' TO. */
592
593#define ADD_PARM_SIZE(TO, INC) \
594do { \
595 tree inc = (INC); \
596 if (tree_fits_shwi_p (inc)) \
597 (TO).constant += tree_to_shwi (inc); \
598 else if ((TO).var == 0) \
599 (TO).var = fold_convert (ssizetype, inc); \
600 else \
601 (TO).var = size_binop (PLUS_EXPR, (TO).var, \
602 fold_convert (ssizetype, inc)); \
603} while (0)
604
605#define SUB_PARM_SIZE(TO, DEC) \
606do { \
607 tree dec = (DEC); \
608 if (tree_fits_shwi_p (dec)) \
609 (TO).constant -= tree_to_shwi (dec); \
610 else if ((TO).var == 0) \
611 (TO).var = size_binop (MINUS_EXPR, ssize_int (0), \
612 fold_convert (ssizetype, dec)); \
613 else \
614 (TO).var = size_binop (MINUS_EXPR, (TO).var, \
615 fold_convert (ssizetype, dec)); \
616} while (0)
617
618/* Convert the implicit sum in a `struct args_size' into a tree
619 of type ssizetype. */
620#define ARGS_SIZE_TREE(SIZE) \
621((SIZE).var == 0 ? ssize_int ((SIZE).constant) \
622 : size_binop (PLUS_EXPR, fold_convert (ssizetype, (SIZE).var), \
623 ssize_int ((SIZE).constant)))
624
625/* Convert the implicit sum in a `struct args_size' into an rtx. */
626#define ARGS_SIZE_RTX(SIZE) \
627((SIZE).var == 0 ? gen_int_mode ((SIZE).constant, Pmode) \
628 : expand_normal (ARGS_SIZE_TREE (SIZE)))
629
630#define ASLK_REDUCE_ALIGN 1
631#define ASLK_RECORD_PAD 2
632
633/* If pointers to member functions use the least significant bit to
634 indicate whether a function is virtual, ensure a pointer
635 to this function will have that bit clear. */
636#define MINIMUM_METHOD_BOUNDARY \
637 ((TARGET_PTRMEMFUNC_VBIT_LOCATION == ptrmemfunc_vbit_in_pfn) \
638 ? MAX (FUNCTION_BOUNDARY, 2 * BITS_PER_UNIT) : FUNCTION_BOUNDARY)
639
646
647extern void dump_stack_clash_frame_info (enum stack_clash_probes, bool);
648
649
650extern void push_function_context (void);
651extern void pop_function_context (void);
652
653/* Save and restore status information for a nested function. */
654extern void free_after_parsing (struct function *);
655extern void free_after_compilation (struct function *);
656
657/* Return size needed for stack frame based on slots so far allocated.
658 This size counts from zero. It is not rounded to STACK_BOUNDARY;
659 the caller may have to do that. */
660extern poly_int64 get_frame_size (void);
661
662/* Issue an error message and return TRUE if frame OFFSET overflows in
663 the signed target pointer arithmetics for function FUNC. Otherwise
664 return FALSE. */
666
667extern unsigned int spill_slot_alignment (machine_mode);
668
669extern rtx assign_stack_local_1 (machine_mode, poly_int64, int, int);
670extern rtx assign_stack_local (machine_mode, poly_int64, int);
671extern rtx assign_stack_temp_for_type (machine_mode, poly_int64, tree);
672extern rtx assign_stack_temp (machine_mode, poly_int64);
673extern rtx assign_temp (tree, int, int);
674extern void update_temp_slot_address (rtx, rtx);
675extern void preserve_temp_slots (rtx);
676extern void free_temp_slots (void);
677extern void push_temp_slots (void);
678extern void pop_temp_slots (void);
679extern void init_temp_slots (void);
681extern rtx get_hard_reg_initial_val (machine_mode, unsigned int);
682extern rtx has_hard_reg_initial_val (machine_mode, unsigned int);
683
684/* Called from gimple_expand_cfg. */
685extern void emit_initial_value_sets (void);
686
687extern bool initial_value_entry (int i, rtx *, rtx *);
688extern void instantiate_decl_rtl (rtx x);
692extern void locate_and_pad_parm (machine_mode, tree, int, int, int,
693 tree, struct args_size *,
694 struct locate_and_pad_arg_data *);
695extern void generate_setjmp_warnings (void);
696
697/* Identify BLOCKs referenced by more than one NOTE_INSN_BLOCK_{BEG,END},
698 and create duplicate blocks. */
699extern void reorder_blocks (void);
700extern void clear_block_marks (tree);
701extern tree blocks_nreverse (tree);
702extern tree block_chainon (tree, tree);
703
704/* Set BLOCK_NUMBER for all the blocks in FN. */
705extern void number_blocks (tree);
706
707/* cfun shouldn't be set directly; use one of these functions instead. */
708extern void set_cfun (struct function *new_cfun, bool force = false);
709extern void push_cfun (struct function *new_cfun);
710extern void pop_cfun (void);
711extern void push_function_decl (tree, bool = false);
712extern void pop_function_decl (void);
713
714extern int get_next_funcdef_no (void);
715extern int get_last_funcdef_no (void);
716extern void allocate_struct_function (tree, bool);
717extern void push_struct_function (tree fndecl, bool = false);
718extern void push_dummy_function (bool);
719extern void pop_dummy_function (void);
720extern void init_dummy_function_start (void);
721extern void init_function_start (tree);
722extern void stack_protect_epilogue (void);
723extern void expand_function_start (tree);
724extern void expand_dummy_function_end (void);
725
726extern void thread_prologue_and_epilogue_insns (void);
727extern void diddle_return_value (void (*)(rtx, void*), void*);
728extern void clobber_return_register (void);
729extern void expand_function_end (void);
730extern rtx get_arg_pointer_save_area (void);
732extern bool prologue_contains (const rtx_insn *);
733extern bool epilogue_contains (const rtx_insn *);
734extern bool prologue_epilogue_contains (const rtx_insn *);
735extern void record_prologue_seq (rtx_insn *);
736extern void record_epilogue_seq (rtx_insn *);
737extern void emit_return_into_block (bool simple_p, basic_block bb);
738extern void set_return_jump_label (rtx_insn *);
740extern vec<edge> convert_jumps_to_returns (basic_block last_bb, bool simple_p,
741 vec<edge> unconverted);
742extern basic_block emit_return_for_exit (edge exit_fallthru_edge,
743 bool simple_p);
746
747/* Returns the name of the current function. */
748extern const char *fndecl_name (tree);
749extern const char *function_name (const function *);
750extern const char *current_function_name (void);
751
752extern void used_types_insert (tree);
753
755
756#endif /* GCC_FUNCTION_H */
Definition function.h:188
class frame_space * next
Definition function.h:190
poly_int64 start
Definition function.h:192
poly_int64 length
Definition function.h:193
Definition hash-set.h:37
Definition hash-table.h:375
Definition value-query.h:55
Definition function.h:211
vec< callinfo_dalloc, va_gc > * dallocs
Definition function.h:234
HOST_WIDE_INT dynamic_stack_size
Definition function.h:218
poly_int64 pushed_stack_size
Definition function.h:223
vec< callinfo_callee, va_gc > * callees
Definition function.h:230
unsigned int has_unbounded_dynamic_stack_size
Definition function.h:227
HOST_WIDE_INT static_stack_size
Definition function.h:214
struct basic_block_def * basic_block
Definition coretypes.h:372
struct rtx_def * rtx
Definition coretypes.h:57
class edge_def * edge
Definition coretypes.h:369
gimple * gimple_seq
Definition coretypes.h:100
pad_direction
Definition coretypes.h:298
const union tree_node * const_tree
Definition coretypes.h:98
#define GTY(x)
Definition coretypes.h:41
union tree_node * tree
Definition coretypes.h:97
rtx * regno_reg_rtx
Definition emit-rtl.cc:91
rtx assign_stack_temp_for_type(machine_mode mode, poly_int64 size, tree type)
Definition function.cc:792
rtx get_arg_pointer_save_area(void)
Definition function.cc:5637
tree blocks_nreverse(tree t)
Definition function.cc:4522
void locate_and_pad_parm(machine_mode passed_mode, tree type, int in_regs, int reg_parm_stack_space, int partial, tree fndecl, struct args_size *initial_offset_ptr, struct locate_and_pad_arg_data *locate)
Definition function.cc:4016
void stack_protect_epilogue(void)
Definition function.cc:5034
void free_after_compilation(struct function *f)
Definition function.cc:205
void push_function_context(void)
Definition function.cc:166
void emit_initial_value_sets(void)
Definition function.cc:1344
gimple_seq gimplify_parameters(gimple_seq *cleanup)
Definition function.cc:3875
const char * fndecl_name(tree fndecl)
Definition function.cc:6429
void used_types_insert(tree t)
Definition function.cc:6477
unsigned int spill_slot_alignment(machine_mode mode)
Definition function.cc:268
vec< tree, va_gc > * types_used_by_cur_var_decl
Definition function.cc:136
void clobber_return_register(void)
Definition function.cc:5358
void push_struct_function(tree fndecl, bool abstract_p)
Definition function.cc:4916
bool prologue_epilogue_contains(const rtx_insn *insn)
Definition function.cc:5797
bool use_register_for_decl(const_tree decl)
Definition function.cc:2151
void dump_stack_clash_frame_info(enum stack_clash_probes probes, bool residuals)
Definition function.cc:5677
void thread_prologue_and_epilogue_insns(void)
Definition function.cc:6081
void set_return_jump_label(rtx_insn *returnjump)
Definition function.cc:5821
void update_temp_slot_address(rtx old_rtx, rtx new_rtx)
Definition function.cc:1101
void push_cfun(struct function *new_cfun)
Definition function.cc:4756
void pop_function_decl(void)
Definition function.cc:4790
rtx assign_stack_local(machine_mode mode, poly_int64 size, int align)
Definition function.cc:545
void pop_temp_slots(void)
Definition function.cc:1226
hash_table< used_type_hasher > * types_used_by_vars_hash
Definition function.cc:135
static void push_function_decl(function *new_cfun, tree new_fndecl, bool force)
Definition function.cc:4732
void record_prologue_seq(rtx_insn *seq)
Definition function.cc:5807
const char * current_function_name(void)
Definition function.cc:6446
bool initial_value_entry(int i, rtx *hreg, rtx *preg)
Definition function.cc:1364
void record_epilogue_seq(rtx_insn *seq)
Definition function.cc:5813
void expand_function_end(void)
Definition function.cc:5389
void init_function_start(tree subr)
Definition function.cc:5015
bool epilogue_contains(const rtx_insn *insn)
Definition function.cc:5791
void pop_dummy_function(void)
Definition function.cc:5294
void record_dynamic_alloc(tree decl_or_exp)
Definition function.cc:6643
void maybe_copy_prologue_epilogue_insn(rtx insn, rtx copy)
Definition function.cc:5744
int virtuals_instantiated
Definition function.cc:111
void free_after_parsing(struct function *f)
Definition function.cc:195
poly_int64 get_stack_dynamic_offset()
Definition function.cc:1941
void expand_function_start(tree subr)
Definition function.cc:5093
rtx assign_temp(tree type_or_decl, int memory_required, int dont_promote)
Definition function.cc:967
void init_dummy_function_start(void)
Definition function.cc:5004
void push_dummy_function(bool with_decl)
Definition function.cc:4973
rtx assign_stack_temp(machine_mode mode, poly_int64 size)
Definition function.cc:952
rtx assign_stack_local_1(machine_mode mode, poly_int64 size, int align, int kind)
Definition function.cc:378
int get_next_funcdef_no(void)
Definition function.cc:4801
poly_int64 get_frame_size(void)
Definition function.cc:227
void generate_setjmp_warnings(void)
Definition function.cc:4309
rtx get_hard_reg_initial_val(machine_mode mode, unsigned int regno)
Definition function.cc:1291
void diddle_return_value(void(*doit)(rtx, void *), void *arg)
Definition function.cc:5346
bool prologue_contains(const rtx_insn *insn)
Definition function.cc:5785
int get_last_funcdef_no(void)
Definition function.cc:4808
bool currently_expanding_function_start
Definition function.cc:5091
void number_blocks(tree fn)
Definition function.cc:4613
rtx has_hard_reg_initial_val(machine_mode mode, unsigned int regno)
Definition function.cc:1328
void pop_function_context(void)
Definition function.cc:179
void preserve_temp_slots(rtx x)
Definition function.cc:1155
void push_temp_slots(void)
Definition function.cc:1217
void init_temp_slots(void)
Definition function.cc:1235
void reposition_prologue_and_epilogue_notes(void)
Definition function.cc:6321
void set_cfun(struct function *new_cfun, bool force)
Definition function.cc:4719
void pop_cfun(void)
Definition function.cc:4782
bool frame_offset_overflow(poly_int64 offset, tree func)
Definition function.cc:240
void allocate_struct_function(tree fndecl, bool abstract_p)
Definition function.cc:4837
bool aggregate_value_p(const_tree exp, const_tree fntype)
Definition function.cc:2051
void instantiate_decl_rtl(rtx x)
Definition function.cc:1807
void types_used_by_var_decl_insert(tree type, tree var_decl)
Definition function.cc:6534
tree block_chainon(tree op1, tree op2)
Definition function.cc:4538
void free_temp_slots(void)
Definition function.cc:1195
void reorder_blocks(void)
Definition function.cc:4390
const char * function_name(const function *fn)
Definition function.cc:6438
void clear_block_marks(tree block)
Definition function.cc:4414
void record_final_call(tree callee, location_t location)
Definition function.cc:6634
rtx get_hard_reg_initial_reg(rtx reg)
Definition function.cc:1272
void expand_dummy_function_end(void)
Definition function.cc:5302
rtx get_arg_pointer_save_area(void)
Definition function.cc:5637
void push_function_decl(tree, bool=false)
Definition function.cc:4746
void stack_protect_epilogue(void)
Definition function.cc:5034
unsigned int spill_slot_alignment(machine_mode)
Definition function.cc:268
void push_function_context(void)
Definition function.cc:166
rtx get_hard_reg_initial_reg(rtx)
Definition function.cc:1272
stack_clash_probes
Definition function.h:640
@ NO_PROBE_NO_FRAME
Definition function.h:641
@ PROBE_INLINE
Definition function.h:643
@ NO_PROBE_SMALL_FRAME
Definition function.h:642
@ PROBE_LOOP
Definition function.h:644
void emit_initial_value_sets(void)
Definition function.cc:1344
const char * fndecl_name(tree)
Definition function.cc:6429
rtx assign_stack_temp(machine_mode, poly_int64)
Definition function.cc:952
bool frame_offset_overflow(poly_int64, tree)
Definition function.cc:240
void number_blocks(tree)
Definition function.cc:4613
void clobber_return_register(void)
Definition function.cc:5358
void preserve_temp_slots(rtx)
Definition function.cc:1155
rtx assign_stack_local_1(machine_mode, poly_int64, int, int)
Definition function.cc:378
void thread_prologue_and_epilogue_insns(void)
Definition function.cc:6081
void push_dummy_function(bool)
Definition function.cc:4973
void dump_stack_clash_frame_info(enum stack_clash_probes, bool)
Definition function.cc:5677
vec< edge > convert_jumps_to_returns(basic_block last_bb, bool simple_p, vec< edge > unconverted)
bool active_insn_between(rtx_insn *head, rtx_insn *tail)
bool prologue_epilogue_contains(const rtx_insn *)
Definition function.cc:5797
bool epilogue_contains(const rtx_insn *)
Definition function.cc:5791
void push_cfun(struct function *new_cfun)
Definition function.cc:4756
void pop_function_decl(void)
Definition function.cc:4790
void expand_function_start(tree)
Definition function.cc:5093
void set_cfun(struct function *new_cfun, bool force=false)
Definition function.cc:4719
void add_local_decl(struct function *fun, tree d)
Definition function.cc:7126
void pop_temp_slots(void)
Definition function.cc:1226
void allocate_struct_function(tree, bool)
Definition function.cc:4837
rtx assign_stack_temp_for_type(machine_mode, poly_int64, tree)
Definition function.cc:792
const char * current_function_name(void)
Definition function.cc:6446
void expand_function_end(void)
Definition function.cc:5389
bool use_register_for_decl(const_tree)
Definition function.cc:2151
bool prologue_contains(const rtx_insn *)
Definition function.cc:5785
int trampolines_created
Definition varasm.cc:8182
tree block_chainon(tree, tree)
Definition function.cc:4538
struct loops * loops_for_fn(struct function *fn)
Definition function.h:521
void emit_return_into_block(bool simple_p, basic_block bb)
void locate_and_pad_parm(machine_mode, tree, int, int, int, tree, struct args_size *, struct locate_and_pad_arg_data *)
Definition function.cc:4016
void pop_dummy_function(void)
Definition function.cc:5294
void record_dynamic_alloc(tree decl_or_exp)
Definition function.cc:6643
void diddle_return_value(void(*)(rtx, void *), void *)
Definition function.cc:5346
void set_return_jump_label(rtx_insn *)
Definition function.cc:5821
void init_function_start(tree)
Definition function.cc:5015
unsigned short get_new_clique(function *fn)
Definition function.h:538
void update_temp_slot_address(rtx, rtx)
Definition function.cc:1101
poly_int64 get_stack_dynamic_offset()
Definition function.cc:1941
void init_dummy_function_start(void)
Definition function.cc:5004
void record_epilogue_seq(rtx_insn *)
Definition function.cc:5813
void clear_block_marks(tree)
Definition function.cc:4414
void push_struct_function(tree fndecl, bool=false)
Definition function.cc:4916
basic_block emit_return_for_exit(edge exit_fallthru_edge, bool simple_p)
rtx get_hard_reg_initial_val(machine_mode, unsigned int)
Definition function.cc:1291
int get_next_funcdef_no(void)
Definition function.cc:4801
poly_int64 get_frame_size(void)
Definition function.cc:227
void record_prologue_seq(rtx_insn *)
Definition function.cc:5807
void generate_setjmp_warnings(void)
Definition function.cc:4309
void maybe_copy_prologue_epilogue_insn(rtx, rtx)
Definition function.cc:5744
void used_types_insert(tree)
Definition function.cc:6477
void free_after_compilation(struct function *)
Definition function.cc:205
int get_last_funcdef_no(void)
Definition function.cc:4808
bool initial_value_entry(int i, rtx *, rtx *)
Definition function.cc:1364
struct call_site_record_d * call_site_record
Definition function.h:134
void pop_function_context(void)
Definition function.cc:179
const char * function_name(const function *)
Definition function.cc:6438
gimple_seq gimplify_parameters(gimple_seq *)
Definition function.cc:3875
tree blocks_nreverse(tree)
Definition function.cc:4522
void set_loops_for_fn(struct function *fn, struct loops *loops)
Definition function.h:529
void push_temp_slots(void)
Definition function.cc:1217
void init_temp_slots(void)
Definition function.cc:1235
void reposition_prologue_and_epilogue_notes(void)
Definition function.cc:6321
void free_after_parsing(struct function *)
Definition function.cc:195
#define cfun
Definition function.h:485
void pop_cfun(void)
Definition function.cc:4782
rtx assign_stack_local(machine_mode, poly_int64, int)
Definition function.cc:545
void instantiate_decl_rtl(rtx x)
Definition function.cc:1807
void types_used_by_var_decl_insert(tree type, tree var_decl)
Definition function.cc:6534
rtx has_hard_reg_initial_val(machine_mode, unsigned int)
Definition function.cc:1328
void free_temp_slots(void)
Definition function.cc:1195
rtx assign_temp(tree, int, int)
Definition function.cc:967
void reorder_blocks(void)
Definition function.cc:4390
void record_final_call(tree callee, location_t location)
Definition function.cc:6634
bool aggregate_value_p(const_tree, const_tree)
Definition function.cc:2051
void expand_dummy_function_end(void)
Definition function.cc:5302
Definition custom-sarif-properties/cfg.h:27
poly_int< NUM_POLY_INT_COEFFS, HOST_WIDE_INT > poly_int64
Definition poly-int-types.h:24
i
Definition poly-int.h:776
Definition function.h:564
poly_int64 constant
Definition function.h:565
tree var
Definition function.h:566
Definition except.cc:165
Definition function.h:198
location_t location
Definition function.h:199
tree decl
Definition function.h:200
Definition function.h:205
location_t location
Definition function.h:206
char const * name
Definition function.h:207
Definition cfg.h:38
Definition hierarchical_discriminator.h:75
Definition dwarf2out.h:74
Definition except.h:192
Definition function.h:36
unsigned char * regno_pointer_align
Definition function.h:75
int x_first_label_num
Definition function.h:44
int x_cur_debug_insn_uid
Definition function.h:64
void ensure_regno_capacity()
Definition emit-rtl.cc:1239
int regno_pointer_align_length
Definition function.h:70
int x_reg_rtx_no
Definition function.h:41
struct sequence_stack seq
Definition function.h:56
int x_cur_insn_uid
Definition function.h:60
Definition function.h:94
poly_int64 x_pending_stack_adjust
Definition function.h:97
vec< rtx_insn *, va_gc > * x_forced_labels
Definition function.h:131
poly_int64 x_stack_pointer_delta
Definition function.h:120
rtx x_saveregs_value
Definition function.h:125
rtx x_apply_args_value
Definition function.h:128
int x_inhibit_defer_pop
Definition function.h:114
Definition function.h:173
const char * cold_section_label
Definition function.h:179
const char * hot_section_label
Definition function.h:178
const char * hot_section_end_label
Definition function.h:180
const char * cold_section_end_label
Definition function.h:181
Definition function.h:249
struct dw_fde_node * fde
Definition function.h:313
struct eh_status * eh
Definition function.h:250
tree nonlocal_goto_save_area
Definition function.h:294
unsigned int pending_TODOs
Definition function.h:347
unsigned int has_unroll
Definition function.h:441
vec< tree, va_gc > * local_decls
Definition function.h:297
unsigned int is_thunk
Definition function.h:424
unsigned int has_musttail
Definition function.h:438
struct language_function * language
Definition function.h:305
unsigned int returns_pcc_struct
Definition function.h:414
int debug_marker_count
Definition function.h:328
struct loops * x_current_loops
Definition function.h:262
unsigned int can_delete_dead_exceptions
Definition function.h:403
unsigned int has_force_vectorize_loops
Definition function.h:428
struct gimple_df * gimple_df
Definition function.h:259
tree static_chain_decl
Definition function.h:289
tree decl
Definition function.h:285
unsigned int has_nonlocal_label
Definition function.h:380
unsigned int cannot_be_copied_set
Definition function.h:389
unsigned int returns_struct
Definition function.h:410
gimple_seq gimple_body
Definition function.h:256
unsigned int has_simduid_loops
Definition function.h:432
unsigned int stdarg
Definition function.h:392
unsigned int has_forced_label_in_static
Definition function.h:384
unsigned int va_list_fpr_size
Definition function.h:366
unsigned int calls_alloca
Definition function.h:373
int last_stmt_uid
Definition function.h:322
unsigned int coroutine_component
Definition function.h:448
unsigned int curr_properties
Definition function.h:340
unsigned int assume_function
Definition function.h:455
unsigned int va_list_gpr_size
Definition function.h:362
const char * cannot_be_copied_reason
Definition function.h:352
struct machine_function * machine
Definition function.h:302
unsigned int has_local_explicit_reg_vars
Definition function.h:418
unsigned int can_throw_non_call_exceptions
Definition function.h:399
hash_set< tree > * used_types_hash
Definition function.h:308
unsigned int after_inlining
Definition function.h:394
struct copyid_allocator * copyid_alloc
Definition function.h:280
unsigned int debug_nonbind_markers
Definition function.h:445
int funcdef_no
Definition function.h:331
unsigned int always_inline_functions_inlined
Definition function.h:395
class stack_usage * su
Definition function.h:268
unsigned int calls_setjmp
Definition function.h:369
hash_map< gcond *, unsigned > * cond_uids
Definition function.h:275
unsigned short last_clique
Definition function.h:355
unsigned int has_omp_target
Definition function.h:451
location_t function_start_locus
Definition function.h:334
unsigned int calls_eh_return
Definition function.h:376
unsigned int split_basic_blocks_after_reload
Definition function.h:458
unsigned int tail_call_marked
Definition function.h:435
location_t function_end_locus
Definition function.h:337
char * pass_startwith
Definition function.h:265
htab_t value_histograms
Definition function.h:271
range_query * x_range_query
Definition function.h:319
Definition hash-traits.h:321
Definition gimple-ssa.h:72
Definition collect2.cc:175
Definition function.h:572
struct args_size size
Definition function.h:576
struct args_size offset
Definition function.h:578
unsigned int boundary
Definition function.h:588
struct args_size slot_offset
Definition function.h:581
pad_direction where_pad
Definition function.h:586
struct args_size alignment_pad
Definition function.h:584
Definition cfgloop.h:324
Definition function.h:137
vec< call_site_record, va_gc > * call_site_record_v[2]
Definition function.h:147
rtx_code_label * ehr_label
Definition function.h:140
rtx sjlj_fc
Definition function.h:142
rtx_insn * sjlj_exit_after
Definition function.h:143
rtx ehr_stackadj
Definition function.h:138
rtx ehr_handler
Definition function.h:139
vec< uchar, va_gc > * action_record_data
Definition function.h:145
Definition rtl.h:679
Definition varasm.cc:4024
Definition rtl.h:546
Definition function.h:29
struct sequence_stack * next
Definition function.h:33
rtx_insn * last
Definition function.h:32
rtx_insn * first
Definition function.h:31
Definition gengtype.h:252
Definition function.h:493
tree type
Definition function.h:494
tree var_decl
Definition function.h:495
Definition function.h:499
static bool equal(types_used_by_vars_entry *, types_used_by_vars_entry *)
Definition function.cc:6525
static hashval_t hash(types_used_by_vars_entry *)
Definition function.cc:6517
Definition vec.h:359
Definition function.h:162
struct rtx_constant_pool * pool
Definition function.h:164
unsigned int deferred_constants
Definition function.h:168
Definition vec.h:450
#define NULL
Definition system.h:50
#define gcc_checking_assert(EXPR)
Definition system.h:824