GCC Middle and Back End API Reference
target-globals.h
Go to the documentation of this file.
1/* Target-dependent globals.
2 Copyright (C) 2010-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 TARGET_GLOBALS_H
21#define TARGET_GLOBALS_H 1
22
23#if SWITCHABLE_TARGET
25extern struct target_regs *this_target_regs;
26extern struct target_rtl *this_target_rtl;
27extern struct target_recog *this_target_recog;
35extern struct target_ira *this_target_ira;
38extern struct target_gcse *this_target_gcse;
42#endif
43
67
68#if SWITCHABLE_TARGET
70
71extern class target_globals *save_target_globals (void);
73
74inline void
76{
77 this_target_flag_state = g->flag_state;
78 this_target_regs = g->regs;
79 this_target_rtl = g->rtl;
80 this_target_recog = g->recog;
81 this_target_hard_regs = g->hard_regs;
82 this_target_function_abi_info = g->function_abi_info;
83 this_target_reload = g->reload;
84 this_target_expmed = g->expmed;
85 this_target_optabs = g->optabs;
86 this_target_libfuncs = g->libfuncs;
87 this_target_cfgloop = g->cfgloop;
88 this_target_ira = g->ira;
89 this_target_ira_int = g->ira_int;
90 this_target_builtins = g->builtins;
91 this_target_gcse = g->gcse;
92 this_target_bb_reorder = g->bb_reorder;
93 this_target_lower_subreg = g->lower_subreg;
94 this_target_constraints = g->constraints;
95}
96#endif
97
98#endif
#define this_target_bb_reorder
Definition bb-reorder.h:33
#define this_target_builtins
Definition builtins.h:53
#define this_target_cfgloop
Definition cfgloop.h:868
Definition flags.h:88
Definition target-globals.h:44
struct target_constraints * constraints
Definition target-globals.h:65
struct target_ira * ira
Definition target-globals.h:59
struct target_regs * regs
Definition target-globals.h:49
struct target_function_abi_info * function_abi_info
Definition target-globals.h:53
struct target_lower_subreg * lower_subreg
Definition target-globals.h:64
struct target_expmed * expmed
Definition target-globals.h:55
struct target_hard_regs * hard_regs
Definition target-globals.h:52
struct target_cfgloop * cfgloop
Definition target-globals.h:58
struct target_gcse * gcse
Definition target-globals.h:62
struct target_recog * recog
Definition target-globals.h:51
class target_flag_state * flag_state
Definition target-globals.h:48
struct target_reload * reload
Definition target-globals.h:54
struct target_optabs * optabs
Definition target-globals.h:56
struct target_bb_reorder * bb_reorder
Definition target-globals.h:63
struct target_rtl * rtl
Definition target-globals.h:50
struct target_libfuncs * libfuncs
Definition target-globals.h:57
class target_ira_int * ira_int
Definition target-globals.h:60
struct target_builtins * builtins
Definition target-globals.h:61
Definition ira-int.h:807
gcc::context * g
Definition context.cc:29
#define GTY(x)
Definition coretypes.h:41
#define this_target_expmed
Definition expmed.h:188
#define this_target_flag_state
Definition flags.h:102
#define this_target_function_abi_info
Definition function-abi.h:277
#define this_target_gcse
Definition gcse.h:39
T * ggc_alloc(ALONE_CXX_MEM_STAT_INFO)
Definition ggc.h:184
#define this_target_hard_regs
Definition hard-reg-set.h:463
#define this_target_ira_int
Definition ira-int.h:945
#define this_target_ira
Definition ira.h:131
#define this_target_libfuncs
Definition libfuncs.h:68
#define this_target_lower_subreg
Definition lower-subreg.h:57
#define this_target_recog
Definition recog.h:531
#define this_target_regs
Definition regs.h:239
#define this_target_reload
Definition reload.h:198
#define this_target_rtl
Definition rtl.h:3932
Definition bb-reorder.h:24
Definition builtins.h:26
Definition cfgloop.h:846
Definition expmed.h:148
Definition function-abi.h:233
Definition gcse.h:25
Definition hard-reg-set.h:375
Definition ira.h:36
Definition libfuncs.h:55
Definition lower-subreg.h:44
Definition recog.h:521
Definition regs.h:200
Definition reload.h:156
Definition rtl.h:3882