summary refs log tree commit diff stats
path: root/compiler/pipelines.nim
Commit message (Collapse)AuthorAgeFilesLines
* remove nir; succeeded by nif (#23809)ringabout2024-07-091-13/+0
| | | ref https://github.com/nim-lang/nif
* fixes addr/hiddenAddr in strictdefs (#23477)ringabout2024-04-101-1/+1
|
* compute checksum of nim files early in the pipelines (#23268)ringabout2024-01-311-2/+7
| | | | related https://github.com/nim-lang/Nim/issues/21717 configs will be resolved later
* type refactoring: part 2 (#23059)Andreas Rumpf2023-12-131-1/+1
|
* rework the vtable implementation embedding the vtable array directly with ↵ringabout2023-11-281-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | new strictions on methods (#22991) **TODO** - [x] fixes changelog With the new option `nimPreviewVtables`, `methods` are confined in the same module where the type of the first parameter is defined - [x] make it opt in after CI checks its feasibility ## In the following-up PRs - [ ] in the following PRs, refactor code into a more efficient one - [ ] cpp needs special treatments since it cannot embed array in light of the preceding limits: ref https://github.com/nim-lang/Nim/pull/20977#discussion_r1035528927; we can support cpp backends with vtable implementations later on the comprise that uses indirect vtable access --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* progress: 'm' command line switch (#22976)Andreas Rumpf2023-11-221-2/+5
|
* IC: progress and refactorings (#22961)Andreas Rumpf2023-11-201-2/+6
|
* so close... (#22885)Andreas Rumpf2023-10-311-1/+2
|
* NIR: store sizes, alignments and offsets in the type graph; beginning… ↵Andreas Rumpf2023-10-161-0/+6
| | | | | (#22822) …s of a patent-pending new VM
* NIR: Nim intermediate representation (#22777)Andreas Rumpf2023-10-111-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Theoretical Benefits / Plans: - Typed assembler-like language. - Allows for a CPS transformation. - Can replace the existing C backend by a new C backend. - Can replace the VM. - Can do more effective "not nil" checking and static array bounds checking. - Can be used instead of the DFA. - Easily translatable to LLVM. - Reasonably easy to produce native code from. - Tiny memory consumption. No pointers, no cry. **In very early stages of development.** Todo: - [x] Map Nim types to IR types. - [ ] Map Nim AST to IR instructions: - [x] Map bitsets to bitops. - [ ] Implement string cases. - [ ] Implement range and index checks. - [x] Implement `default(T)` builtin. - [x] Implement multi string concat. - [ ] Write some analysis passes. - [ ] Write a backend. - [x] Integrate into the compilation pipeline.
* replaces `doAssert false` with `raiseAssert` for unreachable branches, which ↵ringabout2023-08-101-5/+3
| | | | | works better with strictdefs (#22436) replaces `doAssert false` with `raiseAssert`, which works better with strictdefs
* use strictdefs for compiler (#22365)ringabout2023-08-061-2/+9
| | | | | | | | | | | | | | | * wip; use strictdefs for compiler * checkpoint * complete the chores * more fixes * first phase cleanup * Update compiler/bitsets.nim * cleanup
* fixes #21617; createTypeBoundOps with PContext in order to instantiate ↵ringabout2023-04-071-2/+12
| | | | | | | generics (#21619) * fixes #21617; createTypeBoundOps with PContext in order to instantiate generics * keep idgen
* tuple unpacking for vars as just sugar, allowing nesting (#21563)metagn2023-03-281-1/+1
| | | | | | | | | | | | | | | | | | | * tuple unpacking for vars as just sugar, allowing nesting * set temp symbol AST * hopeful fix some issues, add test for #19364 * always use temp for consts * document, fix small issue * fix manual indentation * actually fix manual * use helper proc * don't resem temp tuple assignment
* add a prepass for codeReordering (#21513)ringabout2023-03-171-2/+32
| | | | | | | * add a prepass for codeReordering * simplify * fixes
* replaces implicit passes array registed at runtime with explicit function ↵ringabout2023-03-031-0/+254
calls; simplify compilation pipeline (#21444) * abolish using passes in the compiler; simplify compilation pipeline * duplicate code * Really cool to have the same signature... * haul * unify other backends * refactor process * introduce PipelinePhase * refactor compiler * fixes passes * fixes nimsuggest * add a sentinel * enable docs checkj * activate doc testing * clean up * complete cleanups
m <vc@akkartik.com> 2016-07-01 22:39:45 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2016-07-01 22:39:45 -0700 3084' href='/akkartik/mu/commit/073deep_copy.cc?h=main&id=703a73722cd3e2843bb7e2e11f2881c84f20cac0'>703a7372 ^
7a84094a ^
760f683f ^
703a7372 ^


760f683f ^
703a7372 ^


d52406cc ^
760f683f ^
d52406cc ^
7a84094a ^
703a7372 ^


7168d570 ^
703a7372 ^

7168d570 ^


7a84094a ^
760f683f ^
7168d570 ^


760f683f ^
7168d570 ^


d52406cc ^
760f683f ^
d52406cc ^
7a84094a ^
7168d570 ^








7a84094a ^
7168d570 ^


760f683f ^
7168d570 ^


760f683f ^
7168d570 ^



d52406cc ^

760f683f ^
d52406cc ^
7a84094a ^
7168d570 ^





703a7372 ^
1331848b ^






8d72e565 ^
1331848b ^

234ec878 ^
8d72e565 ^
234ec878 ^


8d72e565 ^
234ec878 ^

1331848b ^




3be3006c ^
be6b2492 ^
3be3006c ^
067c8ed6 ^
3be3006c ^

be6b2492 ^
93d4cc93 ^
3be3006c ^
1331848b ^



26965dd6 ^





1331848b ^

1331848b ^
3be3006c ^
1331848b ^
703a7372 ^
1331848b ^



be6b2492 ^
26965dd6 ^

be6b2492 ^
26965dd6 ^




e8418eb7 ^
26965dd6 ^
037b84d2 ^
3be3006c ^

07a7eeff ^
26965dd6 ^
f9deca54 ^
f9deca54 ^



067c8ed6 ^
1bdb79d0 ^

1cd2691b ^
f9deca54 ^
1331848b ^


f9deca54 ^
703a7372 ^
1331848b ^
703a7372 ^

f9deca54 ^
703a7372 ^

6c96a437 ^
703a7372 ^
6c96a437 ^
703a7372 ^


93d4cc93 ^



703a7372 ^




558bf3d3 ^
1331848b ^
14ef9404 ^
26965dd6 ^





14ef9404 ^



760f683f ^
14ef9404 ^

760f683f ^
14ef9404 ^

760f683f ^

14ef9404 ^


760f683f ^
14ef9404 ^
760f683f ^
830c0371 ^
760f683f ^
830c0371 ^


760f683f ^


7a84094a ^
14ef9404 ^




760f683f ^
14ef9404 ^

760f683f ^
14ef9404 ^

760f683f ^

14ef9404 ^

7a84094a ^
760f683f ^
14ef9404 ^


760f683f ^
14ef9404 ^
760f683f ^
830c0371 ^
760f683f ^
830c0371 ^
760f683f ^
830c0371 ^


760f683f ^



7a84094a ^
14ef9404 ^

26965dd6 ^


7a84094a ^
760f683f ^
26965dd6 ^


760f683f ^
26965dd6 ^

760f683f ^
7a84094a ^
760f683f ^
26965dd6 ^
d52406cc ^

26965dd6 ^





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