annotate gcc/dojump.h @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Export function prototypes from dojump.c.
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 Copyright (C) 2015-2020 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 This file is part of GCC.
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 GCC is free software; you can redistribute it and/or modify it under
kono
parents:
diff changeset
7 the terms of the GNU General Public License as published by the Free
kono
parents:
diff changeset
8 Software Foundation; either version 3, or (at your option) any later
kono
parents:
diff changeset
9 version.
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
kono
parents:
diff changeset
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
kono
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
kono
parents:
diff changeset
14 for more details.
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
17 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
18 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 #ifndef GCC_DOJUMP_H
kono
parents:
diff changeset
21 #define GCC_DOJUMP_H
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 /* At the start of a function, record that we have no previously-pushed
kono
parents:
diff changeset
24 arguments waiting to be popped. */
kono
parents:
diff changeset
25 extern void init_pending_stack_adjust (void);
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 /* Discard any pending stack adjustment. */
kono
parents:
diff changeset
28 extern void discard_pending_stack_adjust (void);
kono
parents:
diff changeset
29
kono
parents:
diff changeset
30 /* When exiting from function, if safe, clear out any pending stack adjust
kono
parents:
diff changeset
31 so the adjustment won't get done. */
kono
parents:
diff changeset
32 extern void clear_pending_stack_adjust (void);
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 /* Pop any previously-pushed arguments that have not been popped yet. */
kono
parents:
diff changeset
35 extern void do_pending_stack_adjust (void);
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 /* Struct for saving/restoring of pending_stack_adjust/stack_pointer_delta
kono
parents:
diff changeset
38 values. */
kono
parents:
diff changeset
39
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
40 class saved_pending_stack_adjust
111
kono
parents:
diff changeset
41 {
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
42 public:
111
kono
parents:
diff changeset
43 /* Saved value of pending_stack_adjust. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
44 poly_int64 x_pending_stack_adjust;
111
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46 /* Saved value of stack_pointer_delta. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
47 poly_int64 x_stack_pointer_delta;
111
kono
parents:
diff changeset
48 };
kono
parents:
diff changeset
49
kono
parents:
diff changeset
50 /* Remember pending_stack_adjust/stack_pointer_delta.
kono
parents:
diff changeset
51 To be used around code that may call do_pending_stack_adjust (),
kono
parents:
diff changeset
52 but the generated code could be discarded e.g. using delete_insns_since. */
kono
parents:
diff changeset
53
kono
parents:
diff changeset
54 extern void save_pending_stack_adjust (saved_pending_stack_adjust *);
kono
parents:
diff changeset
55
kono
parents:
diff changeset
56 /* Restore the saved pending_stack_adjust/stack_pointer_delta. */
kono
parents:
diff changeset
57
kono
parents:
diff changeset
58 extern void restore_pending_stack_adjust (saved_pending_stack_adjust *);
kono
parents:
diff changeset
59
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
60 extern bool split_comparison (enum rtx_code, machine_mode,
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
61 enum rtx_code *, enum rtx_code *);
111
kono
parents:
diff changeset
62
kono
parents:
diff changeset
63 /* Generate code to evaluate EXP and jump to LABEL if the value is nonzero. */
kono
parents:
diff changeset
64 extern void jumpif (tree exp, rtx_code_label *label, profile_probability prob);
kono
parents:
diff changeset
65 extern void jumpif_1 (enum tree_code, tree, tree, rtx_code_label *,
kono
parents:
diff changeset
66 profile_probability);
kono
parents:
diff changeset
67
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
68 /* Generate code to evaluate EXP and jump to LABEL if the value is zero. */
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
69 extern void jumpifnot (tree exp, rtx_code_label *label,
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
70 profile_probability prob);
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
71 extern void jumpifnot_1 (enum tree_code, tree, tree, rtx_code_label *,
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
72 profile_probability);
111
kono
parents:
diff changeset
73
kono
parents:
diff changeset
74 extern void do_compare_rtx_and_jump (rtx, rtx, enum rtx_code, int,
kono
parents:
diff changeset
75 machine_mode, rtx, rtx_code_label *,
kono
parents:
diff changeset
76 rtx_code_label *, profile_probability);
kono
parents:
diff changeset
77
kono
parents:
diff changeset
78 #endif /* GCC_DOJUMP_H */