cpunode.pas 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. $Id$
  3. Copyright (c) 2000-2002 by Florian Klaempfl
  4. Includes the i386 code generator
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit cpunode;
  19. {$i fpcdefs.inc}
  20. interface
  21. implementation
  22. uses
  23. ncgbas,ncgflw,ncgcnv,ncgld,ncgmem,ncgcon,ncgset,ncginl,
  24. n386add,n386cal,n386con,n386cnv,n386flw,n386mat,n386mem,
  25. n386set,n386inl,n386opt,
  26. { this not really a node }
  27. n386obj, rgcpu;
  28. end.
  29. {
  30. $Log$
  31. Revision 1.15 2002-07-25 18:01:58 carl
  32. + added generic inline nodes
  33. Revision 1.14 2002/07/06 20:27:26 carl
  34. + generic set handling
  35. Revision 1.13 2002/05/18 13:34:22 peter
  36. * readded missing revisions
  37. Revision 1.12 2002/05/16 19:46:50 carl
  38. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  39. + try to fix temp allocation (still in ifdef)
  40. + generic constructor calls
  41. + start of tassembler / tmodulebase class cleanup
  42. Revision 1.10 2002/05/13 19:54:37 peter
  43. * removed n386ld and n386util units
  44. * maybe_save/maybe_restore added instead of the old maybe_push
  45. Revision 1.9 2002/04/19 15:39:35 peter
  46. * removed some more routines from cga
  47. * moved location_force_reg/mem to ncgutil
  48. * moved arrayconstructnode secondpass to ncgld
  49. Revision 1.8 2002/03/31 20:26:38 jonas
  50. + a_loadfpu_* and a_loadmm_* methods in tcg
  51. * register allocation is now handled by a class and is mostly processor
  52. independent (+rgobj.pas and i386/rgcpu.pas)
  53. * temp allocation is now handled by a class (+tgobj.pas, -i386\tgcpu.pas)
  54. * some small improvements and fixes to the optimizer
  55. * some register allocation fixes
  56. * some fpuvaroffset fixes in the unary minus node
  57. * push/popusedregisters is now called rg.save/restoreusedregisters and
  58. (for i386) uses temps instead of push/pop's when using -Op3 (that code is
  59. also better optimizable)
  60. * fixed and optimized register saving/restoring for new/dispose nodes
  61. * LOC_FPU locations now also require their "register" field to be set to
  62. R_ST, not R_ST0 (the latter is used for LOC_CFPUREGISTER locations only)
  63. - list field removed of the tnode class because it's not used currently
  64. and can cause hard-to-find bugs
  65. }