cpunode.pas 3.6 KB

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