Commit 924e8c4
authored
Implement rewrite validator (#55)
* Misc refactors, insert internal stmt debuginfo
* Add slotnames info
* Refactor naming of locals for ODE codegen
* Add comment
* Apply DebugInfo at top-level
* Remove `insert_ssa_debuginfo` setting
* Marshall settings everywhere
* Add maybe_insert_debuginfo
* Disable crashing tests
* Propagate source information for `insert_node_here!(...)`
* Add source provenance to DAE/Init codegen
* Use `__SOURCE__` macro for `replace_call!`
* Update `replace_call!` with source information in index_lowering.jl
* Default `insert_stmt_debuginfo` to `false` for reflection tools
* Remove accidental code inclusion
* Don't seek previous codeloc
* Remove unused code
* Reenable IPO tests
* [DO NOT MERGE] Temporarily dev ConstructionBase for CI
* Work around `invokelatest` issue
* Only wrap `string` call in `try`/`catch`
* Add `insert_ssa_debuginfo` setting
* Minor fix
* Refactor `insert_node_here` macro
* Use insert_instruction! in more places
* Rename `insert_node_here` macro to `insert_instruction`
* `insert_instruction` -> `insert_instruction_here`
Not to confuse it with the nonlocal insertion
* Fixes
* Undev ConstructionBase (and update)
* [WIP] Add unoptimized compilation path
* Use UnoptimizedKey singleton for caching unoptimized RHS
* Refactor settings construction for DAE/ODE problems
* Write `expand_residuals`
* Use :call form for macrocall
* Use :call for added macrocalls
* Fix introduced codegen bug
* [WIP] Add basic infrastructure for testing
* Reconstruct variables from states
* Separate optimized and unoptimized structural caches
* Add incidence-copying constructor for TransformationState
* Minor refactor `rhs_ir_finish!`
* Skip flattening in unoptimized context, WIP on IPO support
* Correctly compute state/equation indices for IPO
This includes a refactor that considers mapping to states,
instead of individual mappings into u/du vectors
* Adjust residual sign based on solved variable coefficient
* Rewrite and support flattening, improve external equation support
* Fix flattening bug
* Fix another flattening bug
* Rename testing function
* Support type constructors for IPO
* Split benchmark definition and test
* Remove process_template!
* Fix handling of functors, replace flatten_parameter!
* Fix bug in residual expansion
* Mark `apply_linear_incidence` as mutating
* Correctly handle nonlinear replacements
* Add (broken) validation test for thermalfluid benchmark
* Wrap test files in modules
* Remove unnecessary import
* Remove temp package from project
* Remove `refresh()` in tests1 parent 54c8ec0 commit 924e8c4
File tree
29 files changed
+1128
-302
lines changed- benchmark
- src
- analysis
- transform
- codegen
- tearing
- test
29 files changed
+1128
-302
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
282 | 280 | | |
283 | 281 | | |
284 | 282 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | | - | |
44 | 46 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
75 | 81 | | |
76 | 82 | | |
| 83 | + | |
77 | 84 | | |
78 | | - | |
| 85 | + | |
79 | 86 | | |
80 | 87 | | |
81 | 88 | | |
82 | 89 | | |
83 | 90 | | |
84 | 91 | | |
85 | 92 | | |
| 93 | + | |
86 | 94 | | |
87 | | - | |
| 95 | + | |
88 | 96 | | |
89 | 97 | | |
90 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
24 | 37 | | |
25 | 38 | | |
26 | 39 | | |
| |||
35 | 48 | | |
36 | 49 | | |
37 | 50 | | |
| 51 | + | |
38 | 52 | | |
39 | 53 | | |
40 | 54 | | |
| |||
44 | 58 | | |
45 | 59 | | |
46 | 60 | | |
| 61 | + | |
47 | 62 | | |
48 | 63 | | |
49 | 64 | | |
| |||
0 commit comments