]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/dojump.h
Update copyright years.
[thirdparty/gcc.git] / gcc / dojump.h
CommitLineData
36566b39 1/* Export function prototypes from dojump.c.
a5544970 2 Copyright (C) 2015-2019 Free Software Foundation, Inc.
36566b39
PK
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_DOJUMP_H
21#define GCC_DOJUMP_H
22
36566b39
PK
23/* At the start of a function, record that we have no previously-pushed
24 arguments waiting to be popped. */
25extern void init_pending_stack_adjust (void);
26
27/* Discard any pending stack adjustment. */
28extern void discard_pending_stack_adjust (void);
29
30/* When exiting from function, if safe, clear out any pending stack adjust
31 so the adjustment won't get done. */
32extern void clear_pending_stack_adjust (void);
33
34/* Pop any previously-pushed arguments that have not been popped yet. */
35extern void do_pending_stack_adjust (void);
36
37/* Struct for saving/restoring of pending_stack_adjust/stack_pointer_delta
38 values. */
39
40struct saved_pending_stack_adjust
41{
42 /* Saved value of pending_stack_adjust. */
a20c5714 43 poly_int64 x_pending_stack_adjust;
36566b39
PK
44
45 /* Saved value of stack_pointer_delta. */
a20c5714 46 poly_int64 x_stack_pointer_delta;
36566b39
PK
47};
48
49/* Remember pending_stack_adjust/stack_pointer_delta.
50 To be used around code that may call do_pending_stack_adjust (),
51 but the generated code could be discarded e.g. using delete_insns_since. */
52
53extern void save_pending_stack_adjust (saved_pending_stack_adjust *);
54
55/* Restore the saved pending_stack_adjust/stack_pointer_delta. */
56
57extern void restore_pending_stack_adjust (saved_pending_stack_adjust *);
58
be099f37
EB
59extern bool split_comparison (enum rtx_code, machine_mode,
60 enum rtx_code *, enum rtx_code *);
36566b39
PK
61
62/* Generate code to evaluate EXP and jump to LABEL if the value is nonzero. */
357067f2
JH
63extern void jumpif (tree exp, rtx_code_label *label, profile_probability prob);
64extern void jumpif_1 (enum tree_code, tree, tree, rtx_code_label *,
65 profile_probability);
36566b39 66
be099f37
EB
67/* Generate code to evaluate EXP and jump to LABEL if the value is zero. */
68extern void jumpifnot (tree exp, rtx_code_label *label,
69 profile_probability prob);
70extern void jumpifnot_1 (enum tree_code, tree, tree, rtx_code_label *,
71 profile_probability);
36566b39
PK
72
73extern void do_compare_rtx_and_jump (rtx, rtx, enum rtx_code, int,
1476d1bd 74 machine_mode, rtx, rtx_code_label *,
357067f2 75 rtx_code_label *, profile_probability);
36566b39 76
36566b39 77#endif /* GCC_DOJUMP_H */