Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mu.subx: spilling register for reg vars | Kartik Agaram | 2020-05-18 | 2 | -20/+22 |
| | |||||
* | mu.subx: size-of-deref | Kartik Agaram | 2020-05-18 | 1 | -8/+12 |
| | |||||
* | mu.subx: size-of | Kartik Agaram | 2020-05-18 | 1 | -6/+8 |
| | |||||
* | mu.subx: populate-mu-type-offsets | Kartik Agaram | 2020-05-18 | 1 | -19/+24 |
| | | | | | | | Also locate-typeinfo-entry-with-index, though I didn't need to change much there. But it did get me to notice that I'm returning `addr` from functions. Need to correct my paper. | ||||
* | - | Kartik Agaram | 2020-05-18 | 1 | -30/+0 |
| | |||||
* | mu.subx: compute-size-of-var | Kartik Agaram | 2020-05-18 | 1 | -6/+8 |
| | |||||
* | mu.subx: lookup-or-create-constant | Kartik Agaram | 2020-05-18 | 1 | -12/+12 |
| | |||||
* | mu.subx: new-block | Kartik Agaram | 2020-05-18 | 1 | -3/+13 |
| | |||||
* | mu.subx: find-in-function-outputs | Kartik Agaram | 2020-05-18 | 1 | -11/+27 |
| | |||||
* | mu.subx: fourth test passing | Kartik Agaram | 2020-05-18 | 1 | -16/+35 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our four tests are exercising the following 18 primitives at least a little bit: add-operation-and-inputs-to-stmt append-stmt-var lookup-var lookup-var-helper lookup-var-or-literal new-literal-integer new-reg-var-def new-var new-var-def new-var-from-slice next-mu-token parse-mu-stmt parse-mu-var-def parse-type parse-var-with-type pos-or-insert-slice pos-slice stmt-has-outputs? For comparison, here are the 34 primitives in mu.subx that we've made significant changes to since all tests passed: add-operation-and-inputs-to-stmt append-list append-stmt-var append-to-block convert-mu find-or-create-typeinfo find-or-create-typeinfo-fields find-or-create-typeinfo-output-var find-typeinfo lookup-or-define-var lookup-var lookup-var-helper lookup-var-or-literal new-block-name new-literal new-literal-integer new-reg-var-def new-var new-var-def new-var-from-slice next-mu-token parse-mu parse-mu-block parse-mu-named-block parse-mu-stmt parse-mu-var-def parse-type parse-type-tree parse-var-with-type populate-mu-function-body populate-mu-function-header pos-or-insert-slice pos-slice stmt-has-outputs? | ||||
* | mu.subx: third test passing | Kartik Agaram | 2020-05-18 | 1 | -24/+57 |
| | |||||
* | mu.subx: include missing arg | Kartik Agaram | 2020-05-18 | 1 | -2/+2 |
| | | | | It's not used in these tests, but still confusing. | ||||
* | mu.subx: lookup-or-define-var | Kartik Agaram | 2020-05-18 | 1 | -9/+9 |
| | |||||
* | mu.subx: second test passing | Kartik Agaram | 2020-05-18 | 1 | -1/+2 |
| | |||||
* | mu.subx: add-operation-and-inputs-to-stmt | Kartik Agaram | 2020-05-18 | 1 | -27/+46 |
| | | | | ..and append-stmt-var | ||||
* | mu.subx: lookup-var, lookup-var-or-literal | Kartik Agaram | 2020-05-18 | 1 | -20/+31 |
| | |||||
* | - | Kartik Agaram | 2020-05-18 | 1 | -18/+14 |
| | |||||
* | mu.subx: new-literal-integer | Kartik Agaram | 2020-05-18 | 1 | -30/+62 |
| | |||||
* | mu.subx: first passing test | Kartik Agaram | 2020-05-18 | 2 | -30/+40 |
| | | | | test-parse-mu-var now passing. After I had to extensively fix parse-type. | ||||
* | - | Kartik Agaram | 2020-05-18 | 1 | -2/+2 |
| | | | | Pass everything so far through translate_subx_debug, which has more error-checking. | ||||
* | mu.subx: new-reg-var-def | Kartik Agaram | 2020-05-18 | 1 | -14/+11 |
| | |||||
* | mu.subx: new-var-def | Kartik Agaram | 2020-05-18 | 1 | -8/+15 |
| | |||||
* | mu.subx: parse-mu-var-def tests | Kartik Agaram | 2020-05-18 | 1 | -2/+12 |
| | | | | Still no passing tests; we're just manually translating. | ||||
* | mu.subx: parse-mu-var-def | Kartik Agaram | 2020-05-18 | 1 | -11/+22 |
| | |||||
* | mu.subx: parse-mu-stmt | Kartik Agaram | 2020-05-18 | 1 | -14/+25 |
| | |||||
* | mu.subx: parse-mu-block and parse-mu-named-block | Kartik Agaram | 2020-05-18 | 1 | -28/+70 |
| | |||||
* | mu.subx: more progress on parse-mu-block | Kartik Agaram | 2020-05-18 | 1 | -4/+12 |
| | |||||
* | - | Kartik Agaram | 2020-05-18 | 1 | -60/+77 |
| | | | | | | | | Trying to switch gears a bit and scope out how much is left. Code-generation should be a lot less work since few signatures need to change. Hopefully getting to 55% down mu.subx will really be 90% of the way. In particular, there are 17 signature changes remaining that need to patch their calling functions as well. | ||||
* | - | Kartik Agaram | 2020-05-18 | 1 | -1/+1 |
| | |||||
* | mu.subx: mu-block-name | Kartik Agaram | 2020-05-18 | 1 | -29/+32 |
| | |||||
* | mu.subx: append-to-block | Kartik Agaram | 2020-05-18 | 1 | -3/+6 |
| | | | | | | | | I'm just cleaning up the final call to append-list, and it's internally consistent if `block` can be an `addr`. I don't know yet if that makes sense for callers. I think I also found a bug in append-to-block: it was clobbering eax. | ||||
* | mu.subx: append-list | Kartik Agaram | 2020-05-18 | 1 | -30/+52 |
| | | | | | populate-function-header _almost_ done. I think we just need to fix `push` next. | ||||
* | mu.subx: parse-var-with-type | Kartik Agaram | 2020-05-18 | 1 | -7/+2 |
| | |||||
* | mu.subx: parse-type-tree | Kartik Agaram | 2020-05-18 | 1 | -20/+31 |
| | |||||
* | mu.subx: parse-type | Kartik Agaram | 2020-05-18 | 2 | -33/+26 |
| | |||||
* | mu.subx: add-operation-and-inputs-to-stmt | Kartik Agaram | 2020-05-18 | 1 | -2/+2 |
| | |||||
* | mu.subx: pos-slice, pos-or-insert-slice | Kartik Agaram | 2020-05-18 | 1 | -4/+13 |
| | |||||
* | mu.subx: some calls to slice-to-string | Kartik Agaram | 2020-05-18 | 1 | -5/+5 |
| | |||||
* | - | Kartik Agaram | 2020-05-18 | 1 | -21/+21 |
| | |||||
* | mu.subx: partial parse-var-with-type | Kartik Agaram | 2020-05-18 | 1 | -6/+11 |
| | |||||
* | mu.subx: new-var, new-var-from-slice | Kartik Agaram | 2020-05-18 | 2 | -34/+56 |
| | |||||
* | mu.subx: size of 'vars' stack | Kartik Agaram | 2020-05-18 | 1 | -27/+27 |
| | |||||
* | mu.subx: parse-mu | Kartik Agaram | 2020-05-18 | 1 | -3/+14 |
| | |||||
* | - | Kartik Agaram | 2020-05-18 | 1 | -21/+9 |
| | |||||
* | - | Kartik Agaram | 2020-05-18 | 1 | -29/+28 |
| | |||||
* | mu.subx: new-var, typeinfo entries | Kartik Agaram | 2020-05-18 | 1 | -29/+76 |
| | |||||
* | - | Kartik Agaram | 2020-05-18 | 1 | -3/+3 |
| | |||||
* | - | Kartik Agaram | 2020-05-18 | 1 | -7/+9 |
| | |||||
* | mu.subx: find-or-create-typeinfo | Kartik Agaram | 2020-05-18 | 1 | -29/+65 |
| | |||||
* | mu.subx: offsets for type data structures | Kartik Agaram | 2020-05-18 | 1 | -8/+8 |
| |