psystem.pas 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. {
  2. Copyright (c) 1998-2002 by Florian Klaempfl
  3. Load the system unit, create required defs for systemunit
  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 psystem;
  18. {$i fpcdefs.inc}
  19. interface
  20. uses
  21. symbase;
  22. procedure create_intern_symbols;
  23. procedure create_intern_types;
  24. procedure load_intern_types;
  25. procedure registernodes;
  26. procedure registertais;
  27. implementation
  28. uses
  29. globals,globtype,verbose,
  30. systems,
  31. symconst,symtype,symsym,symdef,symtable,
  32. aasmtai,aasmcpu,ncgutil,fmodule,
  33. node,nbas,nflw,nset,ncon,ncnv,nld,nmem,ncal,nmat,nadd,ninl,nopt
  34. ;
  35. procedure create_intern_symbols;
  36. {
  37. all intern procedures for the system unit
  38. }
  39. begin
  40. systemunit.insert(tsyssym.create('Concat',in_concat_x));
  41. systemunit.insert(tsyssym.create('Write',in_write_x));
  42. systemunit.insert(tsyssym.create('WriteLn',in_writeln_x));
  43. systemunit.insert(tsyssym.create('Assigned',in_assigned_x));
  44. systemunit.insert(tsyssym.create('Read',in_read_x));
  45. systemunit.insert(tsyssym.create('ReadLn',in_readln_x));
  46. systemunit.insert(tsyssym.create('Ofs',in_ofs_x));
  47. systemunit.insert(tsyssym.create('SizeOf',in_sizeof_x));
  48. systemunit.insert(tsyssym.create('TypeOf',in_typeof_x));
  49. systemunit.insert(tsyssym.create('Low',in_low_x));
  50. systemunit.insert(tsyssym.create('High',in_high_x));
  51. systemunit.insert(tsyssym.create('Slice',in_slice_x));
  52. systemunit.insert(tsyssym.create('Seg',in_seg_x));
  53. systemunit.insert(tsyssym.create('Ord',in_ord_x));
  54. systemunit.insert(tsyssym.create('Pred',in_pred_x));
  55. systemunit.insert(tsyssym.create('Succ',in_succ_x));
  56. systemunit.insert(tsyssym.create('Exclude',in_exclude_x_y));
  57. systemunit.insert(tsyssym.create('Include',in_include_x_y));
  58. systemunit.insert(tsyssym.create('Break',in_break));
  59. systemunit.insert(tsyssym.create('Exit',in_exit));
  60. systemunit.insert(tsyssym.create('Continue',in_continue));
  61. systemunit.insert(tsyssym.create('Leave',in_leave)); {macpas only}
  62. systemunit.insert(tsyssym.create('Cycle',in_cycle)); {macpas only}
  63. systemunit.insert(tsyssym.create('Dec',in_dec_x));
  64. systemunit.insert(tsyssym.create('Inc',in_inc_x));
  65. systemunit.insert(tsyssym.create('Str',in_str_x_string));
  66. systemunit.insert(tsyssym.create('Assert',in_assert_x_y));
  67. systemunit.insert(tsyssym.create('Val',in_val_x));
  68. systemunit.insert(tsyssym.create('Addr',in_addr_x));
  69. systemunit.insert(tsyssym.create('TypeInfo',in_typeinfo_x));
  70. systemunit.insert(tsyssym.create('SetLength',in_setlength_x));
  71. systemunit.insert(tsyssym.create('Copy',in_copy_x));
  72. systemunit.insert(tsyssym.create('Initialize',in_initialize_x));
  73. systemunit.insert(tsyssym.create('Finalize',in_finalize_x));
  74. systemunit.insert(tsyssym.create('Length',in_length_x));
  75. systemunit.insert(tsyssym.create('New',in_new_x));
  76. systemunit.insert(tsyssym.create('Dispose',in_dispose_x));
  77. end;
  78. procedure create_intern_types;
  79. {
  80. all the types inserted into the system unit
  81. }
  82. function addtype(const s:string;const t:ttype):ttypesym;
  83. begin
  84. result:=ttypesym.create(s,t);
  85. systemunit.insert(result);
  86. { add init/final table if required }
  87. if t.def.needs_inittable then
  88. generate_inittable(result);
  89. end;
  90. procedure adddef(const s:string;def:tdef);
  91. var
  92. t : ttype;
  93. begin
  94. t.setdef(def);
  95. systemunit.insert(ttypesym.create(s,t));
  96. end;
  97. var
  98. hrecst : trecordsymtable;
  99. begin
  100. symtablestack.push(systemunit);
  101. cundefinedtype.setdef(tundefineddef.create);
  102. cformaltype.setdef(tformaldef.create);
  103. voidtype.setdef(torddef.create(uvoid,0,0));
  104. u8inttype.setdef(torddef.create(u8bit,0,255));
  105. s8inttype.setdef(torddef.create(s8bit,-128,127));
  106. u16inttype.setdef(torddef.create(u16bit,0,65535));
  107. s16inttype.setdef(torddef.create(s16bit,-32768,32767));
  108. u32inttype.setdef(torddef.create(u32bit,0,high(longword)));
  109. s32inttype.setdef(torddef.create(s32bit,low(longint),high(longint)));
  110. u64inttype.setdef(torddef.create(u64bit,low(qword),TConstExprInt(high(qword))));
  111. s64inttype.setdef(torddef.create(s64bit,low(int64),high(int64)));
  112. booltype.setdef(torddef.create(bool8bit,0,1));
  113. cchartype.setdef(torddef.create(uchar,0,255));
  114. cwidechartype.setdef(torddef.create(uwidechar,0,65535));
  115. cshortstringtype.setdef(tstringdef.createshort(255));
  116. { should we give a length to the default long and ansi string definition ?? }
  117. clongstringtype.setdef(tstringdef.createlong(-1));
  118. cansistringtype.setdef(tstringdef.createansi(-1));
  119. cwidestringtype.setdef(tstringdef.createwide(-1));
  120. { length=0 for shortstring is open string (needed for readln(string) }
  121. openshortstringtype.setdef(tstringdef.createshort(0));
  122. openchararraytype.setdef(tarraydef.create(0,-1,s32inttype));
  123. tarraydef(openchararraytype.def).setelementtype(cchartype);
  124. {$ifdef x86}
  125. s32floattype.setdef(tfloatdef.create(s32real));
  126. s64floattype.setdef(tfloatdef.create(s64real));
  127. s80floattype.setdef(tfloatdef.create(s80real));
  128. if target_info.system<>system_x86_64_win64 then
  129. s64currencytype.setdef(tfloatdef.create(s64currency))
  130. else
  131. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  132. {$endif x86}
  133. {$ifdef powerpc}
  134. s32floattype.setdef(tfloatdef.create(s32real));
  135. s64floattype.setdef(tfloatdef.create(s64real));
  136. s80floattype.setdef(tfloatdef.create(s80real));
  137. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  138. {$endif powerpc}
  139. {$ifdef POWERPC64}
  140. s32floattype.setdef(tfloatdef.create(s32real));
  141. s64floattype.setdef(tfloatdef.create(s64real));
  142. s80floattype.setdef(tfloatdef.create(s80real));
  143. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  144. {$endif POWERPC64}
  145. {$ifdef sparc}
  146. s32floattype.setdef(tfloatdef.create(s32real));
  147. s64floattype.setdef(tfloatdef.create(s64real));
  148. s80floattype.setdef(tfloatdef.create(s80real));
  149. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  150. {$endif sparc}
  151. {$ifdef m68k}
  152. s32floattype.setdef(tfloatdef.create(s32real));
  153. s64floattype.setdef(tfloatdef.create(s64real));
  154. s80floattype.setdef(tfloatdef.create(s80real));
  155. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  156. {$endif}
  157. {$ifdef arm}
  158. s32floattype.setdef(tfloatdef.create(s32real));
  159. s64floattype.setdef(tfloatdef.create(s64real));
  160. s80floattype.setdef(tfloatdef.create(s80real));
  161. s64currencytype.setdef(torddef.create(scurrency,low(int64),high(int64)));
  162. {$endif arm}
  163. {$ifdef cpu64bit}
  164. uinttype:=u64inttype;
  165. sinttype:=s64inttype;
  166. ptrinttype:=u64inttype;
  167. {$else cpu64bit}
  168. uinttype:=u32inttype;
  169. sinttype:=s32inttype;
  170. ptrinttype:=u32inttype;
  171. {$endif cpu64bit}
  172. { some other definitions }
  173. voidpointertype.setdef(tpointerdef.create(voidtype));
  174. charpointertype.setdef(tpointerdef.create(cchartype));
  175. widecharpointertype.setdef(tpointerdef.create(cwidechartype));
  176. voidfarpointertype.setdef(tpointerdef.createfar(voidtype));
  177. cfiletype.setdef(tfiledef.createuntyped);
  178. cvarianttype.setdef(tvariantdef.create(vt_normalvariant));
  179. colevarianttype.setdef(tvariantdef.create(vt_olevariant));
  180. if target_info.system=system_x86_64_win64 then
  181. pbestrealtype:=@s64floattype;
  182. {$ifdef cpufpemu}
  183. { Normal types }
  184. (* we use the same types as without emulator, the only
  185. difference is that direct calls to the emulator are generated
  186. if (cs_fp_emulation in aktmoduleswitches) then
  187. begin
  188. addtype('Single',s32floattype);
  189. { extended size is the best real type for the target }
  190. addtype('Real',s32floattype);
  191. pbestrealtype:=@s32floattype;
  192. { extended size is the best real type for the target }
  193. addtype('Extended',pbestrealtype^);
  194. end
  195. else
  196. *)
  197. {$endif cpufpemu}
  198. begin
  199. addtype('Single',s32floattype);
  200. addtype('Double',s64floattype);
  201. { extended size is the best real type for the target }
  202. addtype('Extended',pbestrealtype^);
  203. addtype('Real',s64floattype);
  204. end;
  205. {$ifdef x86}
  206. if target_info.system<>system_x86_64_win64 then
  207. adddef('Comp',tfloatdef.create(s64comp));
  208. {$endif x86}
  209. addtype('Currency',s64currencytype);
  210. addtype('Pointer',voidpointertype);
  211. {$ifdef x86}
  212. addtype('FarPointer',voidfarpointertype);
  213. {$endif x86}
  214. addtype('ShortString',cshortstringtype);
  215. {$ifdef support_longstring}
  216. addtype('LongString',clongstringtype);
  217. {$endif support_longstring}
  218. addtype('AnsiString',cansistringtype);
  219. addtype('WideString',cwidestringtype);
  220. addtype('Boolean',booltype);
  221. addtype('ByteBool',booltype);
  222. adddef('WordBool',torddef.create(bool16bit,0,1));
  223. adddef('LongBool',torddef.create(bool32bit,0,1));
  224. addtype('Byte',u8inttype);
  225. addtype('ShortInt',s8inttype);
  226. addtype('Word',u16inttype);
  227. addtype('SmallInt',s16inttype);
  228. addtype('LongWord',u32inttype);
  229. addtype('LongInt',s32inttype);
  230. addtype('QWord',u64inttype);
  231. addtype('Int64',s64inttype);
  232. addtype('Char',cchartype);
  233. addtype('WideChar',cwidechartype);
  234. adddef('Text',tfiledef.createtext);
  235. adddef('TypedFile',tfiledef.createtyped(voidtype));
  236. addtype('Variant',cvarianttype);
  237. addtype('OleVariant',colevarianttype);
  238. { Internal types }
  239. addtype('$undefined',cundefinedtype);
  240. addtype('$formal',cformaltype);
  241. addtype('$void',voidtype);
  242. addtype('$byte',u8inttype);
  243. addtype('$shortint',s8inttype);
  244. addtype('$word',u16inttype);
  245. addtype('$smallint',s16inttype);
  246. addtype('$ulong',u32inttype);
  247. addtype('$longint',s32inttype);
  248. addtype('$qword',u64inttype);
  249. addtype('$int64',s64inttype);
  250. addtype('$char',cchartype);
  251. addtype('$widechar',cwidechartype);
  252. addtype('$shortstring',cshortstringtype);
  253. addtype('$longstring',clongstringtype);
  254. addtype('$ansistring',cansistringtype);
  255. addtype('$widestring',cwidestringtype);
  256. addtype('$openshortstring',openshortstringtype);
  257. addtype('$boolean',booltype);
  258. addtype('$void_pointer',voidpointertype);
  259. addtype('$char_pointer',charpointertype);
  260. addtype('$widechar_pointer',widecharpointertype);
  261. addtype('$void_farpointer',voidfarpointertype);
  262. addtype('$openchararray',openchararraytype);
  263. addtype('$file',cfiletype);
  264. addtype('$variant',cvarianttype);
  265. addtype('$olevariant',cvarianttype);
  266. addtype('$s32real',s32floattype);
  267. addtype('$s64real',s64floattype);
  268. addtype('$s80real',s80floattype);
  269. addtype('$s64currency',s64currencytype);
  270. { Add a type for virtual method tables }
  271. hrecst:=trecordsymtable.create(aktpackrecords);
  272. vmttype.setdef(trecorddef.create(hrecst));
  273. pvmttype.setdef(tpointerdef.create(vmttype));
  274. hrecst.insertfield(tfieldvarsym.create('$parent',vs_value,pvmttype,[]));
  275. hrecst.insertfield(tfieldvarsym.create('$length',vs_value,s32inttype,[]));
  276. hrecst.insertfield(tfieldvarsym.create('$mlength',vs_value,s32inttype,[]));
  277. vmtarraytype.setdef(tarraydef.create(0,1,s32inttype));
  278. tarraydef(vmtarraytype.def).setelementtype(voidpointertype);
  279. hrecst.insertfield(tfieldvarsym.create('$__pfn',vs_value,vmtarraytype,[]));
  280. addtype('$__vtbl_ptr_type',vmttype);
  281. addtype('$pvmt',pvmttype);
  282. vmtarraytype.setdef(tarraydef.create(0,1,s32inttype));
  283. tarraydef(vmtarraytype.def).setelementtype(pvmttype);
  284. addtype('$vtblarray',vmtarraytype);
  285. { Add a type for methodpointers }
  286. hrecst:=trecordsymtable.create(1);
  287. hrecst.insertfield(tfieldvarsym.create('$proc',vs_value,voidpointertype,[]));
  288. hrecst.insertfield(tfieldvarsym.create('$self',vs_value,voidpointertype,[]));
  289. methodpointertype.setdef(trecorddef.create(hrecst));
  290. addtype('$methodpointer',methodpointertype);
  291. symtablestack.pop(systemunit);
  292. end;
  293. procedure load_intern_types;
  294. {
  295. Load all default definitions for consts from the system unit
  296. }
  297. procedure loadtype(const s:string;var t:ttype);
  298. var
  299. srsym : ttypesym;
  300. begin
  301. srsym:=search_system_type(s);
  302. t:=srsym.restype;
  303. end;
  304. var
  305. oldcurrentmodule : tmodule;
  306. begin
  307. oldcurrentmodule:=current_module;
  308. current_module:=nil;
  309. loadtype('byte',u8inttype);
  310. loadtype('shortint',s8inttype);
  311. loadtype('word',u16inttype);
  312. loadtype('smallint',s16inttype);
  313. loadtype('ulong',u32inttype);
  314. loadtype('longint',s32inttype);
  315. loadtype('qword',u64inttype);
  316. loadtype('int64',s64inttype);
  317. loadtype('undefined',cundefinedtype);
  318. loadtype('formal',cformaltype);
  319. loadtype('void',voidtype);
  320. loadtype('char',cchartype);
  321. loadtype('widechar',cwidechartype);
  322. loadtype('shortstring',cshortstringtype);
  323. loadtype('longstring',clongstringtype);
  324. loadtype('ansistring',cansistringtype);
  325. loadtype('widestring',cwidestringtype);
  326. loadtype('openshortstring',openshortstringtype);
  327. loadtype('openchararray',openchararraytype);
  328. loadtype('s32real',s32floattype);
  329. loadtype('s64real',s64floattype);
  330. loadtype('s80real',s80floattype);
  331. loadtype('s64currency',s64currencytype);
  332. loadtype('boolean',booltype);
  333. loadtype('void_pointer',voidpointertype);
  334. loadtype('char_pointer',charpointertype);
  335. loadtype('widechar_pointer',widecharpointertype);
  336. loadtype('void_farpointer',voidfarpointertype);
  337. loadtype('file',cfiletype);
  338. loadtype('pvmt',pvmttype);
  339. loadtype('vtblarray',vmtarraytype);
  340. loadtype('__vtbl_ptr_type',vmttype);
  341. loadtype('variant',cvarianttype);
  342. loadtype('olevariant',colevarianttype);
  343. loadtype('methodpointer',methodpointertype);
  344. {$ifdef cpu64bit}
  345. uinttype:=u64inttype;
  346. sinttype:=s64inttype;
  347. ptrinttype:=u64inttype;
  348. {$else cpu64bit}
  349. uinttype:=u32inttype;
  350. sinttype:=s32inttype;
  351. ptrinttype:=u32inttype;
  352. {$endif cpu64bit}
  353. current_module:=oldcurrentmodule;
  354. end;
  355. procedure registernodes;
  356. {
  357. Register all possible nodes in the nodeclass array that
  358. will be used for loading the nodes from a ppu
  359. }
  360. begin
  361. nodeclass[addn]:=caddnode;
  362. nodeclass[muln]:=caddnode;
  363. nodeclass[subn]:=caddnode;
  364. nodeclass[divn]:=cmoddivnode;
  365. nodeclass[symdifn]:=caddnode;
  366. nodeclass[modn]:=cmoddivnode;
  367. nodeclass[assignn]:=cassignmentnode;
  368. nodeclass[loadn]:=cloadnode;
  369. nodeclass[rangen]:=crangenode;
  370. nodeclass[ltn]:=caddnode;
  371. nodeclass[lten]:=caddnode;
  372. nodeclass[gtn]:=caddnode;
  373. nodeclass[gten]:=caddnode;
  374. nodeclass[equaln]:=caddnode;
  375. nodeclass[unequaln]:=caddnode;
  376. nodeclass[inn]:=cinnode;
  377. nodeclass[orn]:=caddnode;
  378. nodeclass[xorn]:=caddnode;
  379. nodeclass[shrn]:=cshlshrnode;
  380. nodeclass[shln]:=cshlshrnode;
  381. nodeclass[slashn]:=caddnode;
  382. nodeclass[andn]:=caddnode;
  383. nodeclass[subscriptn]:=csubscriptnode;
  384. nodeclass[derefn]:=cderefnode;
  385. nodeclass[addrn]:=caddrnode;
  386. nodeclass[ordconstn]:=cordconstnode;
  387. nodeclass[typeconvn]:=ctypeconvnode;
  388. nodeclass[calln]:=ccallnode;
  389. nodeclass[callparan]:=ccallparanode;
  390. nodeclass[realconstn]:=crealconstnode;
  391. nodeclass[unaryminusn]:=cunaryminusnode;
  392. nodeclass[asmn]:=casmnode;
  393. nodeclass[vecn]:=cvecnode;
  394. nodeclass[pointerconstn]:=cpointerconstnode;
  395. nodeclass[stringconstn]:=cstringconstnode;
  396. nodeclass[notn]:=cnotnode;
  397. nodeclass[inlinen]:=cinlinenode;
  398. nodeclass[niln]:=cnilnode;
  399. nodeclass[errorn]:=cerrornode;
  400. nodeclass[typen]:=ctypenode;
  401. nodeclass[setelementn]:=csetelementnode;
  402. nodeclass[setconstn]:=csetconstnode;
  403. nodeclass[blockn]:=cblocknode;
  404. nodeclass[statementn]:=cstatementnode;
  405. nodeclass[ifn]:=cifnode;
  406. nodeclass[breakn]:=cbreaknode;
  407. nodeclass[continuen]:=ccontinuenode;
  408. nodeclass[whilerepeatn]:=cwhilerepeatnode;
  409. nodeclass[forn]:=cfornode;
  410. nodeclass[exitn]:=cexitnode;
  411. nodeclass[withn]:=cwithnode;
  412. nodeclass[casen]:=ccasenode;
  413. nodeclass[labeln]:=clabelnode;
  414. nodeclass[goton]:=cgotonode;
  415. nodeclass[tryexceptn]:=ctryexceptnode;
  416. nodeclass[raisen]:=craisenode;
  417. nodeclass[tryfinallyn]:=ctryfinallynode;
  418. nodeclass[onn]:=connode;
  419. nodeclass[isn]:=cisnode;
  420. nodeclass[asn]:=casnode;
  421. nodeclass[caretn]:=caddnode;
  422. nodeclass[starstarn]:=caddnode;
  423. nodeclass[arrayconstructorn]:=carrayconstructornode;
  424. nodeclass[arrayconstructorrangen]:=carrayconstructorrangenode;
  425. nodeclass[tempcreaten]:=ctempcreatenode;
  426. nodeclass[temprefn]:=ctemprefnode;
  427. nodeclass[tempdeleten]:=ctempdeletenode;
  428. nodeclass[addoptn]:=caddnode;
  429. nodeclass[nothingn]:=cnothingnode;
  430. nodeclass[loadvmtaddrn]:=cloadvmtaddrnode;
  431. nodeclass[guidconstn]:=cguidconstnode;
  432. nodeclass[rttin]:=crttinode;
  433. nodeclass[loadparentfpn]:=cloadparentfpnode;
  434. end;
  435. procedure registertais;
  436. {
  437. Register all possible tais in the taiclass array that
  438. will be used for loading the tais from a ppu
  439. }
  440. begin
  441. aiclass[ait_none]:=nil;
  442. aiclass[ait_align]:=tai_align;
  443. aiclass[ait_section]:=tai_section;
  444. aiclass[ait_comment]:=tai_comment;
  445. aiclass[ait_string]:=tai_string;
  446. aiclass[ait_instruction]:=taicpu;
  447. aiclass[ait_datablock]:=tai_datablock;
  448. aiclass[ait_symbol]:=tai_symbol;
  449. aiclass[ait_symbol_end]:=tai_symbol_end;
  450. aiclass[ait_directive]:=tai_directive;
  451. aiclass[ait_label]:=tai_label;
  452. aiclass[ait_const]:=tai_const;
  453. aiclass[ait_real_32bit]:=tai_real_32bit;
  454. aiclass[ait_real_64bit]:=tai_real_64bit;
  455. aiclass[ait_real_80bit]:=tai_real_80bit;
  456. aiclass[ait_comp_64bit]:=tai_comp_64bit;
  457. aiclass[ait_stab]:=tai_stab;
  458. aiclass[ait_force_line]:=tai_force_line;
  459. aiclass[ait_function_name]:=tai_function_name;
  460. {$ifdef alpha}
  461. { the follow is for the DEC Alpha }
  462. aiclass[ait_frame]:=tai_frame;
  463. aiclass[ait_ent]:=tai_ent;
  464. {$endif alpha}
  465. {$ifdef m68k}
  466. {$warning FIXME: tai_labeled_instruction doesn't exists}
  467. // aiclass[ait_labeled_instruction]:=tai_labeled_instruction;
  468. {$endif m68k}
  469. {$ifdef ia64}
  470. aiclass[ait_bundle]:=tai_bundle;
  471. aiclass[ait_stop]:=tai_stop;
  472. {$endif ia64}
  473. {$ifdef SPARC}
  474. // aiclass[ait_labeled_instruction]:=tai_labeled_instruction;
  475. {$endif SPARC}
  476. aiclass[ait_cutobject]:=tai_cutobject;
  477. aiclass[ait_regalloc]:=tai_regalloc;
  478. aiclass[ait_tempalloc]:=tai_tempalloc;
  479. aiclass[ait_marker]:=tai_marker;
  480. aiclass[ait_file]:=tai_file;
  481. aiclass[ait_loc]:=tai_loc;
  482. end;
  483. end.