1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
|
-- Tree node definitions.
-- Copyright (C) 2002, 2003, 2004, 2005 Tristan Gingold
--
-- GHDL is free software; you can redistribute it and/or modify it under
-- the terms of the GNU General Public License as published by the Free
-- Software Foundation; either version 2, or (at your option) any later
-- version.
--
-- GHDL is distributed in the hope that it will be useful, but WITHOUT ANY
-- WARRANTY; without even the implied warranty of MERCHANTABILITY or
-- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-- for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with GHDL; see the file COPYING. If not, write to the Free
-- Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-- 02111-1307, USA.
with Ada.Unchecked_Deallocation;
with Types; use Types;
with Tokens; use Tokens;
with Nodes;
with Lists;
package Iirs is
-- This package defines the semantic tree and functions to handle it.
-- The tree is roughly based on IIR (Internal Intermediate Representation),
-- [AIRE/CE Advanced Intermediate Representation with Extensibility,
-- Common Environment. http://www.vhdl.org/aire/index.html ]
-- but oriented object features are not used, and sometimes, functions
-- or fields have changed.
-- Note: this tree is also used during syntaxic analysis, but with
-- a little bit different meanings for the fields.
-- The parser (parse package) build the tree.
-- The semantic pass (sem, sem_expr, sem_name) transforms it into a
-- semantic tree.
-- Documentation:
-- Only the semantic aspect is to be fully documented.
-- The syntaxic aspect is only used between parse and sem.
-- Each node of the tree is a record of type iir. The record has only
-- one discriminent, which contains the kind of the node. There is
-- currenlty no variant (but this can change, this is not public).
-- The root of a semantic tree is a library_declaration.
-- All the library_declarations are kept in a private list, held by
-- package libraries.
-- Exemple of a tree:
-- library_declaration
-- +-- design_file
-- +-- design_unit
-- | +-- entity_declaration
-- +-- design_unit
-- +-- architecture_declaration
-- ...
-- Since the tree can represent all the libraries and their contents, it
-- is not always loaded into memory.
-- When a library is loaded, only library_declaration, design_file,
-- design_unit and library_unit nodes are created. When a design_unit is
-- really loaded, the design_unit node is not replaced but modified (ie,
-- access to this node are still valid).
-- To add a new kind of node:
-- the name should be of the form iir_kind_NAME
-- add iir_kind_NAME in the definition of type iir_kind_type
-- add a declaration of access type of name iir_kind_NAME_acc
-- document the node below: grammar, methods.
-- for each methods, add the name if the case statement in the body
-- (this enables the methods)
-- add an entry in create_iir and free_iir
-- add an entry in disp_tree (debugging)
-------------------------------------------------
-- General methods (can be used on all nodes): --
-------------------------------------------------
-- Create a node of kind KIND.
-- function Create_Iir (Kind: Iir_Kind) return Iir;
--
-- Deallocate a node. Deallocate fields that where allocated by create_iir.
-- procedure Free_Iir (Target: in out Iir);
--
-- Get the kind of the iir.
-- See below for the (public) list of kinds.
-- function Get_Kind (An_Iir: Iir) return Iir_Kind;
-- Get the location of the node: ie the current position in the source
-- file when the node was created. This is a little bit fuzzy.
--
-- procedure Set_Location (Target: in out Iir; Location: Location_Type);
-- function Get_Location (Target: in out Iir) return Location_Type;
--
-- Copy a location from a node to another one.
-- procedure Location_Copy (Target: in out Iir; Src: in Iir);
-- The next line marks the start of the node description.
-- Start of Iir_Kind.
-------------------------------------------------
-- A set of methods are associed with a kind. --
-------------------------------------------------
-- Iir_Kind_Design_File (Medium)
-- LRM93 11
-- DESIGN_FILE ::= DESIGN_UNIT { DESIGN_UNIT}
--
-- The library containing this design file.
-- Get/Set_Library (Field0)
-- Get/Set_Parent (Alias Field0)
--
-- Get/Set_File_Dependence_List (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Analysis_Time_Stamp (Field3)
--
-- Get/Set_File_Time_Stamp (Field4)
--
-- Get the chain of unit contained in the file. This is a simply linked
-- chain, but the tail is kept to speed-up appending operation.
-- Get/Set_First_Design_Unit (Field5)
--
-- Get/Set_Last_Design_Unit (Field6)
--
-- Identifier for the design file file name and dirname.
-- Get/Set_Design_File_Filename (Field12)
-- Get/Set_Design_File_Directory (Field11)
--
-- Flag used during elaboration. Set when the file was already seen.
-- Get/Set_Elab_Flag (Flag3)
-- Iir_Kind_Design_Unit (Medium)
-- LRM93 11
-- DESIGN_UNIT ::= CONTEXT_CLAUSE LIBRARY_UNIT
--
-- The design_file containing this design unit.
-- Get/Set_Design_File (Field0)
-- Get/Set_Parent (Alias Field0)
--
-- Get the chain of context clause.
-- Get_Context_Items (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set the library unit, which can be an entity, an architecture,
-- a package, a package body or a configuration.
-- Get/Set_Library_Unit (Field5)
--
-- Get/Set_End_Location (Field6)
--
-- Collision chain for units.
-- Get/Set_Hash_Chain (Field7)
--
-- Get the list of design units that must be analysed before this unit.
-- See LRM93 11.4 for the rules defining the order of analysis.
-- Get/Set_Dependence_List (Field8)
--
-- FIXME: this field can be put in the library_unit, since it is only used
-- when the units have been analyzed.
-- Get/Set_Analysis_Checks_List (Field9)
--
-- This is a symbolic date, only used as a order of analysis of design
-- units.
-- Get/Set_Date (Field10)
--
-- Set the line and the offset in the line, only for the library manager.
-- This is valid until the file is really loaded in memory. On loading,
-- location will contain all this informations.
-- Get/Set_Pos_Line_Off (Field1,Field11,Field12)
--
-- Get/Set the date state, which indicates whether this design unit is in
-- memory or not.
-- Get/Set_Date_State (State1)
--
-- Flag used during elaboration. Set when the file was already seen.
-- Get/Set_Elab_Flag (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Library_Clause (Short)
-- Note: a library_clause node is created for every logical_name.
-- As a consequence, the scope of the library starts after the logical_name
-- and not after the library_clause. However, since an identifier
-- can only be used as a logical_name, and since the second occurence has
-- no effect, this is correct.
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Library_Declaration (Field1)
--
-- Get/Set_Chain (Field2)
--------------
-- Literals --
--------------
-- Iir_Kind_Character_Literal (Short)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Type (Field1)
-- Iir_Kind_String_Literal (Short)
-- Iir_Kind_Bit_String_Literal (Medium)
--
-- Type of the literal. Note: for a (bit_)string_literal, the type must be
-- computed during semantization. Roughly speaking, this is possible since
-- integer type range constraint are locally static.
-- Get/Set_Type (Field1)
--
-- Used for computed literals. Literal_Origin contains the expression whose
-- value was computed during analysis and replaces the expression.
-- Get/Set_Literal_Origin (Field2)
--
-- Get/Set_String_Id (Field3)
--
-- Get/Set_String_Length (Field0)
--
-- For bit string only:
-- Enumeration literal which correspond to '0' and '1'.
-- This cannot be defined only in the enumeration type definition, due to
-- possible aliases.
-- Only for Iir_Kind_Bit_String_Literal:
-- Get/Set_Bit_String_0 (Field4)
-- Only for Iir_Kind_Bit_String_Literal:
-- Get/Set_Bit_String_1 (Field5)
--
-- Only for Iir_Kind_Bit_String_Literal:
-- Get/Set_Bit_String_Base (Field11)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Integer_Literal (Int)
-- Get/Set_Type (Field1)
--
-- Get/Set the value of the integer.
-- Get/Set_Value (Int64)
--
-- Get/Set_Literal_Origin (Field2)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Floating_Point_Literal (Fp)
-- Get/Set_Type (Field1)
--
-- Get/Set the value of the literal.
-- Get/Set_Fp_Value (Fp64)
--
-- Get/Set_Literal_Origin (Field2)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Null_Literal (Short)
-- The null literal, which can be a disconnection or a null access.
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Physical_Int_Literal (Int)
-- Iir_Kind_Physical_Fp_Literal (Fp)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Literal_Origin (Field2)
--
-- Get/Set the physical unit of the literal.
-- Get/Set_Unit_Name (Field3)
--
-- Must be set to locally except for time literal, which is globally.
-- Get/Set_Expr_Staticness (State1)
--
-- Only for Iir_Kind_Physical_Int_Literal:
-- The multiplicand.
-- Get/Set_Value (Int64)
--
-- Only for Iir_Kind_Physical_Fp_Literal:
-- The multiplicand.
-- Get/Set_Fp_Value (Fp64)
-- Iir_Kind_Simple_Aggregate (Short)
-- This node can only be generated by evaluation: it is an unidimentional
-- positional aggregate.
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Literal_Origin (Field2)
--
-- Get/Set_Expr_Staticness (State1)
--
-- List of elements
-- Get/Set_Simple_Aggregate_List (Field3)
------------
-- Tuples --
------------
-- Iir_Kind_Association_Element_By_Expression (Short)
-- Iir_Kind_Association_Element_Open (Short)
-- Iir_Kind_Association_Element_By_Individual (Short)
-- These are used for association element of an association list with
-- an interface (ie subprogram call, port map, generic map).
--
-- Get/Set_Formal (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Only for Iir_Kind_Association_Element_By_Expression:
-- Get/Set_Actual (Field3)
--
-- Only for Iir_Kind_Association_Element_By_Individual:
-- Get/Set_Actual_Type (Field3)
--
-- Only for Iir_Kind_Association_Element_By_Individual:
-- Get/Set_Individual_Association_Chain (Field4)
--
-- Only for Iir_Kind_Association_Element_By_Expression:
-- Get/Set_In_Conversion (Field4)
--
-- Only for Iir_Kind_Association_Element_By_Expression:
-- Get/Set_Out_Conversion (Field5)
--
-- Get/Set the whole association flag (true if the formal is associated in
-- whole, see LRM 4.3.2.2)
-- Get/Set_Whole_Association_Flag (Flag1)
--
-- Get/Set_Collapse_Signal_Flag (Flag2)
--
-- Only for Iir_Kind_Association_Element_Open:
-- Get/Set_Artificial_Flag (Flag3)
-- Iir_Kind_Proxy (Short)
-- A proxy is used to avoid duplication of a node.
-- Ex: instead of copying a default value of an insterface in the subprogram
-- call, a proxy is used. The default value can't be so easily aliased
-- due to annotation.
--
-- Create a proxy for PROXY.
-- function Create_Proxy (Proxy: Iir) return Iir_Proxy;
--
-- Get/Set the value of the proxy.
-- Get/Set_Proxy (Field1)
-- Iir_Kind_Waveform_Element (Short)
--
-- Get/Set_We_Value (Field1)
--
-- Get/Set_Time (Field3)
--
-- Get/Set_Chain (Field2)
-- Iir_Kind_Conditional_Waveform (Short)
--
-- Get/Set_Condition (Field1)
--
-- Get/Set_Waveform_Chain (Field5)
--
-- Get/Set_Chain (Field2)
-- Iir_Kind_Choice_By_Others (Short)
-- Iir_Kind_Choice_By_None (Short)
-- Iir_Kind_Choice_By_Range (Short)
-- Iir_Kind_Choice_By_Name (Short)
-- Iir_Kind_Choice_By_Expression (Short)
-- (Iir_Kinds_Choice)
--
-- Get/Set_Parent (Field0)
--
-- These are elements of an choice chain, which is used for
-- case_statement, concurrent_select_signal_assignment, aggregates.
--
-- Get/Set what is associated with the choice. This can be:
-- * a waveform_chain for a concurrent_select_signal_assignment,
-- * an expression for an aggregate,
-- * a sequential statement list for a case_statement.
-- For a list of choices, only the first one is associated, the following
-- associations have the same_alternative_flag set.
-- Get/Set_Associated (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Only for Iir_Kind_Choice_By_Name:
-- Get/Set the name.
-- Get/Set_Name (Field4)
--
-- Only for Iir_Kind_Choice_By_Expression:
-- Get/Set_Expression (Field5)
--
-- Only for Iir_Kind_Choice_By_Range:
-- Get/Set the range.
-- Get/Set_Expression (Field5)
--
-- Get/Set_Same_Alternative_Flag (Flag1)
--
-- Only for Iir_Kind_Choice_By_Range:
-- Only for Iir_Kind_Choice_By_Expression:
-- Get/Set_Choice_Staticness (State2)
-- Iir_Kind_Entity_Aspect_Entity (Short)
--
-- Parse: a name
-- Sem: a design unit
-- Get/Set_Entity (Field4)
--
-- parse: a simple name.
-- sem: an architecture declaration or NULL_IIR.
-- Get/Set_Architecture (Field2)
-- Iir_Kind_Entity_Aspect_Open (Short)
-- Iir_Kind_Entity_Aspect_Configuration (Short)
--
-- Parse: a name
-- Sem: a design unit
-- Get/Set_Configuration (Field1)
-- Iir_Kind_Block_Configuration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Declaration_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Configuration_Item_Chain (Field3)
--
-- Note: for default block configurations of iterative generate statement,
-- the block specification is a selected_name, whose identifier is others.
-- Get/Set_Block_Specification (Field5)
--
-- Single linked list of block configuration that apply to the same
-- for scheme generate block.
-- Get/Set_Prev_Block_Configuration (Field4)
-- Iir_Kind_Binding_Indication (Medium)
--
-- Get/Set_Default_Entity_Aspect (Field1)
--
-- The entity aspect.
-- It is a iir_kind_entity_aspect_entity, iir_kind_entity_aspect_open or
-- iir_kind_entity_aspect_configuration. This may be transformed into a
-- declaration by semantic.
-- Get/Set_Entity_Aspect (Field3)
--
-- Get/Set_Default_Generic_Map_Aspect_Chain (Field6)
--
-- Get/Set_Default_Port_Map_Aspect_Chain (Field7)
--
-- Get/Set_Generic_Map_Aspect_Chain (Field8)
--
-- Get/Set_Port_Map_Aspect_Chain (Field9)
-- Iir_Kind_Component_Configuration (Short)
-- Iir_Kind_Configuration_Specification (Short)
--
-- The declaration containing this type declaration.
-- Get/Set_Parent (Field0)
--
-- Get/Set_Component_Name (Field4)
--
-- Must be one of designator_list, designator_by_others or
-- designator_by_all.
-- Get/Set_Instantiation_List (Field1)
--
-- Only for Iir_Kind_Component_Configuration:
-- Get/Set_Block_Configuration (Field5)
--
-- Get/Set_Binding_Indication (Field3)
--
-- Get/Set_Chain (Field2)
-- Iir_Kind_Disconnection_Specification (Short)
--
-- The declaration containing this type declaration.
-- Get/Set_Parent (Field0)
--
-- Get/Set_Signal_List (Field4)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Expression (Field5)
--
-- Get/Set_Chain (Field2)
-- Iir_Kind_Block_Header (Medium)
--
-- Get/Set_Generic_Chain (Field6)
--
-- Get/Set_Port_Chain (Field7)
--
-- Get/Set_Generic_Map_Aspect_Chain (Field8)
--
-- Get/Set_Port_Map_Aspect_Chain (Field9)
-- Iir_Kind_Entity_Class (Short)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Entity_Class (Field3)
-- Iir_Kind_Attribute_Specification (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Entity_Name_List (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Entity_Class (Field3)
--
-- Get/Set_Attribute_Value_Spec_Chain (Field4)
--
-- Get/Set_Expression (Field5)
--
-- Get/Set_Attribute_Designator (Field6)
--
-- Get/Set_Attribute_Specification_Chain (Field7)
-- Iir_Kind_Attribute_Value (Short)
-- An attribute value is the element of the chain of attribute of an entity,
-- marking the entity as decorated by the attribute.
-- This node is built only by sem.
-- In fact, the node is member of the chain of attribute of an entity, and
-- of the chain of entity of the attribute specification.
-- This makes elaboration (and more precisely, expression evaluation)
-- easier.
--
-- Get/Set_Spec_Chain (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Designated_Entity (Field3)
--
-- Get/Set_Attribute_Specification (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Selected_Element (Short)
-- A record element selection.
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Prefix (Field3)
--
-- Get/Set_Selected_Element (Field2)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Implicit_Dereference (Short)
-- Iir_Kind_Dereference (Short)
-- An implicit access dereference.
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Prefix (Field3)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Signature (Short)
--
-- Get/Set_Return_Type (Field1)
--
-- Get/Set_Type_Marks_List (Field2)
--
-- Used only for attribute specification.
-- Get/Set_Name (Field4)
-- Iir_Kind_Overload_List (Short)
--
-- Get/Set_Overload_List (Field1)
------------------
-- Declarations --
------------------
-- Iir_Kind_Entity_Declaration (Medium)
--
-- Get/Set_Parent (Field0)
-- Get/Set_Design_Unit (Alias Field0)
--
-- Get_Declaration_Chain (Field1)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Concurrent_Statement_Chain (Field5)
--
-- Get/Set_Generic_Chain (Field6)
--
-- Get/Set_Port_Chain (Field7)
--
-- Get/Set_Is_Within_Flag (Flag5)
-- Iir_Kind_Architecture_Declaration (Medium)
--
-- Get/Set_Parent (Field0)
-- Get/Set_Design_Unit (Alias Field0)
--
-- Get_Declaration_Chain (Field1)
--
-- Get/Set_Identifier (Field3)
--
-- Set the entity of an architecture.
-- Before the semantic pass, it can be a name.
-- Get/Set_Entity (Field4)
--
-- Get/Set_Concurrent_Statement_Chain (Field5)
--
-- The default configuration created by canon. This is a design unit.
-- Get/Set_Default_Configuration_Declaration (Field6)
--
-- Get/Set_Foreign_Flag (Flag3)
--
-- Get/Set_Is_Within_Flag (Flag5)
-- Iir_Kind_Configuration_Declaration (Short)
--
-- Get/Set_Parent (Field0)
-- Get/Set_Design_Unit (Alias Field0)
--
-- Get_Declaration_Chain (Field1)
--
-- Get/Set_Identifier (Field3)
--
-- Set the entity of a configuration (a design_unit)
-- Before the semantic pass, it can be an identifier.
-- Get/Set_Entity (Field4)
--
-- Get/Set_Block_Configuration (Field5)
-- Iir_Kind_Package_Declaration (Short)
--
-- Get/Set_Parent (Field0)
-- Get/Set_Design_Unit (Alias Field0)
--
-- Get_Declaration_Chain (Field1)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Package_Body (Field4)
--
-- Get/Set_Need_Body (Flag1)
-- Iir_Kind_Package_Body (Short)
-- Note: a body is not a declaration, that's the reason why there is no
-- _declaration suffix in the name.
--
-- Get/Set_Parent (Field0)
-- Get/Set_Design_Unit (Alias Field0)
--
-- Get_Declaration_Chain (Field1)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Package (Field4)
-- Iir_Kind_Library_Declaration (Medium)
--
-- Design files in the library.
-- Get/Set_Design_File_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- This node is used to contain all a library. Only internaly used.
-- Name (identifier) of the library.
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Date (Field10)
--
-- Get/Set_Library_Directory (Field11)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Component_Declaration (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Generic_Chain (Field6)
--
-- Get/Set_Port_Chain (Field7)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Object_Alias_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Name (Field4)
--
-- Note: base name is the alias itself.
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_After_Drivers_Flag (Flag5)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Non_Object_Alias_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Name (Field4)
--
-- Get/Set_Signature (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Anonymous_Type_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Used for informative purpose only.
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Subtype_Definition (Field4)
-- Iir_Kind_Type_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Definition of the type.
-- Note: the type definition can be a real type (unconstrained array,
-- enumeration, file, record, access) or a subtype (integer, floating
-- point).
-- The parser set this field to null_iir for an incomplete type declaration.
-- This field is set to an incomplete_type_definition node when first
-- semantized.
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Subtype_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Signal_Interface_Declaration (Medium)
-- Iir_Kind_Constant_Interface_Declaration (Medium)
-- Iir_Kind_Variable_Interface_Declaration (Medium)
-- Iir_Kind_File_Interface_Declaration (Medium)
--
-- Note: If type is an iir_kind_proxy node, then type *and* default value
-- (if any) must be extracted from proxy.
--
-- Get/Set the parent of an interface declaration.
-- The parent is an entity declaration, a subprogram specification, a
-- component declaration, a loop statement, a block declaration or ??
-- Useful to distinguish a port and an interface.
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Must always be null_iir for iir_kind_file_interface_declaration.
-- Get/Set_Default_Value (Field6)
--
-- Only for Iir_Kind_Signal_Interface_Declaration:
-- Get/Set_Extra_Info (Field8)
--
-- Get/Set_Mode (Odigit1)
--
-- Get/Set_Lexical_Layout (Odigit2)
--
-- Only for Iir_Kind_Signal_Interface_Declaration:
-- Get/Set_Has_Disconnect_Flag (Flag1)
--
-- Only for Iir_Kind_Signal_Interface_Declaration:
-- Get/Set_Has_Active_Flag (Flag2)
--
-- Only for Iir_Kind_Signal_Interface_Declaration:
-- Get/Set_Open_Flag (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_After_Drivers_Flag (Flag5)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
--
-- Only for Iir_Kind_Signal_Interface_Declaration:
-- Get/Set_Signal_Kind (State3)
-- Iir_Kind_Function_Declaration (Medium)
-- Iir_Kind_Procedure_Declaration (Medium)
--
-- Subprogram declaration.
--
-- The declaration containing this subrogram declaration.
-- Get/Set_Parent (Field0)
--
-- Only for Iir_Kind_Function_Declaration:
-- Get/Set_Return_Type (Field1)
--
-- Only for Iir_Kind_Function_Declaration:
-- Get/Set_Type (Alias Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get_Interface_Declaration_Chain (Field5)
--
-- Get/Set_Subprogram_Body (Field6)
--
-- Get/Set_Callees_List (Field7)
--
-- Get/Set_Extra_Info (Field8)
--
-- Get/Set_Overload_Number (Field9)
--
-- Get/Set_Subprogram_Depth (Field10)
--
-- Get/Set_Subprogram_Hash (Field11)
--
-- Get/Set_Seen_Flag (Flag1)
--
-- Only for Iir_Kind_Function_Declaration:
-- Get/Set_Pure_Flag (Flag2)
--
-- Only for Iir_Kind_Procedure_Declaration:
-- Get/Set_Passive_Flag (Flag2)
--
-- Get/Set_Foreign_Flag (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Within_Flag (Flag5)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Only for Iir_Kind_Function_Declaration:
-- Get/Set_Resolution_Function_Flag (Flag7)
--
-- Get/Set_Wait_State (State1)
--
-- Only for Iir_Kind_Procedure_Declaration:
-- Get/Set_Purity_State (State2)
--
-- Get/Set_All_Sensitized_State (State3)
-- Iir_Kind_Function_Body (Short)
-- Iir_Kind_Procedure_Body (Short)
--
-- Get/Set_Parent (Field0)
--
-- The parse stage always puts a declaration before a body.
-- Sem will remove the declaration if there is a forward declaration.
--
-- Get_Declaration_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Impure_Depth (Field3)
--
-- Get/Set_Subprogram_Specification (Field4)
--
-- Get/Set_Sequential_Statement_Chain (Field5)
-- Iir_Kind_Implicit_Procedure_Declaration (Medium)
-- Iir_Kind_Implicit_Function_Declaration (Medium)
--
-- This node contains a subprogram_declaration that was implicitly defined
-- just after a type declaration.
-- This declaration is inserted by sem.
--
-- Get/Set_Parent (Field0)
--
-- Only for Iir_Kind_Implicit_Function_Declaration:
-- Get/Set_Return_Type (Field1)
--
-- Only for Iir_Kind_Implicit_Function_Declaration:
-- Get/Set_Type (Alias Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get_Interface_Declaration_Chain (Field5)
--
-- Get/Set_Implicit_Definition (Field6)
--
-- Get/Set_Callees_List (Field7)
--
-- Get/Set_Extra_Info (Field8)
--
-- Get/Set_Overload_Number (Field9)
--
-- Get/Set_Type_Reference (Field10)
--
-- Get/Set_Subprogram_Hash (Field11)
--
-- Get/Set_Wait_State (State1)
--
-- Get/Set_Seen_Flag (Flag1)
--
-- Only for Iir_Kind_Implicit_Function_Declaration:
-- Get/Set_Pure_Flag (Flag2)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Within_Flag (Flag5)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Signal_Declaration (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Default_Value (Field6)
--
-- For a non-resolved signal: null_iir if the signal has no driver, or
-- a process/concurrent_statement for which the signal should have a
-- driver. This is used to catch at analyse time unresolved signals with
-- several drivers.
-- Get/Set_Signal_Driver (Field7)
--
-- Get/Set_Extra_Info (Field8)
--
-- Get/Set_Has_Disconnect_Flag (Flag1)
--
-- Get/Set_Has_Active_Flag (Flag2)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_After_Drivers_Flag (Flag5)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
--
-- Get/Set_Signal_Kind (State3)
-- Iir_Kind_Guard_Signal_Declaration (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Guard_Expression (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Guard_Sensitivity_List (Field6)
--
-- Get/Set_Block_Statement (Field7)
--
-- Get/Set_Has_Active_Flag (Flag2)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
--
-- Get/Set_Signal_Kind (State3)
-- Iir_Kind_Constant_Declaration (Medium)
-- Iir_Kind_Iterator_Declaration (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Only for Iir_Kind_Constant_Declaration:
-- Default value of a deferred constant points to the full constant
-- declaration.
-- Get/Set_Default_Value (Field6)
--
-- Only for Iir_Kind_Constant_Declaration:
-- Summary:
-- | constant C1 : integer; -- Deferred declaration (in a package)
-- | constant C2 : integer := 4; -- Declaration
-- | constant C1 : integer := 3; -- Full declaration (in a body)
-- | NAME Deferred_declaration Deferred_declaration_flag
-- | C1 Null_iir or C1' (*) True
-- | C2 Null_Iir False
-- | C1' C1 False
-- |(*): Deferred_declaration is Null_Iir as long as the full declaration
-- | has not been analyzed.
-- Get/Set_Deferred_Declaration (Field7)
--
-- Only for Iir_Kind_Constant_Declaration:
-- Get/Set_Deferred_Declaration_Flag (Flag1)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Variable_Declaration (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Default_Value (Field6)
--
-- True if the variable is a shared variable.
-- Get/Set_Shared_Flag (Flag2)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_File_Declaration (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_File_Logical_Name (Field6)
--
-- This is not used in vhdl 87.
-- Get/Set_File_Open_Kind (Field7)
--
-- This is used only in vhdl 87.
-- Get/Set_Mode (Odigit1)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Element_Declaration (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Return the position of the element in the record, starting from 0 for the
-- first record element, increasing by one for each successive element.
-- Get/Set_Element_Position (Field4)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Attribute_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Group_Template_Declaration (Short)
--
-- Get/Set_Parent (Field0)
--
-- List of entity class entry.
-- To handle `<>', the last element of the list can be an entity_class of
-- kind tok_box.
-- Get/Set_Entity_Class_Entry_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Group_Declaration (Short)
--
-- The declaration containing this type declaration.
-- Get/Set_Parent (Field0)
--
-- List of constituent.
-- Get/Set_Group_Constituent_List (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Group_Template_Name (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Use_Flag (Flag6)
-- Iir_Kind_Use_Clause (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Selected_Name (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Use_Clause_Chain (Field3)
----------------------
-- type definitions --
----------------------
-- For Iir_Kinds_Type_And_Subtype_Definition:
--
-- Type_Declarator:
-- Points to the type declaration or subtype declaration that has created
-- this definition. For some types, such as integer and floating point
-- types, both type and subtype points to the declaration.
-- However, there are cases where a type definition doesn't point to
-- a declarator: anonymous subtype created by index contraints, or
-- anonymous subtype created by an object declaration.
-- Note: a type definition cannot be anoynymous.
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set the base type.
-- For a subtype, it returns the type.
-- For a type, it must return the type itself.
-- Get/Set_Base_Type (Field4)
--
-- Get/Set the staticness of a type, according to LRM93 7.4.1.
-- Note: These types definition are always locally static:
-- enumeration, integer, floating.
-- However, their subtype are not necessary locally static.
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set the resolved flag of a subtype, according to LRM93 2.4
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set the signal_type flag of a type definition.
-- It is true when the type can be used for a signal.
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
-- Iir_Kind_Enumeration_Type_Definition (Short)
--
-- Get the range of the type (This is just an ascending range from the
-- first literal to the last declared literal).
-- Get/Set_Range_Constraint (Field1)
--
-- Return the list of literals. This list is created when the node is
-- created.
-- Get/Set_Enumeration_Literal_List (Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
--
-- Get/Set_Type_Staticness (State1)
-- Iir_Kind_Enumeration_Literal (Medium)
--
-- Nota: two literals of the same type are equal iff their value is the
-- same; in other words, there may be severals literals with the same value.
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Type (Field1)
-- Get/Set_Return_Type (Alias Field1)
--
-- Get/Set_Literal_Origin (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- The declaration of the literal. If LITERAL_ORIGIN is not set, then this
-- is the node itself, else this is the literal defined.
-- Get/Set_Enumeration_Decl (Field6)
--
-- The value of an enumeration literal is the position.
-- Get/Set_Enum_Pos (Field10)
--
-- Get/Set_Subprogram_Hash (Field11)
--
-- Get/Set_Seen_Flag (Flag1)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Physical_Type_Definition (Short)
--
-- Get/Set_Unit_Chain (Field1)
-- Get_Primary_Unit (Alias Field1)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
--
-- Get/Set_Type_Staticness (State1)
-- Iir_Kind_Unit_Declaration (Medium)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Physical_Literal (Field6)
--
-- Get/Set_Physical_Unit_Value (Field7)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Integer_Type_Definition (Short)
-- Iir_Kind_Floating_Type_Definition (Short)
--
-- Get/Set the declarator that has created this integer type.
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Type staticness is always locally.
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
-- Iir_Kind_Array_Type_Definition (Medium)
-- This defines an unconstrained array type.
--
-- Get/Set_Element_Subtype (Field1)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Index_Subtype_List (Field6)
--
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
-- Iir_Kind_Record_Type_Definition (Short)
--
-- Get/Set_Number_Element_Declaration (Field1)
--
-- Get/Set_Element_Declaration_Chain (Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
-- Iir_Kind_Access_Type_Definition (Short)
--
-- Get/Set_Designated_Type (Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- FIXME: Only for access_subtype.
-- FIXME: Get/Set_Resolution_Function (Field5)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Type_Staticness (State1)
-- Iir_Kind_File_Type_Definition (Short)
--
-- Get/Set_Type_Mark (Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- True if this is the std.textio.text file type, which may require special
-- handling.
-- Get/Set_Text_File_Flag (Flag4)
--
-- Get/Set_Type_Staticness (State1)
-- Iir_Kind_Incomplete_Type_Definition (Short)
-- Type definition for an incomplete type. This is created during the
-- semantisation of the incomplete type declaration.
--
-- Get/Set_Incomplete_Type_List (Field2)
--
-- Set to the incomplete type declaration when semantized, and set to the
-- complete type declaration when the latter one is semantized.
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
-- Iir_Kind_Protected_Type_Declaration (Short)
--
-- Get/Set_Declaration_Chain (Field1)
--
-- Get/Set_Protected_Type_Body (Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
-- Iir_Kind_Protected_Type_Body (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Declaration_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Protected_Type_Declaration (Field4)
-------------------------
-- subtype definitions --
-------------------------
-- Iir_Kind_Enumeration_Subtype_Definition (Short)
-- Iir_Kind_Integer_Subtype_Definition (Short)
-- Iir_Kind_Floating_Subtype_Definition (Short)
-- Iir_Kind_Physical_Subtype_Definition (Short)
--
-- Get/Set_Range_Constraint (Field1)
--
-- Get/Set_Type_Mark (Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Resolution_Function (Field5)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
--
-- Get/Set_Type_Staticness (State1)
-- Iir_Kind_Access_Subtype_Definition (Short)
--
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Type_Mark (Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Note: no resolution function for access subtype.
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
-- Iir_Kind_Record_Subtype_Definition (Short)
--
-- Get/Set_Type_Mark (Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Resolution_Function (Field5)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
--
-- Get/Set_Type_Staticness (State1)
-- Iir_Kind_Array_Subtype_Definition (Medium)
-- Iir_Kind_Unconstrained_Array_Subtype_Definition (Medium)
--
-- Iir_Kind_Array_Subtype_definition defines a constrained array
-- subtype, which *must* be a subtype of an iir_array_type_definition.
--
-- Iir_Kind_Unconstrained_Array_Subtype_Definition defines a
-- unconstrained array subtype, which *must* be a subtype of an
-- iir_array_type_definition. The only way to create such a
-- subtype is via a subtype declaration, without adding
-- constraints.
--
-- Get/Set_Element_Subtype (Field1)
--
-- Get/Set_Type_Mark (Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Resolution_Function (Field5)
--
-- Get/Set_Index_Subtype_List (Field6)
--
-- Get/Set_Type_Staticness (State1)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
-- Iir_Kind_Range_Expression (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Left_Limit (Field2)
--
-- Get/Set_Right_Limit (Field3)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Direction (State2)
-- Iir_Kind_Subtype_Definition (Short)
-- Such a node is only created by parse and transformed into the correct
-- kind (enumeration_subtype, integer_subtype...) by sem.
--
-- Get/Set_Range_Constraint (Field1)
--
-- Get/Set_Type_Mark (Field2)
--
-- Get/Set_Resolution_Function (Field5)
---------------------------
-- concurrent statements --
---------------------------
-- Iir_Kind_Concurrent_Conditional_Signal_Assignment (Medium)
-- Iir_Kind_Concurrent_Selected_Signal_Assignment (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Target (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Only for Iir_Kind_Concurrent_Selected_Signal_Assignment:
-- Get/Set_Expression (Field5)
--
-- Get/Set_Reject_Time_Expression (Field6)
--
-- Only for Iir_Kind_Concurrent_Conditional_Signal_Assignment:
-- Get/Set_Conditional_Waveform_Chain (Field7)
--
-- Only for Iir_Kind_Concurrent_Selected_Signal_Assignment:
-- Get/Set_Selected_Waveform_Chain (Field7)
--
-- If the assignment is guarded, then get_guard must return the
-- declaration of the signal guard, otherwise, null_iir.
-- If the guard signal decl is not known, as a kludge and only to mark this
-- assignment guarded, the guard can be this assignment.
-- Get/Set_Guard (Field8)
--
-- Get/Set_Delay_Mechanism (Field12)
--
-- Get/Set_Postponed_Flag (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- True if the target of the assignment is guarded
-- Get_Guarded_Target_State (State3)
-- Iir_Kind_Sensitized_Process_Statement (Medium)
-- Iir_Kind_Process_Statement (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get_Declaration_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Sequential_Statement_Chain (Field5)
--
-- Only for Iir_Kind_Sensitized_Process_Statement:
-- Get_Sensitivity_List (Field6)
--
-- Get/Set_Callees_List (Field7)
--
-- Get/Set_Extra_Info (Field8)
--
-- Get/Set_Wait_State (State1)
--
-- Get/Set_Seen_Flag (Flag1)
--
-- Get/Set_Passive_Flag (Flag2)
--
-- Get/Set_Postponed_Flag (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Within_Flag (Flag5)
-- Iir_Kind_Concurrent_Assertion_Statement (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Assertion_Condition (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Severity_Expression (Field5)
--
-- Get/Set_Report_Expression (Field6)
--
-- Get/Set_Postponed_Flag (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Component_Instantiation_Statement (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Unit instantiated.
-- Parse: a name, a entity_aspect_entity or a entity_aspect_configuration
-- Sem: the component declaration or the design unit.
-- Get/Set_Instantiated_Unit (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Default_Binding_Indication (Field5)
--
-- Get/Set_Generic_Map_Aspect_Chain (Field8)
--
-- Get/Set_Port_Map_Aspect_Chain (Field9)
--
-- Configuration:
-- In case of a configuration specification, the node is put into
-- default configuration. In the absence of a specification, the
-- default entity aspect, if any; if none, this field is null_iir.
-- Get/Set_Configuration_Specification (Field7)
--
-- During Sem and elaboration, the configuration field can be filled by
-- a component configuration declaration.
--
-- Configuration for this component.
-- FIXME: must be get/set_binding_indication.
-- Get/Set_Component_Configuration (Field6)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Block_Statement (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get_Declaration_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Concurrent_Statement_Chain (Field5)
--
-- Get/Set_Block_Block_Configuration (Field6)
--
-- Get/Set_Block_Header (Field7)
--
-- get/set_guard_decl is used for semantic analysis, in order to add
-- a signal declaration.
-- Get/Set_Guard_Decl (Field8)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Within_Flag (Flag5)
-- Iir_Kind_Generate_Statement (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get_Declaration_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Concurrent_Statement_Chain (Field5)
--
-- The generation scheme.
-- A (boolean) expression for a conditionnal elaboration (if).
-- A (iterator) declaration for an iterative elaboration (for).
-- Get/Set_Generation_Scheme (Field6)
--
-- The block configuration for this statement.
-- Get/Set_Generate_Block_Configuration (Field7)
--
-- Get/Set_Visible_Flag (Flag4)
---------------------------
-- sequential statements --
---------------------------
-- Iir_Kind_If_Statement (Medium)
-- Iir_Kind_Elsif (Medium)
--
-- Get/Set_Parent (Field0)
--
-- May be NULL only for an iir_kind_elsif node, and then means the else
-- clause.
-- Get/Set_Condition (Field1)
--
-- Only for Iir_Kind_If_Statement:
-- Get/Set_Chain (Field2)
--
-- Only for Iir_Kind_If_Statement:
-- Get/Set_Label (Field3)
--
-- Only for Iir_Kind_If_Statement:
-- Get/Set_Identifier (Alias Field3)
--
-- Only for Iir_Kind_If_Statement:
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Sequential_Statement_Chain (Field5)
--
-- Must be an Iir_kind_elsif node, or NULL for no more elsif clauses.
-- Get/Set_Else_Clause (Field6)
--
-- Only for Iir_Kind_If_Statement:
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_For_Loop_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Iterator_Scheme (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Sequential_Statement_Chain (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_Is_Within_Flag (Flag5)
-- Iir_Kind_While_Loop_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Condition (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Sequential_Statement_Chain (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Exit_Statement (Short)
-- Iir_Kind_Next_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Condition (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Label identifier after parse.
-- Get/Set_Loop (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Signal_Assignment_Statement (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Target (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- The waveform.
-- If the waveform_chain is null_iir, then the signal assignment is a
-- disconnection statement, ie TARGET <= null_iir after disconection_time,
-- where disconnection_time is specified by a disconnection specification.
-- Get/Set_Waveform_Chain (Field5)
--
-- Get/Set_Reject_Time_Expression (Field6)
--
-- Get/Set_Delay_Mechanism (Field12)
--
-- Get/Set_Visible_Flag (Flag4)
--
-- True if the target of the assignment is guarded
-- Get_Guarded_Target_State (State3)
-- Iir_Kind_Variable_Assignment_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Target (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Expression (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Assertion_Statement (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Assertion_Condition (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Severity_Expression (Field5)
--
-- Get/Set_Report_Expression (Field6)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Report_Statement (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Severity_Expression (Field5)
--
-- Get/Set_Report_Expression (Field6)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Wait_Statement (Medium)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Timeout_Clause (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Condition_Clause (Field5)
--
-- Get/Set_Sensitivity_List (Field6)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Return_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Type of the return value of the function. This is a copy of return_type.
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Expression (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Case_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Chain is compose of Iir_Kind_Choice_By_XXX.
-- Get/Set_Case_Statement_Alternative_Chain (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Expression (Field5)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Procedure_Call_Statement (Short)
-- Iir_Kind_Concurrent_Procedure_Call_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Procedure_Call (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Only for Iir_Kind_Concurrent_Procedure_Call_Statement:
-- Get/Set_Postponed_Flag (Flag3)
--
-- Get/Set_Visible_Flag (Flag4)
-- Iir_Kind_Procedure_Call (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Parameter_Association_Chain (Field2)
--
-- Get/Set_Implementation (Field3)
--
-- Get/Set_Method_Object (Field4)
-- Iir_Kind_Null_Statement (Short)
--
-- Get/Set_Parent (Field0)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Label (Field3)
-- Get/Set_Identifier (Alias Field3)
--
-- Get/Set_Attribute_Value_Chain (Field4)
--
-- Get/Set_Visible_Flag (Flag4)
---------------
-- operators --
---------------
-- Iir_Kinds_Monadic_Operator (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Operand (Field2)
--
-- Function declaration corresponding to the function to call.
-- Get/Set_Implementation (Field3)
--
-- Expr_staticness is defined by §7.4
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kinds_Dyadic_Operator (Short)
--
-- Get/Set_Type (Field1)
--
-- Left and Right operands.
-- Get/Set_Left (Field2)
--
-- Function declaration corresponding to the function to call.
-- Get/Set_Implementation (Field3)
--
-- Get/Set_Right (Field4)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Function_Call (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Parameter_Association_Chain (Field2)
--
-- Function declaration corresponding to the function to call.
-- Get/Set_Implementation (Field3)
--
-- Get/Set_Method_Object (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Aggregate (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Aggregate_Info (Field2)
--
-- Get/Set_Association_Choices_Chain (Field4)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Value_Staticness (State2)
-- Iir_Kind_Aggregate_Info (Short)
--
-- Get info for the next dimension. NULL_IIR terminated.
-- Get/Set_Sub_Aggregate_Info (Field1)
--
-- For array aggregate only:
-- If TRUE, the aggregate bounds are not locally static.
-- This flag is only valid when the array aggregate is constrained, ie
-- has no 'others' choice.
-- Get/Set_Aggr_Dynamic_Flag (Flag3)
--
-- If TRUE, the aggregate is named, else it is positionnal.
-- Get/Set_Aggr_Named_Flag (Flag4)
--
-- The following three fields are used to check bounds of an array
-- aggregate.
-- For named aggregate, low and high bounds are computed, for positionnal
-- aggregate, the (minimum) number of elements is computed.
-- Note there may be elements beyond the bounds, due to other choice.
-- These fields may apply for the aggregate or for the aggregate and its
-- brothers if the node is for a sub-aggregate.
--
-- The low and high index choice, if any.
-- Get/Set_Aggr_Low_Limit (Field2)
--
-- Get/Set_Aggr_High_Limit (Field3)
--
-- The maximum number of elements, if any.
-- Get/Set_Aggr_Max_Length (Field4)
--
-- True if the choice list has an 'others' choice.
-- Get/Set_Aggr_Others_Flag (Flag2)
-- Iir_Kind_Qualified_Expression (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Type_Mark (Field2)
--
-- Get/Set_Expression (Field5)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Type_Conversion (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Type_Mark (Field2)
--
-- Get/Set_Expression (Field5)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Allocator_By_Expression (Short)
-- Iir_Kind_Allocator_By_Subtype (Short)
--
-- Get/Set_Type (Field1)
--
-- Contains the expression for a by expression allocator or the
-- subtype indication for a by subtype allocator.
-- Get/Set_Expression (Field5)
--
-- Get/Set_Expr_Staticness (State1)
-----------
-- names --
-----------
-- Iir_Kind_Simple_Name (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Named_Entity (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Selected_Name (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Suffix_Identifier (Field2)
--
-- Get/Set_Prefix (Field3)
--
-- Get/Set_Named_Entity (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Selected_By_All_Name (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Prefix (Field3)
--
-- Get/Set_Named_Entity (Field4)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Operator_Symbol (Short)
--
-- Get/Set_Identifier (Field3)
--
-- Get/Set_Named_Entity (Field4)
--
-- Get/Set_Base_Name (Field5)
-- Iir_Kind_Indexed_Name (Short)
-- Select the element designed with the INDEX_LIST from array PREFIX.
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Index_List (Field2)
--
-- Get/Set_Prefix (Field3)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Slice_Name (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Prefix (Field3)
--
-- Get/Set_Suffix (Field2)
--
-- Get/Set_Base_Name (Field5)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Parenthesis_Name (Short)
-- Created by the parser, and mutated into the correct iir node: it can be
-- either a function call, an indexed array, a type conversion or a slice
-- name.
--
-- Always returns null_iir.
-- Get/Set_Type (Field1)
--
-- Get/Set_Prefix (Field3)
--
-- Get/Set_Named_Entity (Field4)
--
-- Get/Set_Association_Chain (Field2)
----------------
-- attributes --
----------------
-- Iir_Kind_Attribute_Name (Short)
--
-- Get/Set_Attribute_Identifier (Field2)
--
-- Get/Set_Prefix (Field3)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Named_Entity (Field4)
--
-- Get/Set_Signature (Field5)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Base_Attribute (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Prefix (Field3)
-- Iir_Kind_Left_Type_Attribute (Short)
-- Iir_Kind_Right_Type_Attribute (Short)
-- Iir_Kind_High_Type_Attribute (Short)
-- Iir_Kind_Low_Type_Attribute (Short)
-- Iir_Kind_Ascending_Type_Attribute (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Prefix (Field3)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Range_Array_Attribute (Short)
-- Iir_Kind_Reverse_Range_Array_Attribute (Short)
-- Iir_Kind_Left_Array_Attribute (Short)
-- Iir_Kind_Right_Array_Attribute (Short)
-- Iir_Kind_High_Array_Attribute (Short)
-- Iir_Kind_Low_Array_Attribute (Short)
-- Iir_Kind_Ascending_Array_Attribute (Short)
-- Iir_Kind_Length_Array_Attribute (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Index_Subtype (Field2)
--
-- Get/Set_Prefix (Field3)
--
-- Get/Set_Parameter (Field4)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Stable_Attribute (Short)
-- Iir_Kind_Delayed_Attribute (Short)
-- Iir_Kind_Quiet_Attribute (Short)
-- Iir_Kind_Transaction_Attribute (Short)
-- (Iir_Kinds_Signal_Attribute)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Chain (Field2)
--
-- Get/Set_Prefix (Field3)
--
-- Not used by Iir_Kind_Transaction_Attribute
-- Get/Set_Parameter (Field4)
--
-- Get/Set_Has_Active_Flag (Flag2)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
--
-- Get/Set_Base_Name (Field5)
-- Iir_Kind_Event_Attribute (Short)
-- Iir_Kind_Last_Event_Attribute (Short)
-- Iir_Kind_Last_Value_Attribute (Short)
-- Iir_Kind_Active_Attribute (Short)
-- Iir_Kind_Last_Active_Attribute (Short)
-- Iir_Kind_Driving_Attribute (Short)
-- Iir_Kind_Driving_Value_Attribute (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Prefix (Field3)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Name_Staticness (State2)
-- Iir_Kind_Pos_Attribute (Short)
-- Iir_Kind_Val_Attribute (Short)
-- Iir_Kind_Succ_Attribute (Short)
-- Iir_Kind_Pred_Attribute (Short)
-- Iir_Kind_Leftof_Attribute (Short)
-- Iir_Kind_Rightof_Attribute (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Prefix (Field3)
--
-- Get/Set_Parameter (Field4)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Image_Attribute (Short)
-- Iir_Kind_Value_Attribute (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Prefix (Field3)
--
-- Get/Set_Parameter (Field4)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Simple_Name_Attribute (Short)
-- Iir_Kind_Instance_Name_Attribute (Short)
-- Iir_Kind_Path_Name_Attribute (Short)
--
-- Get/Set_Type (Field1)
--
-- Get/Set_Prefix (Field3)
--
-- Only for Iir_Kind_Simple_Name_Attribute:
-- Get/Set_Simple_Name_Identifier (Field2)
--
-- Get/Set_Expr_Staticness (State1)
-- Iir_Kind_Behavior_Attribute (Short)
-- Iir_Kind_Structure_Attribute (Short)
-- FIXME: to describe (Short)
-- Iir_Kind_Error (Short)
-- Can be used instead of an expression or a type.
-- Get/Set_Type (Field1)
--
-- Get/Set_Error_Origin (Field2)
--
-- Get/Set_Type_Declarator (Field3)
--
-- Get/Set_Base_Type (Field4)
--
-- Get/Set_Expr_Staticness (State1)
--
-- Get/Set_Type_Staticness (Alias State1)
--
-- Get/Set_Resolved_Flag (Flag1)
--
-- Get/Set_Signal_Type_Flag (Flag2)
--
-- Get/Set_Has_Signal_Flag (Flag3)
-- End of Iir_Kind.
type Iir_Kind is
(
-- Erroneous IIR.
Iir_Kind_Error,
Iir_Kind_Design_File,
Iir_Kind_Design_Unit,
Iir_Kind_Library_Clause,
Iir_Kind_Use_Clause,
-- Literals.
Iir_Kind_Character_Literal,
Iir_Kind_Integer_Literal,
Iir_Kind_Floating_Point_Literal,
Iir_Kind_Null_Literal,
Iir_Kind_String_Literal,
Iir_Kind_Physical_Int_Literal,
Iir_Kind_Physical_Fp_Literal,
Iir_Kind_Bit_String_Literal,
Iir_Kind_Simple_Aggregate,
-- Tuple,
Iir_Kind_Proxy,
Iir_Kind_Waveform_Element,
Iir_Kind_Conditional_Waveform,
Iir_Kind_Association_Element_By_Expression,
Iir_Kind_Association_Element_By_Individual,
Iir_Kind_Association_Element_Open,
Iir_Kind_Choice_By_Others,
Iir_Kind_Choice_By_Expression,
Iir_Kind_Choice_By_Range,
Iir_Kind_Choice_By_None,
Iir_Kind_Choice_By_Name,
Iir_Kind_Entity_Aspect_Entity,
Iir_Kind_Entity_Aspect_Configuration,
Iir_Kind_Entity_Aspect_Open,
Iir_Kind_Block_Configuration,
Iir_Kind_Block_Header,
Iir_Kind_Component_Configuration,
Iir_Kind_Binding_Indication,
Iir_Kind_Entity_Class,
Iir_Kind_Attribute_Value,
Iir_Kind_Signature,
Iir_Kind_Aggregate_Info,
Iir_Kind_Procedure_Call,
Iir_Kind_Operator_Symbol,
Iir_Kind_Attribute_Specification,
Iir_Kind_Disconnection_Specification,
Iir_Kind_Configuration_Specification,
-- Type definitions.
-- iir_kinds_type_and_subtype_definition
-- kinds: disc: discrete, st: subtype.
Iir_Kind_Access_Type_Definition,
Iir_Kind_Incomplete_Type_Definition,
Iir_Kind_File_Type_Definition,
Iir_Kind_Protected_Type_Declaration,
Iir_Kind_Record_Type_Definition, -- composite
Iir_Kind_Array_Type_Definition, -- composite, array
Iir_Kind_Unconstrained_Array_Subtype_Definition, -- composite, array, st
Iir_Kind_Array_Subtype_Definition, -- composite, array, st
Iir_Kind_Record_Subtype_Definition, -- composite, st
Iir_Kind_Access_Subtype_Definition, -- st
Iir_Kind_Physical_Subtype_Definition, -- scalar, st
Iir_Kind_Floating_Subtype_Definition, -- scalar, st
Iir_Kind_Integer_Subtype_Definition, -- scalar, disc, st
Iir_Kind_Enumeration_Subtype_Definition, -- scalar, disc, st
Iir_Kind_Enumeration_Type_Definition, -- scalar, disc
Iir_Kind_Integer_Type_Definition, -- scalar, disc
Iir_Kind_Floating_Type_Definition, -- scalar
Iir_Kind_Physical_Type_Definition, -- scalar
Iir_Kind_Range_Expression,
Iir_Kind_Protected_Type_Body,
Iir_Kind_Subtype_Definition, -- temporary (must not appear after sem).
-- Lists.
Iir_Kind_Overload_List, -- used internally by sem_expr.
-- Declarations.
Iir_Kind_Type_Declaration,
Iir_Kind_Anonymous_Type_Declaration,
Iir_Kind_Subtype_Declaration,
Iir_Kind_Configuration_Declaration,
Iir_Kind_Entity_Declaration,
Iir_Kind_Package_Declaration,
Iir_Kind_Package_Body,
Iir_Kind_Architecture_Declaration,
Iir_Kind_Unit_Declaration,
Iir_Kind_Library_Declaration,
Iir_Kind_Component_Declaration,
Iir_Kind_Attribute_Declaration,
Iir_Kind_Group_Template_Declaration,
Iir_Kind_Group_Declaration,
Iir_Kind_Element_Declaration,
Iir_Kind_Non_Object_Alias_Declaration,
Iir_Kind_Function_Body,
Iir_Kind_Function_Declaration,
Iir_Kind_Implicit_Function_Declaration,
Iir_Kind_Implicit_Procedure_Declaration,
Iir_Kind_Procedure_Declaration,
Iir_Kind_Procedure_Body,
Iir_Kind_Enumeration_Literal,
Iir_Kind_Object_Alias_Declaration, -- object
Iir_Kind_File_Declaration, -- object
Iir_Kind_Guard_Signal_Declaration, -- object
Iir_Kind_Signal_Declaration, -- object
Iir_Kind_Variable_Declaration, -- object
Iir_Kind_Constant_Declaration, -- object
Iir_Kind_Iterator_Declaration, -- object
Iir_Kind_Constant_Interface_Declaration, -- object, interface
Iir_Kind_Variable_Interface_Declaration, -- object, interface
Iir_Kind_Signal_Interface_Declaration, -- object, interface
Iir_Kind_File_Interface_Declaration, -- object, interface
-- Expressions.
Iir_Kind_Identity_Operator,
Iir_Kind_Negation_Operator,
Iir_Kind_Absolute_Operator,
Iir_Kind_Not_Operator,
Iir_Kind_And_Operator,
Iir_Kind_Or_Operator,
Iir_Kind_Nand_Operator,
Iir_Kind_Nor_Operator,
Iir_Kind_Xor_Operator,
Iir_Kind_Xnor_Operator,
Iir_Kind_Equality_Operator,
Iir_Kind_Inequality_Operator,
Iir_Kind_Less_Than_Operator,
Iir_Kind_Less_Than_Or_Equal_Operator,
Iir_Kind_Greater_Than_Operator,
Iir_Kind_Greater_Than_Or_Equal_Operator,
Iir_Kind_Sll_Operator,
Iir_Kind_Sla_Operator,
Iir_Kind_Srl_Operator,
Iir_Kind_Sra_Operator,
Iir_Kind_Rol_Operator,
Iir_Kind_Ror_Operator,
Iir_Kind_Addition_Operator,
Iir_Kind_Substraction_Operator,
Iir_Kind_Concatenation_Operator,
Iir_Kind_Multiplication_Operator,
Iir_Kind_Division_Operator,
Iir_Kind_Modulus_Operator,
Iir_Kind_Remainder_Operator,
Iir_Kind_Exponentiation_Operator,
Iir_Kind_Function_Call,
Iir_Kind_Aggregate,
Iir_Kind_Qualified_Expression,
Iir_Kind_Type_Conversion,
Iir_Kind_Allocator_By_Expression,
Iir_Kind_Allocator_By_Subtype,
Iir_Kind_Selected_Element,
Iir_Kind_Dereference,
Iir_Kind_Implicit_Dereference,
-- Concurrent statements.
Iir_Kind_Sensitized_Process_Statement,
Iir_Kind_Process_Statement,
Iir_Kind_Concurrent_Conditional_Signal_Assignment,
Iir_Kind_Concurrent_Selected_Signal_Assignment,
Iir_Kind_Concurrent_Assertion_Statement,
Iir_Kind_Concurrent_Procedure_Call_Statement,
Iir_Kind_Block_Statement,
Iir_Kind_Generate_Statement,
Iir_Kind_Component_Instantiation_Statement,
-- Iir_Kind_Sequential_Statement
Iir_Kind_Signal_Assignment_Statement,
Iir_Kind_Null_Statement,
Iir_Kind_Assertion_Statement,
Iir_Kind_Report_Statement,
Iir_Kind_Wait_Statement,
Iir_Kind_Variable_Assignment_Statement,
Iir_Kind_Return_Statement,
Iir_Kind_For_Loop_Statement,
Iir_Kind_While_Loop_Statement,
Iir_Kind_Next_Statement,
Iir_Kind_Exit_Statement,
Iir_Kind_Case_Statement,
Iir_Kind_Procedure_Call_Statement,
Iir_Kind_If_Statement,
Iir_Kind_Elsif,
-- Names
Iir_Kind_Simple_Name,
Iir_Kind_Slice_Name,
Iir_Kind_Indexed_Name,
Iir_Kind_Selected_Name,
Iir_Kind_Selected_By_All_Name,
Iir_Kind_Parenthesis_Name,
-- Attributes
Iir_Kind_Base_Attribute,
Iir_Kind_Left_Type_Attribute, -- type_attribute
Iir_Kind_Right_Type_Attribute, -- type_attribute
Iir_Kind_High_Type_Attribute, -- type_attribute
Iir_Kind_Low_Type_Attribute, -- type_attribute
Iir_Kind_Ascending_Type_Attribute, -- type_attribute
Iir_Kind_Image_Attribute,
Iir_Kind_Value_Attribute,
Iir_Kind_Pos_Attribute, -- scalar_type_attribute
Iir_Kind_Val_Attribute, -- scalar_type_attribute
Iir_Kind_Succ_Attribute, -- scalar_type_attribute
Iir_Kind_Pred_Attribute, -- scalar_type_attribute
Iir_Kind_Leftof_Attribute, -- scalar_type_attribute
Iir_Kind_Rightof_Attribute, -- scalar_type_attribute
Iir_Kind_Delayed_Attribute, -- signal_attribute
Iir_Kind_Stable_Attribute, -- signal_attribute
Iir_Kind_Quiet_Attribute, -- signal_attribute
Iir_Kind_Transaction_Attribute, -- signal_attribute
Iir_Kind_Event_Attribute, -- signal_value_attribute
Iir_Kind_Active_Attribute, -- signal_value_attribute
Iir_Kind_Last_Event_Attribute, -- signal_value_attribute
Iir_Kind_Last_Active_Attribute, -- signal_value_attribute
Iir_Kind_Last_Value_Attribute, -- signal_value_attribute
Iir_Kind_Driving_Attribute, -- signal_value_attribute
Iir_Kind_Driving_Value_Attribute, -- signal_value_attribute
Iir_Kind_Behavior_Attribute,
Iir_Kind_Structure_Attribute,
Iir_Kind_Simple_Name_Attribute,
Iir_Kind_Instance_Name_Attribute,
Iir_Kind_Path_Name_Attribute,
Iir_Kind_Left_Array_Attribute, -- array_attribute
Iir_Kind_Right_Array_Attribute, -- array_attribute
Iir_Kind_High_Array_Attribute, -- array_attribute
Iir_Kind_Low_Array_Attribute, -- array_attribute
Iir_Kind_Length_Array_Attribute, -- array_attribute
Iir_Kind_Ascending_Array_Attribute, -- array_attribute
Iir_Kind_Range_Array_Attribute, -- array_attribute
Iir_Kind_Reverse_Range_Array_Attribute, -- array_attribute
Iir_Kind_Attribute_Name
);
type Iir_Signal_Kind is
(
Iir_No_Signal_Kind,
Iir_Register_Kind,
Iir_Bus_Kind
);
-- If the order of elements in IIR_MODE is modified, also modify the
-- order in GRT (types and rtis).
type Iir_Mode is
(
Iir_Unknown_Mode,
Iir_Linkage_Mode,
Iir_Buffer_Mode,
Iir_Out_Mode,
Iir_Inout_Mode,
Iir_In_Mode
);
subtype Iir_In_Modes is Iir_Mode range Iir_Inout_Mode .. Iir_In_Mode;
subtype Iir_Out_Modes is Iir_Mode range Iir_Out_Mode .. Iir_Inout_Mode;
type Iir_Delay_Mechanism is (Iir_Inertial_Delay, Iir_Transport_Delay);
type Iir_Direction is (Iir_To, Iir_Downto);
-- Iir_Lexical_Layout_type describe the lexical token used to describe
-- an interface declaration. This has no semantics meaning, but it is
-- necessary to keep how lexically an interface was declared due to
-- LRM93 2.7 (conformance rules).
-- To keep this simple, the layout is stored as a bit-string.
-- Fields are:
-- Has_type: set if the interface is the last of a list.
-- has_mode: set if mode is explicit
-- has_class: set if class (constant, signal, variable or file) is explicit
--
-- Exemple:
-- procedure P (A,B: integer;
-- C: in constant bit;
-- D: inout bit;
-- E: variable bit;
-- F, G: in bit;
-- H, I: constant bit;
-- J, K: in constant bit);
-- A:
-- B: has_type
-- C, K: has_mode, has_class, has_type
-- D: has_mode, has_type
-- E, I: has_class, has_type
-- F: has_mode
-- G: has_mode, has_type
-- H: has_class
-- J: has_mode, has_class
type Iir_Lexical_Layout_Type is mod 2 ** 3;
Iir_Lexical_Has_Mode : constant Iir_Lexical_Layout_Type := 2 ** 0;
Iir_Lexical_Has_Class : constant Iir_Lexical_Layout_Type := 2 ** 1;
Iir_Lexical_Has_Type : constant Iir_Lexical_Layout_Type := 2 ** 2;
-- List of predefined operators and functions.
type Iir_Predefined_Functions is
(
Iir_Predefined_Error,
-- Predefined operators for BOOLEAN type.
Iir_Predefined_Boolean_And,
Iir_Predefined_Boolean_Or,
Iir_Predefined_Boolean_Nand,
Iir_Predefined_Boolean_Nor,
Iir_Predefined_Boolean_Xor,
Iir_Predefined_Boolean_Xnor,
Iir_Predefined_Boolean_Not,
-- Predefined operators for any enumeration type.
Iir_Predefined_Enum_Equality,
Iir_Predefined_Enum_Inequality,
Iir_Predefined_Enum_Less,
Iir_Predefined_Enum_Less_Equal,
Iir_Predefined_Enum_Greater,
Iir_Predefined_Enum_Greater_Equal,
-- Predefined operators for BIT type.
Iir_Predefined_Bit_And,
Iir_Predefined_Bit_Or,
Iir_Predefined_Bit_Nand,
Iir_Predefined_Bit_Nor,
Iir_Predefined_Bit_Xor,
Iir_Predefined_Bit_Xnor,
Iir_Predefined_Bit_Not,
-- Predefined operators for any integer type.
Iir_Predefined_Integer_Equality,
Iir_Predefined_Integer_Inequality,
Iir_Predefined_Integer_Less,
Iir_Predefined_Integer_Less_Equal,
Iir_Predefined_Integer_Greater,
Iir_Predefined_Integer_Greater_Equal,
Iir_Predefined_Integer_Identity,
Iir_Predefined_Integer_Negation,
Iir_Predefined_Integer_Absolute,
Iir_Predefined_Integer_Plus,
Iir_Predefined_Integer_Minus,
Iir_Predefined_Integer_Mul,
Iir_Predefined_Integer_Div,
Iir_Predefined_Integer_Mod,
Iir_Predefined_Integer_Rem,
Iir_Predefined_Integer_Exp,
-- Predefined operators for any floating type.
Iir_Predefined_Floating_Equality,
Iir_Predefined_Floating_Inequality,
Iir_Predefined_Floating_Less,
Iir_Predefined_Floating_Less_Equal,
Iir_Predefined_Floating_Greater,
Iir_Predefined_Floating_Greater_Equal,
Iir_Predefined_Floating_Identity,
Iir_Predefined_Floating_Negation,
Iir_Predefined_Floating_Absolute,
Iir_Predefined_Floating_Plus,
Iir_Predefined_Floating_Minus,
Iir_Predefined_Floating_Mul,
Iir_Predefined_Floating_Div,
Iir_Predefined_Floating_Exp,
-- Predefined operator for universal types.
Iir_Predefined_Universal_R_I_Mul,
Iir_Predefined_Universal_I_R_Mul,
Iir_Predefined_Universal_R_I_Div,
-- Predefined operators for physical types.
Iir_Predefined_Physical_Equality,
Iir_Predefined_Physical_Inequality,
Iir_Predefined_Physical_Less,
Iir_Predefined_Physical_Less_Equal,
Iir_Predefined_Physical_Greater,
Iir_Predefined_Physical_Greater_Equal,
Iir_Predefined_Physical_Identity,
Iir_Predefined_Physical_Negation,
Iir_Predefined_Physical_Absolute,
Iir_Predefined_Physical_Plus,
Iir_Predefined_Physical_Minus,
Iir_Predefined_Physical_Integer_Mul,
Iir_Predefined_Physical_Real_Mul,
Iir_Predefined_Integer_Physical_Mul,
Iir_Predefined_Real_Physical_Mul,
Iir_Predefined_Physical_Integer_Div,
Iir_Predefined_Physical_Real_Div,
Iir_Predefined_Physical_Physical_Div,
-- Predefined operators for access.
Iir_Predefined_Access_Equality,
Iir_Predefined_Access_Inequality,
-- Predefined operators for record.
Iir_Predefined_Record_Equality,
Iir_Predefined_Record_Inequality,
-- Predefined operators for array.
Iir_Predefined_Array_Equality,
Iir_Predefined_Array_Inequality,
Iir_Predefined_Array_Less,
Iir_Predefined_Array_Less_Equal,
Iir_Predefined_Array_Greater,
Iir_Predefined_Array_Greater_Equal,
Iir_Predefined_Array_Array_Concat,
Iir_Predefined_Array_Element_Concat,
Iir_Predefined_Element_Array_Concat,
Iir_Predefined_Element_Element_Concat,
-- Predefined shift operators.
Iir_Predefined_Array_Sll,
Iir_Predefined_Array_Srl,
Iir_Predefined_Array_Sla,
Iir_Predefined_Array_Sra,
Iir_Predefined_Array_Rol,
Iir_Predefined_Array_Ror,
-- Predefined operators for one dimensional array
Iir_Predefined_Bit_Array_And,
Iir_Predefined_Bit_Array_Or,
Iir_Predefined_Bit_Array_Nand,
Iir_Predefined_Bit_Array_Nor,
Iir_Predefined_Bit_Array_Xor,
Iir_Predefined_Bit_Array_Xnor,
Iir_Predefined_Bit_Array_Not,
Iir_Predefined_Boolean_Array_And,
Iir_Predefined_Boolean_Array_Or,
Iir_Predefined_Boolean_Array_Nand,
Iir_Predefined_Boolean_Array_Nor,
Iir_Predefined_Boolean_Array_Xor,
Iir_Predefined_Boolean_Array_Xnor,
Iir_Predefined_Boolean_Array_Not,
-- Predefined attribute functions.
Iir_Predefined_Attribute_Image,
Iir_Predefined_Attribute_Value,
Iir_Predefined_Attribute_Pos,
Iir_Predefined_Attribute_Val,
Iir_Predefined_Attribute_Succ,
Iir_Predefined_Attribute_Pred,
Iir_Predefined_Attribute_Leftof,
Iir_Predefined_Attribute_Rightof,
Iir_Predefined_Attribute_Left,
Iir_Predefined_Attribute_Right,
Iir_Predefined_Attribute_Event,
Iir_Predefined_Attribute_Active,
Iir_Predefined_Attribute_Last_Event,
Iir_Predefined_Attribute_Last_Active,
Iir_Predefined_Attribute_Last_Value,
Iir_Predefined_Attribute_Driving,
Iir_Predefined_Attribute_Driving_Value,
-- Access procedure
Iir_Predefined_Deallocate,
-- file function / procedures.
Iir_Predefined_File_Open,
Iir_Predefined_File_Open_Status,
Iir_Predefined_File_Close,
Iir_Predefined_Read,
Iir_Predefined_Read_Length,
Iir_Predefined_Write,
Iir_Predefined_Endfile,
-- Predefined function.
Iir_Predefined_Now_Function
);
-- Return TRUE iff FUNC is a short-cut predefined function.
function Iir_Predefined_Shortcut_P (Func : Iir_Predefined_Functions)
return Boolean;
subtype Iir_Predefined_Pure_Functions is Iir_Predefined_Functions range
Iir_Predefined_Boolean_And .. Iir_Predefined_Attribute_Driving_Value;
subtype Iir_Predefined_Dyadic_Bit_Array_Functions
is Iir_Predefined_Functions range
Iir_Predefined_Bit_Array_And ..
--Iir_Predefined_Bit_Array_Or
--Iir_Predefined_Bit_Array_Nand
--Iir_Predefined_Bit_Array_Nor
--Iir_Predefined_Bit_Array_Xor
Iir_Predefined_Bit_Array_Xnor;
subtype Iir_Predefined_Shift_Functions is Iir_Predefined_Functions range
Iir_Predefined_Array_Sll ..
--Iir_Predefined_Array_Srl
--Iir_Predefined_Array_Sla
--Iir_Predefined_Array_Sra
--Iir_Predefined_Array_Rol
Iir_Predefined_Array_Ror;
subtype Iir_Predefined_Concat_Functions is Iir_Predefined_Functions range
Iir_Predefined_Array_Array_Concat ..
--Iir_Predefined_Array_Element_Concat
--Iir_Predefined_Element_Array_Concat
Iir_Predefined_Element_Element_Concat;
-- Staticness as defined by LRM93 §6.1 and §7.4
type Iir_Staticness is (Unknown, None, Globally, Locally);
-- Staticness as defined by LRM93 §6.1 and §7.4
function Min (L,R: Iir_Staticness) return Iir_Staticness renames
Iir_Staticness'Min;
-- Purity state of a procedure.
-- PURE means the procedure is pure.
-- IMPURE means the procedure is impure: it references a file object or
-- a signal or a variable declared outside a subprogram, or it calls an
-- impure subprogram.
-- MAYBE_IMPURE means the procedure references a signal or a variable
-- declared in a subprogram. The relative position of a parent has to
-- be considered. The list of callees must not be checked.
-- UNKNOWN is like MAYBE_IMPURE, but the subprogram has a list of callees
-- whose purity is not yet known. As a consequence, a direct or
-- indirect call to such a procedure cannot be proved to be allowed
-- in a pure function.
-- Note: UNKNOWN is the default state. At any impure call, the state is
-- set to IMPURE. Only at the end of body analysis and only if the
-- callee list is empty, the state can be set either to MAYBE_IMPURE or
-- PURE.
type Iir_Pure_State is (Unknown, Pure, Maybe_Impure, Impure);
-- State of subprograms for validity of use in all-sensitized process.
-- INVALID_SIGNAL means that the subprogram is in a package and
-- reads a signal or that the subprogram calls (indirectly) such
-- a subprogram. In this case, the subprogram cannot be called from
-- an all-sensitized process.
-- READ_SIGNAL means that the subprogram reads a signal and is defined
-- in an entity or an architecture or that the subprogram calls
-- (indirectly) such a subprogram. In this case, the subprogram can
-- be called from an all-sensitized process and the reference will be
-- part of the sensitivity list.
-- NO_SIGNAL means that the subprogram doesn't read any signal and don't
-- call such a subprogram. The subprogram can be called from an
-- all-sensitized process but there is no need to track this call.
-- UNKNOWN means that the state is not yet defined.
type Iir_All_Sensitized is
(Unknown, No_Signal, Read_Signal, Invalid_Signal);
---------------
-- subranges --
---------------
-- These subtypes are used for ranges, for `case' statments or for the `in'
-- operator.
-- In order to be correctly parsed by check_iir, the declaration must
-- follow these rules:
-- * the first line must be "subtype Iir_Kinds_NAME is Iir_Kind_range"
-- * the second line must be the lowest bound of the range, followed by "..
-- * comments line
-- * the last line must be the highest bound of the range, followed by ";"
-- subtype Iir_Kinds_List is Iir_Kind range
-- Iir_Kind_List ..
-- Iir_Kind_Callees_List;
subtype Iir_Kinds_Library_Unit_Declaration is Iir_Kind range
Iir_Kind_Configuration_Declaration ..
--Iir_Kind_Entity_Declaration
--Iir_Kind_Package_Declaration
--Iir_Kind_Package_Body
Iir_Kind_Architecture_Declaration;
-- Note: does not include iir_kind_enumeration_literal since it is
-- considered as a declaration.
subtype Iir_Kinds_Literal is Iir_Kind range
Iir_Kind_Character_Literal ..
--Iir_Kind_Integer_Literal
--Iir_Kind_Floating_Point_Literal
--Iir_Kind_Null_Literal
--Iir_Kind_String_Literal
--Iir_Kind_Physical_Int_Literal
--Iir_Kind_Physical_Fp_Literal
Iir_Kind_Bit_String_Literal;
subtype Iir_Kinds_Array_Type_Definition is Iir_Kind range
Iir_Kind_Array_Type_Definition ..
--Iir_Kind_Unconstrained_Array_Subtype_Definition
Iir_Kind_Array_Subtype_Definition;
subtype Iir_Kinds_Type_And_Subtype_Definition is Iir_Kind range
Iir_Kind_Access_Type_Definition ..
--Iir_Kind_Incomplete_Type_Definition
--Iir_Kind_File_Type_Definition
--Iir_Kind_Protected_Type_Declaration
--Iir_Kind_Record_Type_Definition
--Iir_Kind_Array_Type_Definition
--Iir_Kind_Unconstrained_Array_Subtype_Definition
--Iir_Kind_Array_Subtype_Definition
--Iir_Kind_Record_Subtype_Definition
--Iir_Kind_Access_Subtype_Definition
--Iir_Kind_Physical_Subtype_Definition
--Iir_Kind_Floating_Subtype_Definition
--Iir_Kind_Integer_Subtype_Definition
--Iir_Kind_Enumeration_Subtype_Definition
--Iir_Kind_Enumeration_Type_Definition
--Iir_Kind_Integer_Type_Definition
--Iir_Kind_Floating_Type_Definition
Iir_Kind_Physical_Type_Definition;
subtype Iir_Kinds_Subtype_Definition is Iir_Kind range
Iir_Kind_Unconstrained_Array_Subtype_Definition ..
--Iir_Kind_Array_Subtype_Definition
--Iir_Kind_Record_Subtype_Definition
--Iir_Kind_Access_Subtype_Definition
--Iir_Kind_Physical_Subtype_Definition
--Iir_Kind_Floating_Subtype_Definition
--Iir_Kind_Integer_Subtype_Definition
Iir_Kind_Enumeration_Subtype_Definition;
subtype Iir_Kinds_Scalar_Type_Definition is Iir_Kind range
Iir_Kind_Physical_Subtype_Definition ..
--Iir_Kind_Floating_Subtype_Definition
--Iir_Kind_Integer_Subtype_Definition
--Iir_Kind_Enumeration_Subtype_Definition
--Iir_Kind_Enumeration_Type_Definition
--Iir_Kind_Integer_Type_Definition
--Iir_Kind_Floating_Type_Definition
Iir_Kind_Physical_Type_Definition;
subtype Iir_Kinds_Discrete_Type_Definition is Iir_Kind range
Iir_Kind_Integer_Subtype_Definition ..
--Iir_Kind_Enumeration_Subtype_Definition
--Iir_Kind_Enumeration_Type_Definition
Iir_Kind_Integer_Type_Definition;
-- subtype Iir_Kinds_Discrete_Subtype_Definition is Iir_Kind range
-- Iir_Kind_Integer_Subtype_Definition ..
-- Iir_Kind_Enumeration_Subtype_Definition;
subtype Iir_Kinds_Composite_Type_Definition is Iir_Kind range
Iir_Kind_Record_Type_Definition ..
--Iir_Kind_Array_Type_Definition
--Iir_Kind_Unconstrained_Array_Subtype_Definition
--Iir_Kind_Array_Subtype_Definition
Iir_Kind_Record_Subtype_Definition;
subtype Iir_Kinds_Unconstrained_Array_Type_Definition is Iir_Kind range
Iir_Kind_Array_Type_Definition ..
Iir_Kind_Unconstrained_Array_Subtype_Definition;
subtype Iir_Kinds_Array_Subtype_Definition is Iir_Kind range
Iir_Kind_Unconstrained_Array_Subtype_Definition ..
Iir_Kind_Array_Subtype_Definition;
subtype Iir_Kinds_Type_Declaration is Iir_Kind range
Iir_Kind_Type_Declaration ..
--Iir_Kind_Anonymous_Type_Declaration
Iir_Kind_Subtype_Declaration;
subtype Iir_Kinds_Nonoverloadable_Declaration is Iir_Kind range
Iir_Kind_Type_Declaration ..
Iir_Kind_Element_Declaration;
subtype Iir_Kinds_Monadic_Operator is Iir_Kind range
Iir_Kind_Identity_Operator ..
--Iir_Kind_Negation_Operator
--Iir_Kind_Absolute_Operator
Iir_Kind_Not_Operator;
subtype Iir_Kinds_Dyadic_Operator is Iir_Kind range
Iir_Kind_And_Operator ..
--Iir_Kind_Or_Operator
--Iir_Kind_Nand_Operator
--Iir_Kind_Nor_Operator
--Iir_Kind_Xor_Operator
--Iir_Kind_Xnor_Operator
--Iir_Kind_Equality_Operator
--Iir_Kind_Inequality_Operator
--Iir_Kind_Less_Than_Operator
--Iir_Kind_Less_Than_Or_Equal_Operator
--Iir_Kind_Greater_Than_Operator
--Iir_Kind_Greater_Than_Or_Equal_Operator
--Iir_Kind_Sll_Operator
--Iir_Kind_Sla_Operator
--Iir_Kind_Srl_Operator
--Iir_Kind_Sra_Operator
--Iir_Kind_Rol_Operator
--Iir_Kind_Ror_Operator
--Iir_Kind_Addition_Operator
--Iir_Kind_Substraction_Operator
--Iir_Kind_Concatenation_Operator
--Iir_Kind_Multiplication_Operator
--Iir_Kind_Division_Operator
--Iir_Kind_Modulus_Operator
--Iir_Kind_Remainder_Operator
Iir_Kind_Exponentiation_Operator;
subtype Iir_Kinds_Function_Declaration is Iir_Kind range
Iir_Kind_Function_Declaration ..
Iir_Kind_Implicit_Function_Declaration;
subtype Iir_Kinds_Procedure_Declaration is Iir_Kind range
Iir_Kind_Implicit_Procedure_Declaration ..
Iir_Kind_Procedure_Declaration;
subtype Iir_Kinds_Subprogram_Declaration is Iir_Kind range
Iir_Kind_Function_Declaration ..
--Iir_Kind_Implicit_Function_Declaration
--Iir_Kind_Implicit_Procedure_Declaration
Iir_Kind_Procedure_Declaration;
subtype Iir_Kinds_Process_Statement is Iir_Kind range
Iir_Kind_Sensitized_Process_Statement ..
Iir_Kind_Process_Statement;
subtype Iir_Kinds_Interface_Declaration is Iir_Kind range
Iir_Kind_Constant_Interface_Declaration ..
--Iir_Kind_Variable_Interface_Declaration
--Iir_Kind_Signal_Interface_Declaration
Iir_Kind_File_Interface_Declaration;
subtype Iir_Kinds_Object_Declaration is Iir_Kind range
Iir_Kind_Object_Alias_Declaration ..
--Iir_Kind_File_Declaration
--Iir_Kind_Guard_Signal_Declaration
--Iir_Kind_Signal_Declaration
--Iir_Kind_Variable_Declaration
--Iir_Kind_Constant_Declaration
--Iir_Kind_Iterator_Declaration
--Iir_Kind_Constant_Interface_Declaration
--Iir_Kind_Variable_Interface_Declaration
--Iir_Kind_Signal_Interface_Declaration
Iir_Kind_File_Interface_Declaration;
subtype Iir_Kinds_Non_Alias_Object_Declaration is Iir_Kind range
Iir_Kind_File_Declaration ..
--Iir_Kind_Guard_Signal_Declaration
--Iir_Kind_Signal_Declaration
--Iir_Kind_Variable_Declaration
--Iir_Kind_Constant_Declaration
--Iir_Kind_Iterator_Declaration
--Iir_Kind_Constant_Interface_Declaration
--Iir_Kind_Variable_Interface_Declaration
--Iir_Kind_Signal_Interface_Declaration
Iir_Kind_File_Interface_Declaration;
subtype Iir_Kinds_Association_Element is Iir_Kind range
Iir_Kind_Association_Element_By_Expression ..
--Iir_Kind_Association_Element_By_Individual
Iir_Kind_Association_Element_Open;
subtype Iir_Kinds_Choice is Iir_Kind range
Iir_Kind_Choice_By_Others ..
--Iir_Kind_Choice_By_Expression
--Iir_Kind_Choice_By_Range
--Iir_Kind_Choice_By_None
Iir_Kind_Choice_By_Name;
subtype Iir_Kinds_Name is Iir_Kind range
Iir_Kind_Simple_Name ..
--Iir_Kind_Slice_Name
--Iir_Kind_Indexed_Name
--Iir_Kind_Selected_Name
--Iir_Kind_Selected_By_All_Name
Iir_Kind_Parenthesis_Name;
subtype Iir_Kinds_Dereference is Iir_Kind range
Iir_Kind_Dereference ..
Iir_Kind_Implicit_Dereference;
-- Any attribute that is an expression.
subtype Iir_Kinds_Expression_Attribute is Iir_Kind range
Iir_Kind_Left_Type_Attribute ..
--Iir_Kind_Right_Type_Attribute
--Iir_Kind_High_Type_Attribute
--Iir_Kind_Low_Type_Attribute
--Iir_Kind_Ascending_Type_Attribute
--Iir_Kind_Image_Attribute
--Iir_Kind_Value_Attribute
--Iir_Kind_Pos_Attribute
--Iir_Kind_Val_Attribute
--Iir_Kind_Succ_Attribute
--Iir_Kind_Pred_Attribute
--Iir_Kind_Leftof_Attribute
--Iir_Kind_Rightof_Attribute
--Iir_Kind_Delayed_Attribute
--Iir_Kind_Stable_Attribute
--Iir_Kind_Quiet_Attribute
--Iir_Kind_Transaction_Attribute
--Iir_Kind_Event_Attribute
--Iir_Kind_Active_Attribute
--Iir_Kind_Last_Event_Attribute
--Iir_Kind_Last_Active_Attribute
--Iir_Kind_Last_Value_Attribute
--Iir_Kind_Driving_Attribute
--Iir_Kind_Driving_Value_Attribute
--Iir_Kind_Behavior_Attribute
--Iir_Kind_Structure_Attribute
--Iir_Kind_Simple_Name_Attribute
--Iir_Kind_Instance_Name_Attribute
--Iir_Kind_Path_Name_Attribute
--Iir_Kind_Left_Array_Attribute
--Iir_Kind_Right_Array_Attribute
--Iir_Kind_High_Array_Attribute
--Iir_Kind_Low_Array_Attribute
--Iir_Kind_Length_Array_Attribute
Iir_Kind_Ascending_Array_Attribute;
subtype Iir_Kinds_Attribute is Iir_Kind range
Iir_Kind_Base_Attribute ..
Iir_Kind_Path_Name_Attribute;
subtype Iir_Kinds_Type_Attribute is Iir_Kind range
Iir_Kind_Left_Type_Attribute ..
--Iir_Kind_Right_Type_Attribute
--Iir_Kind_High_Type_Attribute
--Iir_Kind_Low_Type_Attribute
Iir_Kind_Ascending_Type_Attribute;
subtype Iir_Kinds_Scalar_Type_Attribute is Iir_Kind range
Iir_Kind_Pos_Attribute ..
--Iir_Kind_Val_Attribute
--Iir_Kind_Succ_Attribute
--Iir_Kind_Pred_Attribute
--Iir_Kind_Leftof_Attribute
Iir_Kind_Rightof_Attribute;
subtype Iir_Kinds_Array_Attribute is Iir_Kind range
Iir_Kind_Left_Array_Attribute ..
--Iir_Kind_Right_Array_Attribute
--Iir_Kind_High_Array_Attribute
--Iir_Kind_Low_Array_Attribute
--Iir_Kind_Length_Array_Attribute
--Iir_Kind_Ascending_Array_Attribute
--Iir_Kind_Range_Array_Attribute
Iir_Kind_Reverse_Range_Array_Attribute;
subtype Iir_Kinds_Signal_Attribute is Iir_Kind range
Iir_Kind_Delayed_Attribute ..
--Iir_Kind_Stable_Attribute
--Iir_Kind_Quiet_Attribute
Iir_Kind_Transaction_Attribute;
subtype Iir_Kinds_Signal_Value_Attribute is Iir_Kind range
Iir_Kind_Event_Attribute ..
--Iir_Kind_Active_Attribute
--Iir_Kind_Last_Event_Attribute
--Iir_Kind_Last_Active_Attribute
--Iir_Kind_Last_Value_Attribute
--Iir_Kind_Driving_Attribute
Iir_Kind_Driving_Value_Attribute;
subtype Iir_Kinds_Name_Attribute is Iir_Kind range
Iir_Kind_Simple_Name_Attribute ..
--Iir_Kind_Instance_Name_Attribute
Iir_Kind_Path_Name_Attribute;
subtype Iir_Kinds_Concurrent_Statement is Iir_Kind range
Iir_Kind_Sensitized_Process_Statement ..
--Iir_Kind_Process_Statement
--Iir_Kind_Concurrent_Conditional_Signal_Assignment
--Iir_Kind_Concurrent_Selected_Signal_Assignment
--Iir_Kind_Concurrent_Assertion_Statement
--Iir_Kind_Concurrent_Procedure_Call_Statement
--Iir_Kind_Block_Statement
--Iir_Kind_Generate_Statement
Iir_Kind_Component_Instantiation_Statement;
subtype Iir_Kinds_Concurrent_Signal_Assignment is Iir_Kind range
Iir_Kind_Concurrent_Conditional_Signal_Assignment ..
Iir_Kind_Concurrent_Selected_Signal_Assignment;
subtype Iir_Kinds_Sequential_Statement is Iir_Kind range
Iir_Kind_Signal_Assignment_Statement ..
--Iir_Kind_Null_Statement
--Iir_Kind_Assertion_Statement
--Iir_Kind_Report_Statement
--Iir_Kind_Wait_Statement
--Iir_Kind_Variable_Assignment_Statement
--Iir_Kind_Return_Statement
--Iir_Kind_For_Loop_Statement
--Iir_Kind_While_Loop_Statement
--Iir_Kind_Next_Statement
--Iir_Kind_Exit_Statement
--Iir_Kind_Case_Statement
--Iir_Kind_Procedure_Call_Statement
Iir_Kind_If_Statement;
subtype Iir_Kinds_Allocator is Iir_Kind range
Iir_Kind_Allocator_By_Expression ..
Iir_Kind_Allocator_By_Subtype;
subtype Iir_Kinds_Clause is Iir_Kind range
Iir_Kind_Library_Clause ..
Iir_Kind_Use_Clause;
subtype Iir_Kinds_Specification is Iir_Kind range
Iir_Kind_Attribute_Specification ..
--Iir_Kind_Disconnection_Specification
Iir_Kind_Configuration_Specification;
subtype Iir_Kinds_Declaration is Iir_Kind range
Iir_Kind_Type_Declaration ..
--Iir_Kind_Anonymous_Type_Declaration
--Iir_Kind_Subtype_Declaration
--Iir_Kind_Configuration_Declaration
--Iir_Kind_Entity_Declaration
--Iir_Kind_Package_Declaration
--Iir_Kind_Package_Body
--Iir_Kind_Architecture_Declaration
--Iir_Kind_Unit_Declaration
--Iir_Kind_Library_Declaration
--Iir_Kind_Component_Declaration
--Iir_Kind_Attribute_Declaration
--Iir_Kind_Group_Template_Declaration
--Iir_Kind_Group_Declaration
--Iir_Kind_Element_Declaration
--Iir_Kind_Non_Object_Alias_Declaration
--Iir_Kind_Function_Body
--Iir_Kind_Function_Declaration
--Iir_Kind_Implicit_Function_Declaration
--Iir_Kind_Implicit_Procedure_Declaration
--Iir_Kind_Procedure_Declaration
--Iir_Kind_Procedure_Body
--Iir_Kind_Enumeration_Literal
--Iir_Kind_Object_Alias_Declaration
--Iir_Kind_File_Declaration
--Iir_Kind_Guard_Signal_Declaration
--Iir_Kind_Signal_Declaration
--Iir_Kind_Variable_Declaration
--Iir_Kind_Constant_Declaration
--Iir_Kind_Iterator_Declaration
--Iir_Kind_Constant_Interface_Declaration
--Iir_Kind_Variable_Interface_Declaration
--Iir_Kind_Signal_Interface_Declaration
Iir_Kind_File_Interface_Declaration;
-------------------------------------
-- Types and subtypes declarations --
-------------------------------------
-- Level 1 base class.
subtype Iir is Nodes.Node_Type;
subtype Iir_List is Lists.List_Type;
Null_Iir_List : constant Iir_List := Lists.Null_List;
Iir_List_All : constant Iir_List := Lists.List_All;
Iir_List_Others : constant Iir_List := Lists.List_Others;
subtype Iir_Lists_All_Others is Iir_List
range Iir_List_Others .. Iir_List_All;
Null_Iir : constant Iir := Nodes.Null_Node;
function Is_Null (Node : Iir) return Boolean;
pragma Inline (Is_Null);
function Is_Null_List (Node : Iir_List) return Boolean;
pragma Inline (Is_Null_List);
function "=" (L, R : Iir) return Boolean renames Nodes."=";
function Get_Last_Node return Iir renames Nodes.Get_Last_Node;
function Create_Iir_List return Iir_List
renames Lists.Create_List;
function Get_Nth_Element (L : Iir_List; N : Natural) return Iir
renames Lists.Get_Nth_Element;
procedure Replace_Nth_Element (L : Iir_List; N : Natural; El : Iir)
renames Lists.Replace_Nth_Element;
procedure Append_Element (L : Iir_List; E : Iir)
renames Lists.Append_Element;
procedure Add_Element (L : Iir_List; E : Iir)
renames Lists.Add_Element;
procedure Destroy_Iir_List (L : in out Iir_List)
renames Lists.Destroy_List;
function Get_Nbr_Elements (L : Iir_List) return Natural
renames Lists.Get_Nbr_Elements;
procedure Set_Nbr_Elements (L : Iir_List; Nbr : Natural)
renames Lists.Set_Nbr_Elements;
function Get_First_Element (L : Iir_List) return Iir
renames Lists.Get_First_Element;
function Get_Last_Element (L : Iir_List) return Iir
renames Lists.Get_Last_Element;
function "=" (L, R : Iir_List) return Boolean renames Lists."=";
-- This is used only for lists.
type Iir_Array is array (Natural range <>) of Iir;
type Iir_Array_Acc is access Iir_Array;
procedure Free is new Ada.Unchecked_Deallocation
(Object => Iir_Array, Name => Iir_Array_Acc);
-- Date State.
-- This indicates the origin of the data information.
-- This also indicates the state of the unit (loaded or not).
type Date_State_Type is
(
-- The unit is not yet in the library.
Date_Extern,
-- The unit is not loaded (still on the disk).
-- All the informations come from the library file.
Date_Disk,
-- The unit has been parsed, but not analyzed.
-- Only the date information come from the library.
Date_Parse,
-- The unit has been analyzed.
Date_Analyze
);
-- A date is used for analysis order. All design units from a library
-- are ordered according to the date.
type Date_Type is new Nat32;
-- The unit is obseleted (ie replaced) by a more recently analyzed design
-- unit.another design unit.
-- If another design unit depends (directly or not) on an obseleted design
-- unit, it is also obselete, and cannot be defined.
Date_Obsolete : constant Date_Type := 0;
-- The unit was not analyzed.
Date_Not_Analyzed : constant Date_Type := 1;
-- The unit has been analyzed but it has bad dependences.
Date_Bad_Analyze : constant Date_Type := 2;
-- The unit has been parsed but not analyzed.
Date_Parsed : constant Date_Type := 4;
-- The unit is being analyzed.
Date_Analyzing : constant Date_Type := 5;
-- This unit has just been analyzed and should be marked at the last
-- analyzed unit.
Date_Analyzed : constant Date_Type := 6;
-- Used only for default configuration.
-- Such units are always up-to-date.
Date_Uptodate : constant Date_Type := 7;
subtype Date_Valid is Date_Type range 10 .. Date_Type'Last;
-- Predefined depth values.
-- Depth of a subprogram not declared in another subprogram.
Iir_Depth_Top : constant Iir_Int32 := 0;
-- Purity depth of a pure subprogram.
Iir_Depth_Pure : constant Iir_Int32 := Iir_Int32'Last;
-- Purity depth of an impure subprogram.
Iir_Depth_Impure : constant Iir_Int32 := -1;
type Base_Type is (Base_2, Base_8, Base_16);
-- design file
subtype Iir_Design_File is Iir;
subtype Iir_Design_Unit is Iir;
subtype Iir_Library_Clause is Iir;
-- Literals.
--subtype Iir_Text_Literal is Iir;
subtype Iir_Character_Literal is Iir;
subtype Iir_Integer_Literal is Iir;
subtype Iir_Floating_Point_Literal is Iir;
subtype Iir_String_Literal is Iir;
subtype Iir_Bit_String_Literal is Iir;
subtype Iir_Null_Literal is Iir;
subtype Iir_Physical_Int_Literal is Iir;
subtype Iir_Physical_Fp_Literal is Iir;
subtype Iir_Enumeration_Literal is Iir;
subtype Iir_Simple_Aggregate is Iir;
subtype Iir_Enumeration_Type_Definition is Iir;
subtype Iir_Enumeration_Subtype_Definition is Iir;
subtype Iir_Range_Expression is Iir;
subtype Iir_Integer_Subtype_Definition is Iir;
subtype Iir_Integer_Type_Definition is Iir;
subtype Iir_Floating_Subtype_Definition is Iir;
subtype Iir_Floating_Type_Definition is Iir;
subtype Iir_Array_Type_Definition is Iir;
subtype Iir_Record_Type_Definition is Iir;
subtype Iir_Protected_Type_Declaration is Iir;
subtype Iir_Protected_Type_Body is Iir;
subtype Iir_Subtype_Definition is Iir;
subtype Iir_Array_Subtype_Definition is Iir;
subtype Iir_Unconstrained_Array_Subtype_Definition is Iir;
subtype Iir_Physical_Type_Definition is Iir;
subtype Iir_Physical_Subtype_Definition is Iir;
subtype Iir_Access_Type_Definition is Iir;
subtype Iir_Access_Subtype_Definition is Iir;
subtype Iir_File_Type_Definition is Iir;
-- Tuples.
subtype Iir_Proxy is Iir;
subtype Iir_Waveform_Element is Iir;
subtype Iir_Conditional_Waveform is Iir;
subtype Iir_Association_Element_By_Expression is Iir;
subtype Iir_Association_Element_By_Individual is Iir;
subtype Iir_Association_Element_Open is Iir;
subtype Iir_Signature is Iir;
subtype Iir_Unit_Declaration is Iir;
subtype Iir_Entity_Aspect_Entity is Iir;
subtype Iir_Entity_Aspect_Configuration is Iir;
subtype Iir_Entity_Aspect_Open is Iir;
subtype Iir_Block_Configuration is Iir;
subtype Iir_Block_Header is Iir;
subtype Iir_Component_Configuration is Iir;
subtype Iir_Binding_Indication is Iir;
subtype Iir_Entity_Class is Iir;
subtype Iir_Attribute_Specification is Iir;
subtype Iir_Attribute_Value is Iir;
subtype Iir_Selected_Element is Iir;
subtype Iir_Implicit_Dereference is Iir;
subtype Iir_Aggregate_Info is Iir;
subtype Iir_Procedure_Call is Iir;
subtype Iir_Disconnection_Specification is Iir;
-- Lists.
subtype Iir_Index_List is Iir_List;
subtype Iir_Design_Unit_List is Iir_List;
subtype Iir_Enumeration_Literal_List is Iir_List;
subtype Iir_Designator_List is Iir_List;
subtype Iir_Attribute_Value_Chain is Iir_List;
subtype Iir_Overload_List is Iir;
subtype Iir_Group_Constituent_List is Iir_List;
subtype Iir_Callees_List is Iir_List;
-- Declaration and children.
subtype Iir_Entity_Declaration is Iir;
subtype Iir_Signal_Interface_Declaration is Iir;
subtype Iir_Architecture_Declaration is Iir;
subtype Iir_Configuration_Declaration is Iir;
subtype Iir_Type_Declaration is Iir;
subtype Iir_Anonymous_Type_Declaration is Iir;
subtype Iir_Subtype_Declaration is Iir;
subtype Iir_Package_Declaration is Iir;
subtype Iir_Package_Body is Iir;
subtype Iir_Library_Declaration is Iir;
subtype Iir_Function_Declaration is Iir;
subtype Iir_Function_Body is Iir;
subtype Iir_Procedure_Declaration is Iir;
subtype Iir_Procedure_Body is Iir;
subtype Iir_Implicit_Function_Declaration is Iir;
subtype Iir_Implicit_Procedure_Declaration is Iir;
subtype Iir_Use_Clause is Iir;
subtype Iir_Constant_Declaration is Iir;
subtype Iir_Iterator_Declaration is Iir;
subtype Iir_Constant_Interface_Declaration is Iir;
subtype Iir_Variable_Interface_Declaration is Iir;
subtype Iir_File_Interface_Declaration is Iir;
subtype Iir_Guard_Signal_Declaration is Iir;
subtype Iir_Signal_Declaration is Iir;
subtype Iir_Variable_Declaration is Iir;
subtype Iir_Component_Declaration is Iir;
subtype Iir_Element_Declaration is Iir;
subtype Iir_Object_Alias_Declaration is Iir;
subtype Iir_Non_Object_Alias_Declaration is Iir;
subtype Iir_Interface_Declaration is Iir;
subtype Iir_Configuration_Specification is Iir;
subtype Iir_File_Declaration is Iir;
subtype Iir_Attribute_Declaration is Iir;
subtype Iir_Group_Template_Declaration is Iir;
subtype Iir_Group_Declaration is Iir;
-- concurrent_statement and children.
subtype Iir_Concurrent_Statement is Iir;
subtype Iir_Concurrent_Conditional_Signal_Assignment is Iir;
subtype Iir_Sensitized_Process_Statement is Iir;
subtype Iir_Process_Statement is Iir;
subtype Iir_Component_Instantiation_Statement is Iir;
subtype Iir_Block_Statement is Iir;
subtype Iir_Generate_Statement is Iir;
-- sequential statements.
subtype Iir_If_Statement is Iir;
subtype Iir_Elsif is Iir;
subtype Iir_For_Loop_Statement is Iir;
subtype Iir_While_Loop_Statement is Iir;
subtype Iir_Exit_Statement is Iir;
subtype Iir_Next_Statement is Iir;
subtype Iir_Variable_Assignment_Statement is Iir;
subtype Iir_Signal_Assignment_Statement is Iir;
subtype Iir_Assertion_Statement is Iir;
subtype Iir_Report_Statement is Iir;
subtype Iir_Wait_Statement is Iir;
subtype Iir_Return_Statement is Iir;
subtype Iir_Case_Statement is Iir;
subtype Iir_Procedure_Call_Statement is Iir;
-- expression and children.
subtype Iir_Expression is Iir;
subtype Iir_Function_Call is Iir;
subtype Iir_Aggregate is Iir;
subtype Iir_Qualified_Expression is Iir;
subtype Iir_Type_Conversion is Iir;
subtype Iir_Allocator_By_Expression is Iir;
subtype Iir_Allocator_By_Subtype is Iir;
-- names.
subtype Iir_Simple_Name is Iir;
subtype Iir_Slice_Name is Iir;
subtype Iir_Selected_Name is Iir;
subtype Iir_Selected_By_All_Name is Iir;
subtype Iir_Indexed_Name is Iir;
subtype Iir_Parenthesis_Name is Iir;
-- attributes.
subtype Iir_Attribute_Name is Iir;
-- General methods.
-- Get the kind of the iir.
function Get_Kind (An_Iir: Iir) return Iir_Kind;
pragma Inline (Get_Kind);
-- Create a new IIR of kind NEW_KIND, and copy fields from SRC to this
-- iir. Src fields are cleaned.
--function Clone_Iir (Src: Iir; New_Kind : Iir_Kind) return Iir;
procedure Set_Location (Target: Iir; Location: Location_Type)
renames Nodes.Set_Location;
function Get_Location (Target: Iir) return Location_Type
renames Nodes.Get_Location;
procedure Location_Copy (Target: Iir; Src: Iir);
function Create_Iir (Kind: Iir_Kind) return Iir;
function Create_Iir_Error return Iir;
procedure Free_Iir (Target: Iir) renames Nodes.Free_Node;
-- Disp statistics about node usage.
procedure Disp_Stats;
-- Design units contained in a design file.
-- Field: Field5
function Get_First_Design_Unit (Design : Iir) return Iir;
procedure Set_First_Design_Unit (Design : Iir; Chain : Iir);
-- Field: Field6
function Get_Last_Design_Unit (Design : Iir) return Iir;
procedure Set_Last_Design_Unit (Design : Iir; Chain : Iir);
-- Library declaration of a library clause.
-- Field: Field1
function Get_Library_Declaration (Design : Iir) return Iir;
procedure Set_Library_Declaration (Design : Iir; Library : Iir);
-- File time stamp is the system time of the file last modification.
-- Field: Field4 (uc)
function Get_File_Time_Stamp (Design : Iir) return Time_Stamp_Id;
procedure Set_File_Time_Stamp (Design : Iir; Stamp : Time_Stamp_Id);
-- Time stamp of the last analysis system time.
-- Field: Field3 (uc)
function Get_Analysis_Time_Stamp (Design : Iir) return Time_Stamp_Id;
procedure Set_Analysis_Time_Stamp (Design : Iir; Stamp : Time_Stamp_Id);
-- The library which FILE belongs to.
-- Field: Field0
function Get_Library (File : Iir_Design_File) return Iir;
procedure Set_Library (File : Iir_Design_File; Lib : Iir);
-- List of files which this design file depends on.
-- Field: Field1 (uc)
function Get_File_Dependence_List (File : Iir_Design_File) return Iir_List;
procedure Set_File_Dependence_List (File : Iir_Design_File; Lst : Iir_List);
-- Identifier for the design file file name.
-- Field: Field12 (pos)
function Get_Design_File_Filename (File : Iir_Design_File) return Name_Id;
procedure Set_Design_File_Filename (File : Iir_Design_File; Name : Name_Id);
-- Directory of a design file.
-- Field: Field11 (pos)
function Get_Design_File_Directory (File : Iir_Design_File) return Name_Id;
procedure Set_Design_File_Directory (File : Iir_Design_File; Dir : Name_Id);
-- The parent of a design unit is a design file.
-- Field: Field0
function Get_Design_File (Unit : Iir_Design_Unit) return Iir_Design_File;
procedure Set_Design_File (Unit : Iir_Design_Unit; File : Iir_Design_File);
-- Design files of a library.
-- Field: Field1
function Get_Design_File_Chain (Library : Iir) return Iir_Design_File;
procedure Set_Design_File_Chain (Library : Iir; Chain : Iir_Design_File);
-- System directory where the library is stored.
-- Field: Field11 (pos)
function Get_Library_Directory (Library : Iir) return Name_Id;
procedure Set_Library_Directory (Library : Iir; Dir : Name_Id);
-- Symbolic date, used to order design units in a library.
-- Field: Field10 (pos)
function Get_Date (Target : Iir) return Date_Type;
procedure Set_Date (Target : Iir; Date : Date_Type);
-- Chain of context clauses.
-- Field: Field1
function Get_Context_Items (Design_Unit : Iir) return Iir;
procedure Set_Context_Items (Design_Unit : Iir; Items_Chain : Iir);
-- List of design units on which the design unit depends.
-- Field: Field8 (uc)
function Get_Dependence_List (Unit : Iir) return Iir_List;
procedure Set_Dependence_List (Unit : Iir; List : Iir_List);
-- List of functions or sensitized processes whose analysis checks are not
-- complete.
-- These elements have direct or indirect calls to procedure whose body is
-- not yet analyzed. Therefore, purity or wait checks are not complete.
-- Field: Field9 (uc)
function Get_Analysis_Checks_List (Unit : Iir) return Iir_List;
procedure Set_Analysis_Checks_List (Unit : Iir; List : Iir_List);
-- Wether the unit is on disk, parsed or analyzed.
-- Field: State1 (pos)
function Get_Date_State (Unit : Iir_Design_Unit) return Date_State_Type;
procedure Set_Date_State (Unit : Iir_Design_Unit; State : Date_State_Type);
-- If TRUE, the target of the signal assignment is guarded.
-- If FALSE, the target is not guarded.
-- This is determined during sem by examining the declaration(s) of the
-- target (there may be severals declarations in the case of a aggregate
-- target).
-- If UNKNOWN, this is not determined at compile time but at run-time.
-- This is the case for formal signal interfaces of subprograms.
-- Field: State3 (pos)
function Get_Guarded_Target_State (Stmt : Iir) return Tri_State_Type;
procedure Set_Guarded_Target_State (Stmt : Iir; State : Tri_State_Type);
-- Library unit of a design unit.
-- Field: Field5
function Get_Library_Unit (Design_Unit : Iir_Design_Unit) return Iir;
procedure Set_Library_Unit (Design_Unit : Iir_Design_Unit; Lib_Unit : Iir);
pragma Inline (Get_Library_Unit);
-- Every design unit is put in an hash table to find quickly found by its
-- name. This field is a single chain for collisions.
-- Field: Field7
function Get_Hash_Chain (Design_Unit : Iir_Design_Unit) return Iir;
procedure Set_Hash_Chain (Design_Unit : Iir_Design_Unit; Chain : Iir);
-- Set the line and the offset in the line, only for the library manager.
-- This is valid until the file is really loaded in memory. On loading,
-- location will contain all this informations.
-- Field: Field1
-- Field: Field6
-- Field: Field7
procedure Set_Pos_Line_Off (Design_Unit: Iir_Design_Unit;
Pos : Source_Ptr; Line, Off: Natural);
procedure Get_Pos_Line_Off (Design_Unit: Iir_Design_Unit;
Pos : out Source_Ptr; Line, Off: out Natural);
-- literals.
-- Value of an integer/physical literal.
-- Field: Int64
function Get_Value (Lit : Iir) return Iir_Int64;
procedure Set_Value (Lit : Iir; Val : Iir_Int64);
-- Position (same as lit_type'pos) of an enumeration literal.
-- Field: Field10 (pos)
function Get_Enum_Pos (Lit : Iir) return Iir_Int32;
procedure Set_Enum_Pos (Lit : Iir; Val : Iir_Int32);
-- Field: Field6
function Get_Physical_Literal (Unit : Iir) return Iir;
procedure Set_Physical_Literal (Unit : Iir; Lit : Iir);
-- Value of a physical unit declaration.
-- Field: Field7
function Get_Physical_Unit_Value (Unit : Iir) return Iir;
procedure Set_Physical_Unit_Value (Unit : Iir; Lit : Iir);
-- Value of a floating point literal.
-- Field: Fp64
function Get_Fp_Value (Lit : Iir) return Iir_Fp64;
procedure Set_Fp_Value (Lit : Iir; Val : Iir_Fp64);
-- Declaration of the literal.
-- This is used to retrieve the genuine enumeration literal for literals
-- created from static expression.
-- Field: Field6
function Get_Enumeration_Decl (Target : Iir) return Iir;
procedure Set_Enumeration_Decl (Target : Iir; Lit : Iir);
-- List of elements of a simple aggregate.
-- Field: Field3 (uc)
function Get_Simple_Aggregate_List (Target : Iir) return Iir_List;
procedure Set_Simple_Aggregate_List (Target : Iir; List : Iir_List);
-- The logarithm of the base (1, 3 or 4) of a bit string.
-- Field: Field11 (pos)
function Get_Bit_String_Base (Lit : Iir) return Base_Type;
procedure Set_Bit_String_Base (Lit : Iir; Base : Base_Type);
-- The enumeration literal which defines the '0' and '1' value.
-- Field: Field4
function Get_Bit_String_0 (Lit : Iir) return Iir_Enumeration_Literal;
procedure Set_Bit_String_0 (Lit : Iir; El : Iir_Enumeration_Literal);
-- Field: Field5
function Get_Bit_String_1 (Lit : Iir) return Iir_Enumeration_Literal;
procedure Set_Bit_String_1 (Lit : Iir; El : Iir_Enumeration_Literal);
-- The origin of a literal can be null_iir for a literal generated by the
-- parser, or a node which was statically evaluated to this literal.
-- Such nodes are created by eval_expr.
-- Field: Field2
function Get_Literal_Origin (Lit : Iir) return Iir;
procedure Set_Literal_Origin (Lit : Iir; Orig : Iir);
-- tuples.
function Create_Proxy (Proxy: Iir) return Iir_Proxy;
-- Field: Field1
function Get_Proxy (Target : Iir_Proxy) return Iir;
procedure Set_Proxy (Target : Iir_Proxy; Proxy : Iir);
-- Field: Field3 (uc)
function Get_Entity_Class (Target : Iir) return Token_Type;
procedure Set_Entity_Class (Target : Iir; Kind : Token_Type);
-- Field: Field1 (uc)
function Get_Entity_Name_List (Target : Iir) return Iir_List;
procedure Set_Entity_Name_List (Target : Iir; Names : Iir_List);
-- Field: Field6
function Get_Attribute_Designator (Target : Iir) return Iir;
procedure Set_Attribute_Designator (Target : Iir; Designator : Iir);
-- Chain of attribute specifications. This is used only during sem, to
-- check that no named entity of a given class appear after an attr. spec.
-- with the entity name list OTHERS or ALL.
-- Field: Field7
function Get_Attribute_Specification_Chain (Target : Iir) return Iir;
procedure Set_Attribute_Specification_Chain (Target : Iir; Chain : Iir);
-- Field: Field4
function Get_Attribute_Specification (Val : Iir) return Iir;
procedure Set_Attribute_Specification (Val : Iir; Attr : Iir);
-- Field: Field4 (uc)
function Get_Signal_List (Target : Iir) return Iir_List;
procedure Set_Signal_List (Target : Iir; List : Iir_List);
-- Field: Field3
function Get_Designated_Entity (Val : Iir_Attribute_Value) return Iir;
procedure Set_Designated_Entity (Val : Iir_Attribute_Value; Entity : Iir);
-- Field: Field1
function Get_Formal (Target : Iir) return Iir;
procedure Set_Formal (Target : Iir; Formal : Iir);
-- Field: Field3
function Get_Actual (Target : Iir) return Iir;
procedure Set_Actual (Target : Iir; Actual : Iir);
-- Field: Field4
function Get_In_Conversion (Target : Iir) return Iir;
procedure Set_In_Conversion (Target : Iir; Conv : Iir);
-- Field: Field5
function Get_Out_Conversion (Target : Iir) return Iir;
procedure Set_Out_Conversion (Target : Iir; Conv : Iir);
-- This flag is set when the formal is associated in whole (ie, not
-- individually).
-- Field: Flag1
function Get_Whole_Association_Flag (Target : Iir) return Boolean;
procedure Set_Whole_Association_Flag (Target : Iir; Flag : Boolean);
-- This flag is set when the formal signal can be the actual signal. In
-- this case, the formal signal is not created, and the actual is shared.
-- This is the signal collapsing optimisation.
-- Field: Flag2
function Get_Collapse_Signal_Flag (Target : Iir) return Boolean;
procedure Set_Collapse_Signal_Flag (Target : Iir; Flag : Boolean);
-- Set when the node was artificially created, eg by canon.
-- Currently used only by association_element_open.
-- Field: Flag3
function Get_Artificial_Flag (Target : Iir) return Boolean;
procedure Set_Artificial_Flag (Target : Iir; Flag : Boolean);
-- This flag is set for a very short time during the check that no in
-- port is unconnected.
-- Field: Flag3
function Get_Open_Flag (Target : Iir) return Boolean;
procedure Set_Open_Flag (Target : Iir; Flag : Boolean);
-- This flag is set by trans_analyze if there is a projected waveform
-- assignment in the process.
-- Field: Flag5
function Get_After_Drivers_Flag (Target : Iir) return Boolean;
procedure Set_After_Drivers_Flag (Target : Iir; Flag : Boolean);
-- Field: Field1
function Get_We_Value (We : Iir_Waveform_Element) return Iir;
procedure Set_We_Value (We : Iir_Waveform_Element; An_Iir : Iir);
-- Field: Field3
function Get_Time (We : Iir_Waveform_Element) return Iir;
procedure Set_Time (We : Iir_Waveform_Element; An_Iir : Iir);
-- Node associated with a choice.
-- Field: Field1
function Get_Associated (Target : Iir) return Iir;
procedure Set_Associated (Target : Iir; Associated : Iir);
-- Set when a choice belongs to the same alternative as the previous one.
-- Field: Flag1
function Get_Same_Alternative_Flag (Target : Iir) return Boolean;
procedure Set_Same_Alternative_Flag (Target : Iir; Val : Boolean);
-- Field: Field2
function Get_Architecture (Target : Iir_Entity_Aspect_Entity) return Iir;
procedure Set_Architecture (Target : Iir_Entity_Aspect_Entity; Arch : Iir);
-- Field: Field5
function Get_Block_Specification (Target : Iir) return Iir;
procedure Set_Block_Specification (Target : Iir; Block : Iir);
-- Return the link of the previous block_configuration of a
-- block_configuration.
-- This single linked list is used to list all the block_configuration that
-- configuration the same block (which can only be an iterative generate
-- statement).
-- All elements of this list must belong to the same block configuration.
-- The order is not important.
-- Field: Field4
function Get_Prev_Block_Configuration (Target : Iir) return Iir;
procedure Set_Prev_Block_Configuration (Target : Iir; Block : Iir);
-- Field: Field3
function Get_Configuration_Item_Chain (Target : Iir) return Iir;
procedure Set_Configuration_Item_Chain (Target : Iir; Chain : Iir);
-- Chain of attribute values for a named entity.
-- To be used with Get/Set_Chain.
-- There is no order, therefore, a new attribute value may be always
-- prepended.
-- Field: Field4
function Get_Attribute_Value_Chain (Target : Iir) return Iir;
procedure Set_Attribute_Value_Chain (Target : Iir; Chain : Iir);
-- Next attribute value in the attribute specification chain (of attribute
-- value).
-- Field: Field0
function Get_Spec_Chain (Target : Iir) return Iir;
procedure Set_Spec_Chain (Target : Iir; Chain : Iir);
-- Chain of attribute values for attribute specification.
-- To be used with Get/Set_Spec_Chain.
-- Field: Field4
function Get_Attribute_Value_Spec_Chain (Target : Iir) return Iir;
procedure Set_Attribute_Value_Spec_Chain (Target : Iir; Chain : Iir);
-- Field: Field4
function Get_Entity (Decl : Iir) return Iir;
procedure Set_Entity (Decl : Iir; Entity : Iir);
-- The package declaration corresponding to the body.
-- Field: Field4
function Get_Package (Package_Body : Iir) return Iir_Package_Declaration;
procedure Set_Package (Package_Body : Iir; Decl : Iir_Package_Declaration);
-- The package body corresponding to the package declaration.
-- Field: Field4
function Get_Package_Body (Pkg : Iir) return Iir_Package_Body;
procedure Set_Package_Body (Pkg : Iir; Decl : Iir_Package_Body);
-- If true, the package need a body.
-- Field: Flag1
function Get_Need_Body (Decl : Iir_Package_Declaration) return Boolean;
procedure Set_Need_Body (Decl : Iir_Package_Declaration; Flag : Boolean);
-- Field: Field5
function Get_Block_Configuration (Target : Iir) return Iir;
procedure Set_Block_Configuration (Target : Iir; Block : Iir);
-- Field: Field5
function Get_Concurrent_Statement_Chain (Target : Iir) return Iir;
procedure Set_Concurrent_Statement_Chain (Target : Iir; First : Iir);
-- Field: Field2
function Get_Chain (Target : Iir) return Iir;
procedure Set_Chain (Target : Iir; Chain : Iir);
pragma Inline (Get_Chain);
-- Field: Field7
function Get_Port_Chain (Target : Iir) return Iir;
procedure Set_Port_Chain (Target : Iir; Chain : Iir);
-- Field: Field6
function Get_Generic_Chain (Target : Iir) return Iir;
procedure Set_Generic_Chain (Target : Iir; Generics : Iir);
-- Field: Field1
function Get_Type (Target : Iir) return Iir;
procedure Set_Type (Target : Iir; Atype : Iir);
pragma Inline (Get_Type);
-- The subtype definition associated with the type declaration (if any).
-- Field: Field4
function Get_Subtype_Definition (Target : Iir) return Iir;
procedure Set_Subtype_Definition (Target : Iir; Def : Iir);
-- Mode of interfaces or file (v87).
-- Field: Odigit1 (pos)
function Get_Mode (Target : Iir) return Iir_Mode;
procedure Set_Mode (Target : Iir; Mode : Iir_Mode);
-- Field: State3 (pos)
function Get_Signal_Kind (Target : Iir) return Iir_Signal_Kind;
procedure Set_Signal_Kind (Target : Iir; Signal_Kind : Iir_Signal_Kind);
-- The base name of a name is the node at the origin of the name.
-- The base name is a declaration (signal, object, constant or interface),
-- a selected_by_all name, an implicit_dereference name.
-- Field: Field5
function Get_Base_Name (Target : Iir) return Iir;
procedure Set_Base_Name (Target : Iir; Name : Iir);
pragma Inline (Get_Base_Name);
-- Field: Field5
function Get_Interface_Declaration_Chain (Target : Iir) return Iir;
procedure Set_Interface_Declaration_Chain (Target : Iir; Chain : Iir);
pragma Inline (Get_Interface_Declaration_Chain);
-- Field: Field4
function Get_Subprogram_Specification (Target : Iir) return Iir;
procedure Set_Subprogram_Specification (Target : Iir; Spec : Iir);
-- Field: Field5
function Get_Sequential_Statement_Chain (Target : Iir) return Iir;
procedure Set_Sequential_Statement_Chain (Target : Iir; Chain : Iir);
-- Field: Field6
function Get_Subprogram_Body (Target : Iir) return Iir;
procedure Set_Subprogram_Body (Target : Iir; A_Body : Iir);
-- Several subprograms in a declarative region may have the same
-- identifier. If the overload number is not 0, it is the rank of the
-- subprogram. If the overload number is 0, then the identifier is not
-- overloaded in the declarative region.
-- Field: Field9 (pos)
function Get_Overload_Number (Target : Iir) return Iir_Int32;
procedure Set_Overload_Number (Target : Iir; Val : Iir_Int32);
-- Depth of a subprogram.
-- For a subprogram declared immediatly within an entity, architecture,
-- package, process, block, generate, the depth is 0.
-- For a subprogram declared immediatly within a subprogram of level N,
-- the depth is N + 1.
-- Depth is used with depth of impure objects to check purity rules.
-- Field: Field10 (pos)
function Get_Subprogram_Depth (Target : Iir) return Iir_Int32;
procedure Set_Subprogram_Depth (Target : Iir; Depth : Iir_Int32);
-- Hash of a subprogram profile.
-- This is used to speed up subprogram profile comparaison, which is very
-- often used by overload.
-- Field: Field11 (pos)
function Get_Subprogram_Hash (Target : Iir) return Iir_Int32;
procedure Set_Subprogram_Hash (Target : Iir; Val : Iir_Int32);
pragma Inline (Get_Subprogram_Hash);
-- Index for extra infos.
-- Subprograms and processes need a lot of field in their nodes.
-- Unfortunatly, the size of the nodes is limited and these infos are
-- only used for optimization.
-- This is an index into a separate table.
-- Field: Field8 (pos)
function Get_Extra_Info (Target : Iir) return Iir_Int32;
procedure Set_Extra_Info (Target : Iir; Info : Iir_Int32);
-- Depth of the deepest impure object.
-- Field: Field3 (uc)
function Get_Impure_Depth (Target : Iir) return Iir_Int32;
procedure Set_Impure_Depth (Target : Iir; Depth : Iir_Int32);
-- Field: Field1
function Get_Return_Type (Target : Iir) return Iir;
procedure Set_Return_Type (Target : Iir; Decl : Iir);
pragma Inline (Get_Return_Type);
-- Code of an implicit subprogram definition.
-- Field: Field6 (pos)
function Get_Implicit_Definition (D : Iir) return Iir_Predefined_Functions;
procedure Set_Implicit_Definition (D : Iir; Def : Iir_Predefined_Functions);
-- For an implicit subprogram, the type_reference is the type declaration
-- for which the implicit subprogram was defined.
-- Field: Field10
function Get_Type_Reference (Target : Iir) return Iir;
procedure Set_Type_Reference (Target : Iir; Decl : Iir);
-- Get the default value of an object declaration.
-- Null_iir if no default value.
-- Field: Field6
function Get_Default_Value (Target : Iir) return Iir;
procedure Set_Default_Value (Target : Iir; Value : Iir);
-- The deferred_declaration field points to the deferred constant
-- declaration for a full constant declaration, or is null_iir for a
-- usual or deferred constant declaration.
-- Set only during sem.
-- Field: Field7
function Get_Deferred_Declaration (Target : Iir) return Iir;
procedure Set_Deferred_Declaration (Target : Iir; Decl : Iir);
-- The deferred_declaration_flag must be set if the constant declaration is
-- a deferred_constant declaration.
-- Set only during sem.
-- Field: Flag1
function Get_Deferred_Declaration_Flag (Target : Iir) return Boolean;
procedure Set_Deferred_Declaration_Flag (Target : Iir; Flag : Boolean);
-- If true, the variable is declared shared.
-- Field: Flag2
function Get_Shared_Flag (Target : Iir) return Boolean;
procedure Set_Shared_Flag (Target : Iir; Shared : Boolean);
-- Get the design unit in which the target is declared.
-- For a library unit, this is to get the design unit node.
-- Field: Field0
function Get_Design_Unit (Target : Iir) return Iir_Design_Unit;
procedure Set_Design_Unit (Target : Iir; Unit : Iir_Design_Unit);
-- Field: Field7
function Get_Block_Statement (Target : Iir) return Iir_Block_Statement;
procedure Set_Block_Statement (Target : Iir; Block : Iir_Block_Statement);
-- For a non-resolved signal: null_iir if the signal has no driver, or
-- a process/concurrent_statement for which the signal should have a
-- driver. This is used to catch at analyse time unresolved signals with
-- several drivers.
-- Field: Field7
function Get_Signal_Driver (Target : Iir_Signal_Declaration) return Iir;
procedure Set_Signal_Driver (Target : Iir_Signal_Declaration; Driver : Iir);
-- Field: Field1
function Get_Declaration_Chain (Target : Iir) return Iir;
procedure Set_Declaration_Chain (Target : Iir; Decls : Iir);
-- Field: Field6
function Get_File_Logical_Name (Target : Iir_File_Declaration) return Iir;
procedure Set_File_Logical_Name (Target : Iir_File_Declaration; Name : Iir);
-- Field: Field7
function Get_File_Open_Kind (Target : Iir_File_Declaration) return Iir;
procedure Set_File_Open_Kind (Target : Iir_File_Declaration; Kind : Iir);
-- Field: Field4 (pos)
function Get_Element_Position (Target : Iir) return Iir_Index32;
procedure Set_Element_Position (Target : Iir; Pos : Iir_Index32);
-- Field: Field2
function Get_Selected_Element (Target : Iir) return Iir;
procedure Set_Selected_Element (Target : Iir; El : Iir);
-- Field: Field2 (uc)
function Get_Suffix_Identifier (Target : Iir) return Name_Id;
procedure Set_Suffix_Identifier (Target : Iir; Ident : Name_Id);
-- Field: Field2 (uc)
function Get_Attribute_Identifier (Target : Iir) return Name_Id;
procedure Set_Attribute_Identifier (Target : Iir; Ident : Name_Id);
-- Selected names of an use_clause are chained.
-- Field: Field3
function Get_Use_Clause_Chain (Target : Iir) return Iir;
procedure Set_Use_Clause_Chain (Target : Iir; Chain : Iir);
-- Selected name of an use_clause.
-- Field: Field1
function Get_Selected_Name (Target : Iir_Use_Clause) return Iir;
procedure Set_Selected_Name (Target : Iir_Use_Clause; Name : Iir);
-- The type declarator which declares the type definition TARGET.
-- Field: Field3
function Get_Type_Declarator (Target : Iir) return Iir;
procedure Set_Type_Declarator (Target : Iir; Decl : Iir);
-- Field: Field2 (uc)
function Get_Enumeration_Literal_List (Target : Iir) return Iir_List;
procedure Set_Enumeration_Literal_List (Target : Iir; List : Iir_List);
-- Field: Field1
function Get_Entity_Class_Entry_Chain (Target : Iir) return Iir;
procedure Set_Entity_Class_Entry_Chain (Target : Iir; Chain : Iir);
-- Field: Field1 (uc)
function Get_Group_Constituent_List (Group : Iir) return Iir_List;
procedure Set_Group_Constituent_List (Group : Iir; List : Iir_List);
-- Chain of physical type units.
-- The first unit is the primary unit. If you really need the primary
-- unit (and not the chain), you'd better to use Get_Primary_Unit.
-- Field: Field1
function Get_Unit_Chain (Target : Iir) return Iir;
procedure Set_Unit_Chain (Target : Iir; Chain : Iir);
-- Alias of Get_Unit_Chain.
-- Return the primary unit of a physical type.
-- Field: Field1
function Get_Primary_Unit (Target : Iir) return Iir;
-- Get/Set the identifier of a declaration.
-- Can also be used instead of get/set_label.
-- Field: Field3 (uc)
function Get_Identifier (Target : Iir) return Name_Id;
procedure Set_Identifier (Target : Iir; Identifier : Name_Id);
pragma Inline (Get_Identifier);
-- Field: Field3 (uc)
function Get_Label (Target : Iir) return Name_Id;
procedure Set_Label (Target : Iir; Label : Name_Id);
-- Get/Set the visible flag of a declaration.
-- The visible flag is true to make invalid the use of the identifier
-- during its declaration. It is set to false when the identifier is added
-- to the name table, and set to true when the declaration is finished.
-- Field: Flag4
function Get_Visible_Flag (Target : Iir) return Boolean;
procedure Set_Visible_Flag (Target : Iir; Flag : Boolean);
-- Field: Field1
function Get_Range_Constraint (Target : Iir) return Iir;
procedure Set_Range_Constraint (Target : Iir; Constraint : Iir);
-- Field: State2 (pos)
function Get_Direction (Decl : Iir) return Iir_Direction;
procedure Set_Direction (Decl : Iir; Dir : Iir_Direction);
-- Field: Field2
function Get_Left_Limit (Decl : Iir_Range_Expression) return Iir;
procedure Set_Left_Limit (Decl : Iir_Range_Expression; Limit : Iir);
-- Field: Field3
function Get_Right_Limit (Decl : Iir_Range_Expression) return Iir;
procedure Set_Right_Limit (Decl : Iir_Range_Expression; Limit : Iir);
-- Field: Field4
function Get_Base_Type (Decl : Iir) return Iir;
procedure Set_Base_Type (Decl : Iir; Base_Type : Iir);
pragma Inline (Get_Base_Type);
-- Field: Field5
function Get_Resolution_Function (Decl : Iir) return Iir;
procedure Set_Resolution_Function (Decl : Iir; Func : Iir);
-- True if ATYPE defines std.textio.text file type.
-- Field: Flag4
function Get_Text_File_Flag (Atype : Iir) return Boolean;
procedure Set_Text_File_Flag (Atype : Iir; Flag : Boolean);
-- Field: State1 (pos)
function Get_Type_Staticness (Atype : Iir) return Iir_Staticness;
procedure Set_Type_Staticness (Atype : Iir; Static : Iir_Staticness);
-- Field: Field6 (uc)
function Get_Index_Subtype_List (Decl : Iir) return Iir_List;
procedure Set_Index_Subtype_List (Decl : Iir; List : Iir_List);
-- Field: Field2 (uc)
function Get_Index_List (Decl : Iir) return Iir_List;
procedure Set_Index_List (Decl : Iir; List : Iir_List);
-- Field: Field1
function Get_Element_Subtype (Decl : Iir) return Iir;
procedure Set_Element_Subtype (Decl : Iir; Sub_Type : Iir);
-- Chains of elements of a record.
-- Field: Field2
function Get_Element_Declaration_Chain (Decl : Iir) return Iir;
procedure Set_Element_Declaration_Chain (Decl : Iir; Chain : Iir);
-- Number of elements in the record.
-- Field: Field1 (uc)
function Get_Number_Element_Declaration (Decl : Iir) return Iir_Index32;
procedure Set_Number_Element_Declaration (Decl : Iir; Val : Iir_Index32);
-- Field: Field2
function Get_Designated_Type (Target : Iir) return Iir;
procedure Set_Designated_Type (Target : Iir; Dtype : Iir);
-- Field: Field1
function Get_Target (Target : Iir) return Iir;
procedure Set_Target (Target : Iir; Atarget : Iir);
-- Field: Field5
function Get_Waveform_Chain (Target : Iir) return Iir_Waveform_Element;
procedure Set_Waveform_Chain (Target : Iir; Chain : Iir_Waveform_Element);
-- Field: Field8
function Get_Guard (Target : Iir) return Iir;
procedure Set_Guard (Target : Iir; Guard : Iir);
-- Field: Field12 (pos)
function Get_Delay_Mechanism (Target : Iir) return Iir_Delay_Mechanism;
procedure Set_Delay_Mechanism (Target : Iir; Kind : Iir_Delay_Mechanism);
-- Field: Field6
function Get_Reject_Time_Expression (Target : Iir) return Iir;
procedure Set_Reject_Time_Expression (Target : Iir; Expr : Iir);
-- Field: Field6 (uc)
function Get_Sensitivity_List (Wait : Iir) return Iir_List;
procedure Set_Sensitivity_List (Wait : Iir; List : Iir_List);
-- Field: Field5
function Get_Condition_Clause (Wait : Iir_Wait_Statement) return Iir;
procedure Set_Condition_Clause (Wait : Iir_Wait_Statement; Cond : Iir);
-- Field: Field1
function Get_Timeout_Clause (Wait : Iir_Wait_Statement) return Iir;
procedure Set_Timeout_Clause (Wait : Iir_Wait_Statement; Timeout : Iir);
-- If set, the concurrent statement is postponed.
-- Field: Flag3
function Get_Postponed_Flag (Target : Iir) return Boolean;
procedure Set_Postponed_Flag (Target : Iir; Value : Boolean);
-- Returns the list of subprogram called in this subprogram or process.
-- Note: implicit function (such as implicit operators) are omitted
-- from this list, since the purpose of this list is to correctly set
-- flags for side effects (purity_state, wait_state).
-- Can return null_iir if there is no subprogram called.
-- Field: Field7 (uc)
function Get_Callees_List (Proc : Iir) return Iir_List;
procedure Set_Callees_List (Proc : Iir; List : Iir_List);
-- Get/Set the passive flag of a process.
-- TRUE if the process must be passive.
-- FALSE if the process may be not passive.
-- For a procedure declaration, set if it is passive.
-- Field: Flag2
function Get_Passive_Flag (Proc : Iir) return Boolean;
procedure Set_Passive_Flag (Proc : Iir; Flag : Boolean);
-- True if the function is used as a resolution function.
-- Field: Flag7
function Get_Resolution_Function_Flag (Func : Iir) return Boolean;
procedure Set_Resolution_Function_Flag (Func : Iir; Flag : Boolean);
-- Get/Set the wait state of the current subprogram or process.
-- TRUE if it contains a wait statement, either directly or
-- indirectly.
-- FALSE if it doesn't contain a wait statement.
-- UNKNOWN if the wait status is not yet known.
-- Field: State1 (pos)
function Get_Wait_State (Proc : Iir) return Tri_State_Type;
procedure Set_Wait_State (Proc : Iir; State : Tri_State_Type);
-- Get/Set wether the subprogram may be called by a sensitized process
-- whose sensitivity list is ALL.
-- FALSE if declared in a package unit and reads a signal that is not
-- one of its interface, or if it calls such a subprogram.
-- TRUE if it doesn't call a subprogram whose state is False and
-- either doesn't read a signal or declared within an entity or
-- architecture.
-- UNKNOWN if the status is not yet known.
-- Field: State3 (pos)
function Get_All_Sensitized_State (Proc : Iir) return Iir_All_Sensitized;
procedure Set_All_Sensitized_State (Proc : Iir; State : Iir_All_Sensitized);
-- Get/Set the seen flag.
-- Used when the graph of callees is walked, to avoid infinite loops, since
-- the graph is not a DAG (there may be cycles).
-- Field: Flag1
function Get_Seen_Flag (Proc : Iir) return Boolean;
procedure Set_Seen_Flag (Proc : Iir; Flag : Boolean);
-- Get/Set the pure flag of a function.
-- TRUE if the function is declared pure.
-- FALSE if the function is declared impure.
-- Field: Flag2
function Get_Pure_Flag (Func : Iir) return Boolean;
procedure Set_Pure_Flag (Func : Iir; Flag : Boolean);
-- Get/Set the foreign flag of a declaration.
-- TRUE if the declaration was decored with the std.foreign attribute.
-- Field: Flag3
function Get_Foreign_Flag (Decl : Iir) return Boolean;
procedure Set_Foreign_Flag (Decl : Iir; Flag : Boolean);
-- Get/Set the resolved flag of a subtype definition.
-- A subtype definition may be resolved either because a
-- resolution_function_name is present in the subtype_indication, or
-- because all elements type are resolved.
-- Field: Flag1
function Get_Resolved_Flag (Atype : Iir) return Boolean;
procedure Set_Resolved_Flag (Atype : Iir; Flag : Boolean);
-- Get/Set the signal_type flag of a type/subtype definition.
-- This flags indicates whether the type can be used as a signal type.
-- Access types, file types and composite types whose a sub-element is
-- an access type cannot be used as a signal type.
-- Field: Flag2
function Get_Signal_Type_Flag (Atype : Iir) return Boolean;
procedure Set_Signal_Type_Flag (Atype : Iir; Flag : Boolean);
-- True if ATYPE is used to declare a signal or to handle a signal
-- (such as slice or aliases).
-- Field: Flag3
function Get_Has_Signal_Flag (Atype : Iir) return Boolean;
procedure Set_Has_Signal_Flag (Atype : Iir; Flag : Boolean);
-- Get/Set the purity status of a subprogram.
-- Field: State2 (pos)
function Get_Purity_State (Proc : Iir) return Iir_Pure_State;
procedure Set_Purity_State (Proc : Iir; State : Iir_Pure_State);
-- Set during binding when DESIGN is added in a list of file to bind.
-- Field: Flag3
function Get_Elab_Flag (Design : Iir) return Boolean;
procedure Set_Elab_Flag (Design : Iir; Flag : Boolean);
-- Condition of an assertion.
-- Field: Field1
function Get_Assertion_Condition (Target : Iir) return Iir;
procedure Set_Assertion_Condition (Target : Iir; Cond : Iir);
-- Report expression of an assertion or report statement.
-- Field: Field6
function Get_Report_Expression (Target : Iir) return Iir;
procedure Set_Report_Expression (Target : Iir; Expr : Iir);
-- Severity expression of an assertion or report statement.
-- Field: Field5
function Get_Severity_Expression (Target : Iir) return Iir;
procedure Set_Severity_Expression (Target : Iir; Expr : Iir);
-- Instantiated unit of a component instantiation statement.
-- Field: Field1
function Get_Instantiated_Unit (Target : Iir) return Iir;
procedure Set_Instantiated_Unit (Target : Iir; Unit : Iir);
-- Generic map aspect list.
-- Field: Field8
function Get_Generic_Map_Aspect_Chain (Target : Iir) return Iir;
procedure Set_Generic_Map_Aspect_Chain (Target : Iir; Generics : Iir);
-- Port map aspect list.
-- Field: Field9
function Get_Port_Map_Aspect_Chain (Target : Iir) return Iir;
procedure Set_Port_Map_Aspect_Chain (Target : Iir; Port : Iir);
-- Configuration of an entity_aspect_configuration.
-- Field: Field1
function Get_Configuration (Target : Iir) return Iir;
procedure Set_Configuration (Target : Iir; Conf : Iir);
-- Component configuration for a component_instantiation_statement.
-- Field: Field6
function Get_Component_Configuration (Target : Iir) return Iir;
procedure Set_Component_Configuration (Target : Iir; Conf : Iir);
-- Configuration specification for a component_instantiation_statement.
-- Field: Field7
function Get_Configuration_Specification (Target : Iir) return Iir;
procedure Set_Configuration_Specification (Target : Iir; Conf : Iir);
-- Set/Get the default binding indication of a configuration specification
-- or a component configuration.
-- Field: Field5
function Get_Default_Binding_Indication (Target : Iir) return Iir;
procedure Set_Default_Binding_Indication (Target : Iir; Conf : Iir);
-- Set/Get the default configuration of an architecture.
-- Field: Field6
function Get_Default_Configuration_Declaration (Target : Iir) return Iir;
procedure Set_Default_Configuration_Declaration (Target : Iir; Conf : Iir);
-- Expression for an various nodes.
-- Field: Field5
function Get_Expression (Target : Iir) return Iir;
procedure Set_Expression (Target : Iir; Expr : Iir);
-- Field: Field7
function Get_Selected_Waveform_Chain (Target : Iir) return Iir;
procedure Set_Selected_Waveform_Chain (Target : Iir; Chain : Iir);
-- Field: Field7
function Get_Conditional_Waveform_Chain (Target : Iir) return Iir;
procedure Set_Conditional_Waveform_Chain (Target : Iir; Chain : Iir);
-- Expression defining the value of the implicit guard signal.
-- Field: Field2
function Get_Guard_Expression (Target : Iir) return Iir;
procedure Set_Guard_Expression (Target : Iir; Expr : Iir);
-- The declaration (if any) of the implicit guard signal of a block
-- statement.
-- Field: Field8
function Get_Guard_Decl (Target : Iir_Block_Statement) return Iir;
procedure Set_Guard_Decl (Target : Iir_Block_Statement; Decl : Iir);
-- Sensitivity list for the implicit guard signal.
-- Field: Field6 (uc)
function Get_Guard_Sensitivity_List (Guard : Iir) return Iir_List;
procedure Set_Guard_Sensitivity_List (Guard : Iir; List : Iir_List);
-- Block_Configuration that applies to this block statement.
-- Field: Field6
function Get_Block_Block_Configuration (Block : Iir) return Iir;
procedure Set_Block_Block_Configuration (Block : Iir; Conf : Iir);
-- Field: Field7
function Get_Block_Header (Target : Iir) return Iir;
procedure Set_Block_Header (Target : Iir; Header : Iir);
-- Get/Set the block_configuration (there may be several
-- block_configuration through the use of prev_configuration singly linked
-- list) that apply to this generate statement.
-- Field: Field7
function Get_Generate_Block_Configuration (Target : Iir) return Iir;
procedure Set_Generate_Block_Configuration (Target : Iir; Conf : Iir);
-- Field: Field6
function Get_Generation_Scheme (Target : Iir) return Iir;
procedure Set_Generation_Scheme (Target : Iir; Scheme : Iir);
-- Condition of a conditionam_waveform, if_statement, elsif,
-- while_loop_statement, next_statement or exit_statement.
-- Field: Field1
function Get_Condition (Target : Iir) return Iir;
procedure Set_Condition (Target : Iir; Condition : Iir);
-- Field: Field6
function Get_Else_Clause (Target : Iir) return Iir_Elsif;
procedure Set_Else_Clause (Target : Iir; Clause : Iir_Elsif);
-- Iterator of a for_loop_statement.
-- Field: Field1
function Get_Iterator_Scheme (Target : Iir) return Iir;
procedure Set_Iterator_Scheme (Target : Iir; Iterator : Iir);
-- Get/Set the statement in which TARGET appears. This is used to check
-- if next/exit is in a loop.
-- Field: Field0
function Get_Parent (Target : Iir) return Iir;
procedure Set_Parent (Target : Iir; Parent : Iir);
-- Loop label for an exit_statement or next_statement.
-- Field: Field5
function Get_Loop (Target : Iir) return Iir;
procedure Set_Loop (Target : Iir; Stmt : Iir);
-- Component name for a component_configuration or
-- a configuration_specification.
-- Field: Field4
function Get_Component_Name (Target : Iir) return Iir;
procedure Set_Component_Name (Target : Iir; Name : Iir);
-- Field: Field1 (uc)
function Get_Instantiation_List (Target : Iir) return Iir_List;
procedure Set_Instantiation_List (Target : Iir; List : Iir_List);
-- Field: Field3
function Get_Entity_Aspect (Target : Iir_Binding_Indication) return Iir;
procedure Set_Entity_Aspect (Target : Iir_Binding_Indication; Entity : Iir);
-- Field: Field1
function Get_Default_Entity_Aspect (Target : Iir) return Iir;
procedure Set_Default_Entity_Aspect (Target : Iir; Aspect : Iir);
-- Field: Field6
function Get_Default_Generic_Map_Aspect_Chain (Target : Iir) return Iir;
procedure Set_Default_Generic_Map_Aspect_Chain (Target : Iir; Chain : Iir);
-- Field: Field7
function Get_Default_Port_Map_Aspect_Chain (Target : Iir) return Iir;
procedure Set_Default_Port_Map_Aspect_Chain (Target : Iir; Chain : Iir);
-- Field: Field3
function Get_Binding_Indication (Target : Iir) return Iir;
procedure Set_Binding_Indication (Target : Iir; Binding : Iir);
-- The named entity designated by a name.
-- Field: Field4
function Get_Named_Entity (Target : Iir) return Iir;
procedure Set_Named_Entity (Target : Iir; Val : Iir);
-- Expression staticness, defined by rules of LRM 7.4
-- Field: State1 (pos)
function Get_Expr_Staticness (Target : Iir) return Iir_Staticness;
procedure Set_Expr_Staticness (Target : Iir; Static : Iir_Staticness);
-- Node which couldn't be correctly analyzed.
-- Field: Field2
function Get_Error_Origin (Target : Iir) return Iir;
procedure Set_Error_Origin (Target : Iir; Origin : Iir);
-- Operand of a monadic operator.
-- Field: Field2
function Get_Operand (Target : Iir) return Iir;
procedure Set_Operand (Target : Iir; An_Iir : Iir);
-- Left operand of a dyadic operator.
-- Field: Field2
function Get_Left (Target : Iir) return Iir;
procedure Set_Left (Target : Iir; An_Iir : Iir);
-- Right operand of a dyadic operator.
-- Field: Field4
function Get_Right (Target : Iir) return Iir;
procedure Set_Right (Target : Iir; An_Iir : Iir);
-- Field: Field3
function Get_Unit_Name (Target : Iir) return Iir;
procedure Set_Unit_Name (Target : Iir; Name : Iir);
-- Field: Field4
function Get_Name (Target : Iir) return Iir;
procedure Set_Name (Target : Iir; Name : Iir);
-- Field: Field5
function Get_Group_Template_Name (Target : Iir) return Iir;
procedure Set_Group_Template_Name (Target : Iir; Name : Iir);
-- Staticness of a name, according to rules of LRM 6.1
-- Field: State2 (pos)
function Get_Name_Staticness (Target : Iir) return Iir_Staticness;
procedure Set_Name_Staticness (Target : Iir; Static : Iir_Staticness);
-- Prefix of a name.
-- Field: Field3
function Get_Prefix (Target : Iir) return Iir;
procedure Set_Prefix (Target : Iir; Prefix : Iir);
-- Suffix of a slice or attribute.
-- Field: Field2
function Get_Suffix (Target : Iir) return Iir;
procedure Set_Suffix (Target : Iir; Suffix : Iir);
-- Set the designated index subtype of an array attribute.
-- Field: Field2
function Get_Index_Subtype (Attr : Iir) return Iir;
procedure Set_Index_Subtype (Attr : Iir; St : Iir);
-- Parameter of an attribute.
-- Field: Field4
function Get_Parameter (Target : Iir) return Iir;
procedure Set_Parameter (Target : Iir; Param : Iir);
-- Type of the actual for an association by individual.
-- Unless the formal is an unconstrained array type, this is the same as
-- the formal type.
-- Field: Field3
function Get_Actual_Type (Target : Iir) return Iir;
procedure Set_Actual_Type (Target : Iir; Atype : Iir);
-- List of individual associations for association_element_by_individual.
-- Associations for parenthesis_name.
-- Field: Field2
function Get_Association_Chain (Target : Iir) return Iir;
procedure Set_Association_Chain (Target : Iir; Chain : Iir);
-- List of individual associations for association_element_by_individual.
-- Field: Field4
function Get_Individual_Association_Chain (Target : Iir) return Iir;
procedure Set_Individual_Association_Chain (Target : Iir; Chain : Iir);
-- Get/Set info for the aggregate.
-- There is one aggregate_info for for each dimension.
-- Field: Field2
function Get_Aggregate_Info (Target : Iir) return Iir_Aggregate_Info;
procedure Set_Aggregate_Info (Target : Iir; Info : Iir_Aggregate_Info);
-- Get/Set the info node for the next dimension.
-- Field: Field1
function Get_Sub_Aggregate_Info (Target : Iir) return Iir_Aggregate_Info;
procedure Set_Sub_Aggregate_Info (Target : Iir; Info : Iir_Aggregate_Info);
-- TRUE when the length of the aggregate is not locally static.
-- Field: Flag3
function Get_Aggr_Dynamic_Flag (Target : Iir) return Boolean;
procedure Set_Aggr_Dynamic_Flag (Target : Iir; Val : Boolean);
-- Get/Set the maximum number of elements for the lowest dimension of
-- the aggregate or for the current dimension of a sub-aggregate.
-- The real number of elements may be greater than this number if there
-- is an 'other' choice.
-- Field: Field4 (uc)
function Get_Aggr_Max_Length (Info : Iir_Aggregate_Info) return Iir_Int32;
procedure Set_Aggr_Max_Length (Info : Iir_Aggregate_Info; Nbr : Iir_Int32);
-- Highest index choice, if any.
-- Field: Field2
function Get_Aggr_Low_Limit (Target : Iir_Aggregate_Info) return Iir;
procedure Set_Aggr_Low_Limit (Target : Iir_Aggregate_Info; Limit : Iir);
-- Highest index choice, if any.
-- Field: Field3
function Get_Aggr_High_Limit (Target : Iir_Aggregate_Info) return Iir;
procedure Set_Aggr_High_Limit (Target : Iir_Aggregate_Info; Limit : Iir);
-- True if the aggregate has an 'others' choice.
-- Field: Flag2
function Get_Aggr_Others_Flag (Target : Iir_Aggregate_Info) return Boolean;
procedure Set_Aggr_Others_Flag (Target : Iir_Aggregate_Info; Val : Boolean);
-- True if the aggregate have named associations.
-- Field: Flag4
function Get_Aggr_Named_Flag (Target : Iir_Aggregate_Info) return Boolean;
procedure Set_Aggr_Named_Flag (Target : Iir_Aggregate_Info; Val : Boolean);
-- Staticness of the expressions in an aggregate.
-- We can't use expr_staticness for this purpose, since the staticness
-- of an aggregate is at most globally.
-- Field: State2 (pos)
function Get_Value_Staticness (Target : Iir) return Iir_Staticness;
procedure Set_Value_Staticness (Target : Iir; Staticness : Iir_Staticness);
-- Chain of choices.
-- Field: Field4
function Get_Association_Choices_Chain (Target : Iir) return Iir;
procedure Set_Association_Choices_Chain (Target : Iir; Chain : Iir);
-- Chain of choices.
-- Field: Field1
function Get_Case_Statement_Alternative_Chain (Target : Iir) return Iir;
procedure Set_Case_Statement_Alternative_Chain (Target : Iir; Chain : Iir);
-- Staticness of the choice.
-- Field: State2 (pos)
function Get_Choice_Staticness (Target : Iir) return Iir_Staticness;
procedure Set_Choice_Staticness (Target : Iir; Staticness : Iir_Staticness);
-- Field: Field1
function Get_Procedure_Call (Stmt : Iir) return Iir;
procedure Set_Procedure_Call (Stmt : Iir; Call : Iir);
-- Subprogram to be called by a procedure, function call or operator.
-- Field: Field3
function Get_Implementation (Target : Iir) return Iir;
procedure Set_Implementation (Target : Iir; Decl : Iir);
-- Paramater associations for procedure and function call.
-- Field: Field2
function Get_Parameter_Association_Chain (Target : Iir) return Iir;
procedure Set_Parameter_Association_Chain (Target : Iir; Chain : Iir);
-- Object of a method call. NULL_IIR if the subprogram is not a method.
-- Field: Field4
function Get_Method_Object (Target : Iir) return Iir;
procedure Set_Method_Object (Target : Iir; Object : Iir);
-- The type_mark that appeared in the subtype indication.
-- May be null_iir if there is no type mark (as in an iterator).
-- May differ from base_type, if the type_mark is a subtype_name.
-- Field: Field2
function Get_Type_Mark (Target : Iir) return Iir;
procedure Set_Type_Mark (Target : Iir; Mark : Iir);
-- Get/set the lexical layout of an interface.
-- Field: Odigit2 (pos)
function Get_Lexical_Layout (Decl : Iir) return Iir_Lexical_Layout_Type;
procedure Set_Lexical_Layout (Decl : Iir; Lay : Iir_Lexical_Layout_Type);
-- List of use (designated type of access types) of an incomplete type
-- definition. The purpose is to complete the uses with the full type
-- definition.
-- Field: Field2 (uc)
function Get_Incomplete_Type_List (Target : Iir) return Iir_List;
procedure Set_Incomplete_Type_List (Target : Iir; List : Iir_List);
-- This flag is set on a signal_declaration, when a disconnection
-- specification applies to the signal (or a subelement of it).
-- This is used to check 'others' and 'all' designators.
-- Field: Flag1
function Get_Has_Disconnect_Flag (Target : Iir) return Boolean;
procedure Set_Has_Disconnect_Flag (Target : Iir; Val : Boolean);
-- This flag is set on a signal when its activity is read by the user.
-- Some signals handling can be optimized when this flag is set.
-- Field: Flag2
function Get_Has_Active_Flag (Target : Iir) return Boolean;
procedure Set_Has_Active_Flag (Target : Iir; Val : Boolean);
-- This flag is set is code being analyzed is textually within TARGET.
-- This is used for selected by name rule.
-- Field: Flag5
function Get_Is_Within_Flag (Target : Iir) return Boolean;
procedure Set_Is_Within_Flag (Target : Iir; Val : Boolean);
-- List of type_mark for an Iir_Kind_Signature
-- Field: Field2 (uc)
function Get_Type_Marks_List (Target : Iir) return Iir_List;
procedure Set_Type_Marks_List (Target : Iir; List : Iir_List);
-- Field: Field5
function Get_Signature (Target : Iir) return Iir;
procedure Set_Signature (Target : Iir; Value : Iir);
-- Field: Field1 (uc)
function Get_Overload_List (Target : Iir) return Iir_List;
procedure Set_Overload_List (Target : Iir; List : Iir_List);
-- Identifier of the simple_name attribute.
-- Field: Field2 (uc)
function Get_Simple_Name_Identifier (Target : Iir) return Name_Id;
procedure Set_Simple_Name_Identifier (Target : Iir; Ident : Name_Id);
-- Body of a protected type declaration.
-- Field: Field2
function Get_Protected_Type_Body (Target : Iir) return Iir;
procedure Set_Protected_Type_Body (Target : Iir; Bod : Iir);
-- Corresponsing protected type declaration of a protected type body.
-- Field: Field4
function Get_Protected_Type_Declaration (Target : Iir) return Iir;
procedure Set_Protected_Type_Declaration (Target : Iir; Decl : Iir);
-- Location of the 'end' token.
-- Field: Field6 (uc)
function Get_End_Location (Target : Iir) return Location_Type;
procedure Set_End_Location (Target : Iir; Loc : Location_Type);
-- For a string literal: the string identifier.
-- Field: Field3 (uc)
function Get_String_Id (Lit : Iir) return String_Id;
procedure Set_String_Id (Lit : Iir; Id : String_Id);
-- For a string literal: the string length.
-- Field: Field0 (uc)
function Get_String_Length (Lit : Iir) return Int32;
procedure Set_String_Length (Lit : Iir; Len : Int32);
-- For a declaration: true if the declaration is used somewhere.
-- Field: Flag6
function Get_Use_Flag (Decl : Iir) return Boolean;
procedure Set_Use_Flag (Decl : Iir; Val : Boolean);
end Iirs;
|