llvminfo.pas 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. Copyright (c) 2010, 2013 by Jonas Maebe
  3. Basic Processor information for LLVM
  4. See the file COPYING.FPC, included in this distribution,
  5. for details about the copyright.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. **********************************************************************}
  10. Unit llvminfo;
  11. Interface
  12. uses
  13. globtype, cpubase;
  14. Type
  15. { possible supported processors for this target }
  16. tllvmcputype =
  17. (llvmcpu_none,
  18. { may add older/newer versions if required/appropriate }
  19. llvmcpu_33
  20. );
  21. Const
  22. llvmcputypestr : array[tllvmcputype] of string[9] = ('',
  23. 'LLVM-3.3'
  24. );
  25. { Supported optimizations, only used for information }
  26. supported_optimizerswitches = genericlevel1optimizerswitches+
  27. genericlevel2optimizerswitches+
  28. genericlevel3optimizerswitches-
  29. { no need to write info about those }
  30. [cs_opt_level1,cs_opt_level2,cs_opt_level3]+
  31. [cs_opt_loopunroll,cs_opt_nodecse];
  32. level1optimizerswitches = genericlevel1optimizerswitches;
  33. level2optimizerswitches = genericlevel2optimizerswitches + level1optimizerswitches + [cs_opt_nodecse];
  34. level3optimizerswitches = genericlevel3optimizerswitches + level2optimizerswitches + [{,cs_opt_loopunroll}];
  35. level4optimizerswitches = genericlevel4optimizerswitches + level3optimizerswitches + [];
  36. Implementation
  37. end.