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