Commit 1746d8c
PIL -> rust compiler (#1416)
This is a (yet unused) component that takes an `Analyzed` and a list of
names and turns these names into `fn(u64) -> u64` to be called directly.
Not all syntax is supported yet (and no built-in functions).
The first goal is not be able to compile all constant functions.
The benchmarks show that `sqrt` is roughly 10 times faster than the
evaluator.
---------
Co-authored-by: Gastón Zanitti <[email protected]>
Co-authored-by: Georg Wiese <[email protected]>1 parent fffb653 commit 1746d8c
File tree
8 files changed
+695
-16
lines changed- jit-compiler
- src
- tests
- pipeline
- benches
8 files changed
+695
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
0 commit comments