summary refs log tree commit diff stats
path: root/compiler/semfold.nim
Commit message (Collapse)AuthorAgeFilesLines
* bugfix: 'T = ref T' is an illegal recursive typeAraq2014-10-021-0/+1
|
* Nimrod renamed to NimAraq2014-08-281-1/+1
|
* renamefestAraq2014-08-231-2/+2
|
* fixes constant array indexing bugAraq2014-06-301-6/+7
|
* attempt to fix the bootstrappingAraq2014-05-061-3/+1
|
* minor tweaks; updated todo.txtAraq2014-04-251-0/+1
|
* Fix spawn ICE on invalid argument.EXetoC2014-04-201-1/+1
|
* fixes yet another option typeAraq2014-04-031-6/+12
|
* vm2: new representation of registersAraq2014-02-211-1/+1
|
* implements #766;Zahary Karadjov2014-01-241-2/+1
| | | | | | expressions such as Type.field are now recognised by the compiler. This also fixes a bug, preventing the user-defined to check for the presence of regular fields in addition to procs
* 'nil' as a statement is deprecated, use an empty 'discard' insteadAraq2014-01-191-2/+2
|
* Merge branch 'upstream' into develZahary Karadjov2013-12-291-4/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: compiler/ccgutils.nim compiler/msgs.nim compiler/sem.nim compiler/semexprs.nim compiler/seminst.nim compiler/semmagic.nim compiler/semstmts.nim compiler/semtypes.nim compiler/semtypinst.nim compiler/sigmatch.nim compiler/types.nim compiler/vmgen.nim lib/core/macros.nim lib/system.nim tests/reject/tenummix.nim web/news.txt
| * make more tests greenZahary Karadjov2013-12-291-2/+3
| |
| * static params: expr[T] is now static[T]Zahary Karadjov2013-12-191-1/+1
| | | | | | | | | | | | | | This introduces tyStatic and successfully bootstraps and handles few simple test cases. Static params within macros are no longer treated as PNimrodNodes - they are now equivalent to constants of the designated type.
* | case consistency part 4Araq2013-12-271-29/+29
| |
* | more tests are greenAraq2013-12-081-8/+38
|/
* Merge branch 'master' of github.com:Araq/NimrodAraq2013-08-301-4/+12
|\
| * Experimental support for delayed instantiation of genericsZahary Karadjov2013-08-231-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This postpones the semantic pass over the generic's body until the generic is instantiated. There are several pros and cons for this method and the capabilities that it enables may still be possible in the old framework if we teach it a few new trick. Such an attempt will follow in the next commits. pros: 1) It allows macros to be expanded during generic instantiation that will provide the body of the generic. See ``tmacrogenerics``. 2) The instantiation code is dramatically simplified. Dealing with unknown types in the generic's body pre-pass requires a lot of hacky code and error silencing in semTypeNode. See ``tgenericshardcases``. cons: 1) There is a performance penalty of roughly 5% when bootstrapping. 2) Certain errors that used to be detected in the previous pre-pass won't be detected with the new scheme until instantiation.
* | float64 is now an alias to 'float'; fixes #545Araq2013-08-301-2/+5
|/
* new VM: implemented constructors and jump optimizerAraq2013-08-071-1/+1
|
* bugfix: gensymAraq2013-07-251-1/+1
|
* fixes #544Araq2013-07-241-0/+4
|
* fixes #432, fixes #427Araq2013-05-191-1/+8
|
* first steps to the expr/stmt unificationAraq2013-04-301-4/+3
|
* fixes #287; bugfix: subrange checking is performed againAraq2013-04-121-6/+13
|
* Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-161-0/+0
|
* bugfix: 'indexOf' for tuple fields worksAraq2013-03-111-2/+9
|
* first steps to implement object construction expressionsAraq2013-03-071-4/+11
|
* make some tests greenAraq2013-03-031-4/+6
|
* the `is` operator now works with type classes and type variablesZahary Karadjov2012-10-031-11/+0
| | | | | bugfixes: the DLL tests were failing on Mac OS X, due to an incorrect DynlibFormat
* term rewriting macros fully implemented; still buggyAraq2012-09-031-2/+10
|
* next steps for tyVarargs/tyOpenArray splitAraq2012-08-141-2/+2
|
* got rid of some mAddU64 etc. magicsAraq2012-07-201-10/+10
|
* equality and hashing for closuresAraq2012-07-171-3/+9
|
* improved unsigned supportAraq2012-07-141-3/+5
|
* more fixes for new integer promotion rules; fixes #152; fixes #157; fixes ↵Araq2012-07-091-1/+4
| | | | #156; fixes #155
* 'addSon' for types deprecated for 'int literal type' analysisAraq2012-07-091-2/+2
|
* changed integer promotion rules; breaks bootstrapping and lots of codeAraq2012-07-081-5/+156
|
* added devel/logging; weakrefs test; next steps for proper unsigned supportAraq2012-07-051-2/+3
|
* changed integer promotion rules; added math.fmodAraq2012-06-281-1/+1
|
* better support for unsigned integers.Zahary Karadjov2012-06-111-6/+6
|
* Added system.staticExec proc for executing external command at compile-timeZahary Karadjov2012-06-021-1/+1
|
* the foundations of a type traits module; better error messages for expr, ↵Zahary Karadjov2012-04-061-1/+1
| | | | typedesc and typeclasses params
* bugfix: semfold supports merging of '&'Araq2012-02-191-0/+10
|
* year 2012 for most copyright headersAraq2012-01-021-1/+1
|
* alias analysis as required for the code gen and the HLOAraq2011-12-081-1/+1
|
* 'assert' is now implemented without compiler magicAraq2011-12-041-0/+4
|
* Merge branch 'master' of github.com:Araq/NimrodAraq2011-11-261-2/+4
|\
| * New algorithm for locating and loading nimrod config files.Zahary Karadjov2011-11-251-2/+4
| | | | | | | | Some new options added to the compiler (see news.txt for details)
* | fixed bug that kept tls emulation from workingAraq2011-11-251-3/+3
|/
5dec1757e6013cbeb5d6baf9d9579cf025361'>5e15dec17 ^
e25474154 ^
5e15dec17 ^

b9e7f30dd ^
e68830a95 ^
92b8fac94 ^
e68830a95 ^
5e15dec17 ^




e25474154 ^
5e15dec17 ^
da190876d ^
5e15dec17 ^
b9079b871 ^
5e15dec17 ^


9a6f47ae6 ^

5e15dec17 ^
bba551fd1 ^
5e15dec17 ^



6a94ca318 ^







569fbe8c3 ^
6a94ca318 ^



5e15dec17 ^
10e23e915 ^
5e15dec17 ^




6df259f15 ^








6a94ca318 ^






3e056afb1 ^




6df259f15 ^
da190876d ^

4f8d982d5 ^


















5e15dec17 ^

5e15dec17 ^
bba551fd1 ^
886a1ab15 ^
22fb9db84 ^

886a1ab15 ^
bba551fd1 ^
886a1ab15 ^

862c0ef83 ^
886a1ab15 ^
bba551fd1 ^
886a1ab15 ^
bba551fd1 ^
886a1ab15 ^
bba551fd1 ^
f838c1baa ^
569fbe8c3 ^

886a1ab15 ^



92b8fac94 ^
886a1ab15 ^



569fbe8c3 ^
886a1ab15 ^



5e15dec17 ^





da190876d ^
a85b57971 ^

5e15dec17 ^
569fbe8c3 ^
5e15dec17 ^



886a1ab15 ^
a296f091e ^
5e15dec17 ^
a296f091e ^
1786e3099 ^
a296f091e ^





5e15dec17 ^

b9079b871 ^

9b9a18094 ^

92b8fac94 ^
9b9a18094 ^






1d14cb1ad ^
bf057f0d2 ^





ba4dd92f4 ^











fe30ec83e ^
5e15dec17 ^
fe30ec83e ^
5e15dec17 ^

6df259f15 ^
92b8fac94 ^
5e15dec17 ^

da190876d ^
5e15dec17 ^
569fbe8c3 ^
92b8fac94 ^
b5b5e6e76 ^
92b8fac94 ^
886a1ab15 ^
6bcdb9c8f ^


5e15dec17 ^

569fbe8c3 ^
886a1ab15 ^

e68830a95 ^
5e15dec17 ^
51e01879b ^
5e15dec17 ^
258aabba6 ^

5e15dec17 ^
6df259f15 ^
9b9a18094 ^











5e15dec17 ^
bba551fd1 ^
5e15dec17 ^




bba551fd1 ^
5e15dec17 ^


bba551fd1 ^
5e15dec17 ^


bba551fd1 ^
5e15dec17 ^













569fbe8c3 ^
5e15dec17 ^


bba551fd1 ^
5e15dec17 ^

bba551fd1 ^
5e15dec17 ^


bba551fd1 ^
5e15dec17 ^

9b9a18094 ^

b9079b871 ^



5e15dec17 ^
bba551fd1 ^
5e15dec17 ^
bba551fd1 ^
92b8fac94 ^
5e15dec17 ^



bba551fd1 ^

5e15dec17 ^
bba551fd1 ^
92b8fac94 ^
5e15dec17 ^



bba551fd1 ^
92b8fac94 ^
5e15dec17 ^
bba551fd1 ^
5e15dec17 ^



bba551fd1 ^
5e15dec17 ^





c1627354d ^
5e15dec17 ^





886a1ab15 ^

3e056afb1 ^

dc956c485 ^
d65101268 ^


ba4dd92f4 ^
8ef66b973 ^
ba4dd92f4 ^







8ef66b973 ^








ba4dd92f4 ^
8ef66b973 ^
ba4dd92f4 ^
8ef66b973 ^

ba4dd92f4 ^








8ef66b973 ^
ba4dd92f4 ^





6a94ca318 ^
e68830a95 ^
ba4dd92f4 ^















bf057f0d2 ^
da190876d ^
fe30ec83e ^
da190876d ^
fe30ec83e ^
da190876d ^

92b8fac94 ^
da190876d ^


92b8fac94 ^
b5b5e6e76 ^
da190876d ^




2df9b442c ^
da190876d ^
c95f6f117 ^
da190876d ^

92b8fac94 ^

b5b5e6e76 ^
da190876d ^


bba551fd1 ^
bba551fd1 ^
5131b3cea ^
e6e0527fd ^
5131b3cea ^
e25474154 ^
5131b3cea ^
e25474154 ^
569fbe8c3 ^
5131b3cea ^
f767e1749 ^
e25474154 ^
9a6f47ae6 ^
5e15dec17 ^
e5bd3b5b9 ^

6bcdb9c8f ^

bba551fd1 ^
6bcdb9c8f ^

bba551fd1 ^
6bcdb9c8f ^

60b187513 ^
6bcdb9c8f ^
438703f59 ^
b9079b871 ^

f2cdbc92e ^
b9079b871 ^
60b187513 ^


6bcdb9c8f ^





e25474154 ^


6bcdb9c8f ^





60b187513 ^
1d14cb1ad ^

5e15dec17 ^

258aabba6 ^
6df259f15 ^
5e15dec17 ^

da190876d ^



34ab1d3e3 ^
fe30ec83e ^
9a6f47ae6 ^
e25474154 ^


bba551fd1 ^
92b8fac94 ^

c45b714df ^
3d1c6de63 ^
c45b714df ^
92b8fac94 ^
b64eeeb43 ^

6975ba401 ^
af7c92c00 ^
39ebe2175 ^
60b187513 ^
bba551fd1 ^
46e9ff613 ^





569fbe8c3 ^
46e9ff613 ^


bba551fd1 ^
af7c92c00 ^
355ae07b8 ^
af7c92c00 ^

46e9ff613 ^
92b8fac94 ^
af7c92c00 ^

f6f5c9e9e ^
af7c92c00 ^
2df9b442c ^
355ae07b8 ^

bba551fd1 ^
af7c92c00 ^
92b8fac94 ^
af7c92c00 ^
46e9ff613 ^
af7c92c00 ^


bba551fd1 ^
bf698fbc2 ^




af7c92c00 ^


92b8fac94 ^
af7c92c00 ^


4d01408a4 ^
af7c92c00 ^
bba551fd1 ^
b64eeeb43 ^

af7c92c00 ^
b64eeeb43 ^
af7c92c00 ^

b64eeeb43 ^








bf698fbc2 ^





af7c92c00 ^
92b8fac94 ^
af7c92c00 ^
4d01408a4 ^
92b8fac94 ^
af7c92c00 ^
f6f5c9e9e ^
bba551fd1 ^
af7c92c00 ^



92b449562 ^
af7c92c00 ^










bba551fd1 ^
af7c92c00 ^






bba551fd1 ^
af7c92c00 ^


c95f6f117 ^
af7c92c00 ^
bba551fd1 ^
af7c92c00 ^
92b8fac94 ^
af7c92c00 ^
92b8fac94 ^
af7c92c00 ^
355ae07b8 ^

af7c92c00 ^

4d01408a4 ^
af7c92c00 ^


1d14cb1ad ^
9a6f47ae6 ^
1786e3099 ^

258aabba6 ^
6df259f15 ^
1786e3099 ^

af7c92c00 ^




83a0a3127 ^
9a6f47ae6 ^
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