aoptcpu.pas 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Jonas Maebe, member of the Free Pascal
  4. Development Team
  5. This unit implements the PowerPC optimizer object
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. ****************************************************************************
  18. }
  19. Unit aoptcpu;
  20. Interface
  21. {$i fpcdefs.inc}
  22. uses cpubase, aoptobj, aoptcpub, aopt;
  23. Type
  24. TCpuAsmOptimizer = class(TAsmOptimizer)
  25. { uses the same constructor as TAopObj }
  26. End;
  27. Implementation
  28. begin
  29. casmoptimizer:=TCpuAsmOptimizer;
  30. End.
  31. {
  32. $Log$
  33. Revision 1.7 2005-02-26 01:27:00 jonas
  34. * fixed generic jumps optimizer and enabled it for ppc (the label table
  35. was not being initialised -> getfinaldestination always failed, which
  36. caused wrong optimizations in some cases)
  37. * changed the inverse_cond into a function, because tasmcond is a record
  38. on ppc
  39. + added a compare_conditions() function for the same reason
  40. Revision 1.6 2005/02/14 17:13:10 peter
  41. * truncate log
  42. }