nllvmutil.pas 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. {
  2. Copyright (c) 20011 by Jonas Maebe
  3. LLVM version of some node tree helper routines
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. ****************************************************************************
  16. }
  17. unit nllvmutil;
  18. {$i fpcdefs.inc}
  19. interface
  20. uses
  21. globtype,
  22. aasmdata,ngenutil,
  23. symtype,symconst,symsym,symdef;
  24. type
  25. tllvmnodeutils = class(tnodeutils)
  26. strict protected
  27. class procedure insertbsssym(list: tasmlist; sym: tstaticvarsym; size: asizeint); override;
  28. public
  29. class procedure InsertInitFinalTable; override;
  30. class procedure InsertThreadvarTablesTable; override;
  31. class procedure InsertThreadvars; override;
  32. class procedure InsertWideInitsTablesTable; override;
  33. class procedure InsertWideInits; override;
  34. class procedure InsertResourceTablesTable; override;
  35. class procedure InsertResourceInfo(ResourcesUsed : boolean); override;
  36. class procedure InsertMemorySizes; override;
  37. end;
  38. implementation
  39. uses
  40. verbose,cutils,globals,fmodule,
  41. aasmtai,cpubase,llvmbase,aasmllvm,
  42. symbase,symtable,defutil;
  43. class procedure tllvmnodeutils.insertbsssym(list: tasmlist; sym: tstaticvarsym; size: asizeint);
  44. begin
  45. list.concat(taillvmvarsym.Create(sym));
  46. end;
  47. class procedure tllvmnodeutils.InsertInitFinalTable;
  48. begin
  49. { todo }
  50. end;
  51. class procedure tllvmnodeutils.InsertThreadvarTablesTable;
  52. begin
  53. { not yet supported }
  54. end;
  55. class procedure tllvmnodeutils.InsertThreadvars;
  56. begin
  57. { not yet supported }
  58. end;
  59. class procedure tllvmnodeutils.InsertWideInitsTablesTable;
  60. begin
  61. { not required }
  62. end;
  63. class procedure tllvmnodeutils.InsertWideInits;
  64. begin
  65. { not required }
  66. end;
  67. class procedure tllvmnodeutils.InsertResourceTablesTable;
  68. begin
  69. { not supported }
  70. end;
  71. class procedure tllvmnodeutils.InsertResourceInfo(ResourcesUsed: boolean);
  72. begin
  73. { not supported }
  74. end;
  75. class procedure tllvmnodeutils.InsertMemorySizes;
  76. begin
  77. { not required }
  78. end;
  79. begin
  80. cnodeutils:=tllvmnodeutils;
  81. end.