GCC Middle and Back End API Reference
lra.h
Go to the documentation of this file.
1/* Communication between the Local Register Allocator (LRA) and
2 the rest of the compiler.
3 Copyright (C) 2010-2026 Free Software Foundation, Inc.
4 Contributed by Vladimir Makarov <vmakarov@redhat.com>.
5
6This file is part of GCC.
7
8GCC is free software; you can redistribute it and/or modify it under
9the terms of the GNU General Public License as published by the Free
10Software Foundation; either version 3, or (at your option) any later
11version.
12
13GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14WARRANTY; without even the implied warranty of MERCHANTABILITY or
15FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16for more details.
17
18You should have received a copy of the GNU General Public License
19along with GCC; see the file COPYING3. If not see
20<http://www.gnu.org/licenses/>. */
21
22#ifndef GCC_LRA_H
23#define GCC_LRA_H
24
25extern bool lra_simple_p;
26
27/* Return the allocno reg class of REGNO. If it is a reload pseudo,
28 the pseudo should finally get hard register of the allocno
29 class. */
30inline enum reg_class
32{
34 return reg_allocno_class (regno);
35}
36
37extern rtx lra_eliminate_regs (rtx, machine_mode, rtx);
38extern void lra (FILE *, int);
39extern void lra_init_once (void);
40extern void lra_finish_once (void);
42 (int, machine_mode, unsigned int, machine_mode, bool);
43extern void lra_reset_dependent_filters (void);
44
45#endif /* GCC_LRA_H */
struct rtx_def * rtx
Definition coretypes.h:57
HARD_REG_ELT_TYPE HARD_REG_SET
Definition hard-reg-set.h:47
bool lra_simple_p
Definition lra.cc:2419
enum reg_class lra_get_allocno_class(int regno)
Definition lra.h:31
const HARD_REG_SET * lra_get_dependent_filter(int, machine_mode, unsigned int, machine_mode, bool)
Definition lra-constraints.cc:2272
rtx lra_eliminate_regs(rtx, machine_mode, rtx)
Definition lra-eliminations.cc:750
void lra_finish_once(void)
Definition lra.cc:2714
void lra(FILE *, int)
Definition lra.cc:2424
void lra_reset_dependent_filters(void)
Definition lra-constraints.cc:2256
void lra_init_once(void)
Definition lra.cc:2705
enum reg_class reg_allocno_class(int regno)
Definition reginfo.cc:848
bool resize_reg_info(void)
Definition reginfo.cc:883