cpunode.pas 3.7 KB

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