cpunode.pas 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. { generic nodes }
  24. ncgbas,ncgld,ncgflw,ncgcnv,ncgmem,ncgcon,ncgcal,ncgset,ncginl,
  25. { to be able to only parts of the generic code,
  26. the processor specific nodes must be included
  27. after the generic one (FK)
  28. }
  29. n386add,
  30. n386cal,
  31. n386con,
  32. n386flw,
  33. n386mem,
  34. n386set,
  35. n386inl,
  36. n386opt,
  37. { this not really a node }
  38. n386obj,
  39. n386mat,
  40. n386cnv
  41. ;
  42. end.
  43. {
  44. $Log$
  45. Revision 1.16 2002-08-18 20:06:29 peter
  46. * inlining is now also allowed in interface
  47. * renamed write/load to ppuwrite/ppuload
  48. * tnode storing in ppu
  49. * nld,ncon,nbas are already updated for storing in ppu
  50. Revision 1.15 2002/07/25 18:01:58 carl
  51. + added generic inline nodes
  52. Revision 1.14 2002/07/06 20:27:26 carl
  53. + generic set handling
  54. Revision 1.13 2002/05/18 13:34:22 peter
  55. * readded missing revisions
  56. Revision 1.12 2002/05/16 19:46:50 carl
  57. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  58. + try to fix temp allocation (still in ifdef)
  59. + generic constructor calls
  60. + start of tassembler / tmodulebase class cleanup
  61. Revision 1.10 2002/05/13 19:54:37 peter
  62. * removed n386ld and n386util units
  63. * maybe_save/maybe_restore added instead of the old maybe_push
  64. Revision 1.9 2002/04/19 15:39:35 peter
  65. * removed some more routines from cga
  66. * moved location_force_reg/mem to ncgutil
  67. * moved arrayconstructnode secondpass to ncgld
  68. Revision 1.8 2002/03/31 20:26:38 jonas
  69. + a_loadfpu_* and a_loadmm_* methods in tcg
  70. * register allocation is now handled by a class and is mostly processor
  71. independent (+rgobj.pas and i386/rgcpu.pas)
  72. * temp allocation is now handled by a class (+tgobj.pas, -i386\tgcpu.pas)
  73. * some small improvements and fixes to the optimizer
  74. * some register allocation fixes
  75. * some fpuvaroffset fixes in the unary minus node
  76. * push/popusedregisters is now called rg.save/restoreusedregisters and
  77. (for i386) uses temps instead of push/pop's when using -Op3 (that code is
  78. also better optimizable)
  79. * fixed and optimized register saving/restoring for new/dispose nodes
  80. * LOC_FPU locations now also require their "register" field to be set to
  81. R_ST, not R_ST0 (the latter is used for LOC_CFPUREGISTER locations only)
  82. - list field removed of the tnode class because it's not used currently
  83. and can cause hard-to-find bugs
  84. }