lra.h 1.4 KB

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