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