rgcpu.pas 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. This unit implements the x86-64 specific class for the register
  5. allocator
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. ****************************************************************************
  18. }
  19. unit rgcpu;
  20. {$i fpcdefs.inc}
  21. interface
  22. uses
  23. rgx86;
  24. type
  25. trgcpu = class(trgx86)
  26. procedure add_constraints(reg:Tregister);
  27. end;
  28. implementation
  29. procedure trgcpu.add_constraints(reg:Tregister);
  30. var
  31. supreg : tsuperregister;
  32. begin
  33. supreg:=getsupreg(reg);
  34. { All registers conflict with rsp/rbp }
  35. add_edge(supreg,RS_RSP);
  36. add_edge(supreg,RS_RBP);
  37. end;
  38. end.
  39. {
  40. $Log$
  41. Revision 1.10 2004-10-13 21:12:51 peter
  42. * -Or fixes for open array
  43. Revision 1.9 2004/06/20 08:55:32 florian
  44. * logs truncated
  45. Revision 1.8 2004/02/05 01:24:08 florian
  46. * several fixes to compile x86-64 system
  47. }