cpunode.pas 3.7 KB

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