2013-01-08 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / lra.h
blobea275f72a4424098010d1b63ca994b9513d57e7f
1 /* Communication between the Local Register Allocator (LRA) and
2 the rest of the compiler.
3 Copyright (C) 2010, 2011, 2012
4 Free Software Foundation, Inc.
5 Contributed by Vladimir Makarov <vmakarov@redhat.com>.
7 This file is part of GCC.
9 GCC is free software; you can redistribute it and/or modify it under
10 the terms of the GNU General Public License as published by the Free
11 Software Foundation; either version 3, or (at your option) any later
12 version.
14 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 for more details.
19 You should have received a copy of the GNU General Public License
20 along with GCC; see the file COPYING3. If not see
21 <http://www.gnu.org/licenses/>. */
23 extern bool lra_simple_p;
25 /* Return the allocno reg class of REGNO. If it is a reload pseudo,
26 the pseudo should finally get hard register of the allocno
27 class. */
28 static inline enum reg_class
29 lra_get_allocno_class (int regno)
31 resize_reg_info ();
32 return reg_allocno_class (regno);
35 extern rtx lra_create_new_reg (enum machine_mode, rtx, enum reg_class,
36 const char *);
37 extern void lra_init_elimination (void);
38 extern rtx lra_eliminate_regs (rtx, enum machine_mode, rtx);
39 extern void lra (FILE *);
40 extern void lra_init_once (void);
41 extern void lra_init (void);
42 extern void lra_finish_once (void);