Commit 26337ce
Split MLIRGen.cpp: extract MLIRGenImpl into private header, move cast family to MLIRGenCast.cpp (review doc 1)
Mechanical first slice of the TU split: MLIRGenImpl moves from
MLIRGen.cpp's anonymous namespace into typescript::mlirgen in the
private header MLIRGenImpl.h (bodies still inline; later slices move
them out). MLIRGenCast.cpp is the first satellite TU with the 29
cast-family methods defined out-of-line.
Enabling fixes: GenContext/PassResult/ValueOrLogicalResult had internal
linkage (anonymous namespace in MLIRGenContext.h) and now live in
namespace typescript; ts::print(Node) in dump.h is now inline;
compileOptionsPtr stays TU-local behind setCompileOptions().
Verified: MLIRGenTests 12/12, ctest JIT 339/339, AOT 342/342.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent aaef434 commit 26337ce
7 files changed
Lines changed: 26839 additions & 26733 deletions
File tree
- docs
- tslang
- include/TypeScript/MLIRLogic
- lib/TypeScript
- ts-new-parser
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
216 | | - | |
| 218 | + | |
217 | 219 | | |
218 | 220 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
0 commit comments