GCC Middle and Back End API Reference
dojump.h
Go to the documentation of this file.
1/* Export function prototypes from dojump.cc.
2 Copyright (C) 2015-2024 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_DOJUMP_H
21#define GCC_DOJUMP_H
22
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
41{
42public:
43 /* Saved value of pending_stack_adjust. */
45
46 /* Saved value of stack_pointer_delta. */
48};
49
50/* Remember pending_stack_adjust/stack_pointer_delta.
51 To be used around code that may call do_pending_stack_adjust (),
52 but the generated code could be discarded e.g. using delete_insns_since. */
53
55
56/* Restore the saved pending_stack_adjust/stack_pointer_delta. */
57
59
60extern bool split_comparison (enum rtx_code, machine_mode,
61 enum rtx_code *, enum rtx_code *);
62
63/* Generate code to evaluate EXP and jump to LABEL if the value is nonzero. */
64extern void jumpif (tree exp, rtx_code_label *label, profile_probability prob);
65extern void jumpif_1 (enum tree_code, tree, tree, rtx_code_label *,
67
68/* Generate code to evaluate EXP and jump to LABEL if the value is zero. */
69extern void jumpifnot (tree exp, rtx_code_label *label,
71extern void jumpifnot_1 (enum tree_code, tree, tree, rtx_code_label *,
73
74extern void do_compare_rtx_and_jump (rtx, rtx, enum rtx_code, int, tree,
75 machine_mode, rtx, rtx_code_label *,
77
78extern void do_compare_rtx_and_jump (rtx, rtx, enum rtx_code, int,
79 machine_mode, rtx, rtx_code_label *,
81
82#endif /* GCC_DOJUMP_H */
Definition profile-count.h:147
Definition dojump.h:41
poly_int64 x_stack_pointer_delta
Definition dojump.h:47
poly_int64 x_pending_stack_adjust
Definition dojump.h:44
union tree_node * tree
Definition coretypes.h:97
void discard_pending_stack_adjust(void)
Definition dojump.cc:66
void init_pending_stack_adjust(void)
Definition dojump.cc:57
void restore_pending_stack_adjust(saved_pending_stack_adjust *)
Definition dojump.cc:114
void do_pending_stack_adjust(void)
Definition dojump.cc:90
void clear_pending_stack_adjust(void)
Definition dojump.cc:79
void jumpif(tree exp, rtx_code_label *label, profile_probability prob)
Definition dojump.cc:919
void jumpif_1(enum tree_code, tree, tree, rtx_code_label *, profile_probability)
Definition dojump.cc:928
void do_compare_rtx_and_jump(rtx, rtx, enum rtx_code, int, tree, machine_mode, rtx, rtx_code_label *, rtx_code_label *, profile_probability)
Definition dojump.cc:977
bool split_comparison(enum rtx_code, machine_mode, enum rtx_code *, enum rtx_code *)
Definition dojump.cc:847
void save_pending_stack_adjust(saved_pending_stack_adjust *)
Definition dojump.cc:105
void jumpifnot(tree exp, rtx_code_label *label, profile_probability prob)
Definition dojump.cc:938
void jumpifnot_1(enum tree_code, tree, tree, rtx_code_label *, profile_probability)
Definition dojump.cc:947
double exp(double)
tree_code
Definition genmatch.cc:347
rtx_code
Definition rtl.h:48
Definition rtl.h:678
Definition rtl.h:311