Commit Graph
150 Commits
Author SHA1 Message Date
Sasha Koshka 9611e5ca72 Add match/union generator tests 2024-03-06 14:50:58 -05:00
Sasha Koshka c5e5b37e45 Generator supports assigning unions to unions 2024-03-06 14:49:49 -05:00
Sasha Koshka 2f251b8274 Generate phi node for default case in match switch 2024-03-06 13:09:20 -05:00
Sasha Koshka 7154f5d333 Generate assignment to unions 2024-03-06 13:09:03 -05:00
Sasha Koshka 9e6aebf518 Generate match statements 2024-03-06 00:42:40 -05:00
Sasha Koshka 55dec491eb Add match stub 2024-03-05 03:32:31 -05:00
Sasha Koshka 7e1bc350d1 Generate union types 2024-03-05 03:15:44 -05:00
Sasha Koshka e2cb3820cf Add some multiunit tests from the analyzer to the generator 2024-02-29 23:59:15 -05:00
Sasha Koshka eac7d492d6 Change name of generator multiunit test to match analyzer 2024-02-29 23:52:09 -05:00
Sasha Koshka acf8046114 Putting complete covering of bit casts on hold for now 2024-02-28 20:08:54 -05:00
Sasha Koshka 69c4294522 Covered more cases with bitcast 2024-02-28 20:08:43 -05:00
Sasha Koshka 7acc9c5ab0 Add more test cases for bitcasting pointers 2024-02-28 19:49:35 -05:00
Sasha Koshka f3e9f33dd3 Completed out TestUnitWriterInterface 2024-02-28 17:43:17 -05:00
Sasha Koshka aa82eb190a Renamed TestPtrIntCast to TestPtrCast, will put more things in it 2024-02-28 17:36:11 -05:00
Sasha Koshka 35479e68a8 Add and fix test case for #47 (on the generator side at least) 2024-02-28 13:36:21 -05:00
Sasha Koshka 40c5d10d4b Generator uses proper type owner UUID during interface conversion 2024-02-28 12:30:38 -05:00
Sasha Koshka 68be34ddfe Generator multiunit tests print what is being analyzed 2024-02-28 11:50:41 -05:00
Sasha Koshka 1c2186e9fc Add problematic multiunit test case from #49 2024-02-27 03:06:54 -05:00
Sasha Koshka dda8cea996 Generator's "errNotFound" is more useful when it bubbles to the surface 2024-02-27 02:29:52 -05:00
Sasha Koshka 623bcabb84 Changed repository import paths 2024-02-22 19:22:53 -05:00
Sasha Koshka 12bf91d010 Updated generator tests 2024-02-19 23:05:30 -05:00
Sasha Koshka 49b6264ba4 Fixed generator map sorting 2024-02-19 21:57:21 -05:00
Sasha Koshka c4873915bb Types are given proper link names in the generator 2024-02-19 21:09:21 -05:00
Sasha Koshka 66ee370f23 Generator now has module support 2024-02-19 21:00:20 -05:00
Sasha Koshka c69091898a Parser now has something of a concept of modules 2024-02-14 01:44:25 -05:00
Sasha Koshka b6bd81a244 Updated generator 2024-02-13 13:12:53 -05:00
Sasha Koshka fce7595126 New test for generator confirmed to work, filled out 2024-02-10 21:31:10 -05:00
Sasha Koshka 5026576878 Add same test as stub to generator 2024-02-10 21:20:24 -05:00
Sasha Koshka c78deebcc6 Fix small issues with generator readme 2024-02-10 18:32:35 -05:00
Sasha Koshka 9d48bcb868 Add generator README.md 2024-02-10 18:26:51 -05:00
Sasha Koshka 5d09926d30 Updated generator's test-common 2024-02-09 04:02:55 -05:00
Sasha Koshka cd419cb12d Added module-level doc comments to generator and generator/native 2024-02-09 00:57:06 -05:00
Sasha Koshka e60a6e246f Unexport generator.resultMode 2024-02-08 16:06:00 -05:00
Sasha Koshka ee90077f90 Fixed all generator tests 2024-02-08 13:32:04 -05:00
Sasha Koshka 0a87781445 Generator compiles and runs 2024-02-08 13:14:21 -05:00
Sasha Koshka 554fc1f7a7 Put functionality from generator/test-common.go in its own package 2024-02-01 01:59:17 -05:00
Sasha Koshka b95df4c23c Fix crash when using int literals as floats 2024-01-29 13:29:53 -05:00
Sasha Koshka 8340dbe7c2 Update tests 2024-01-29 03:30:54 -05:00
Sasha Koshka 0d20f1cbc0 Slice length fields are properly stored as Index values 2024-01-29 03:11:43 -05:00
Sasha Koshka af79419809 Update tests 2024-01-29 02:20:16 -05:00
Sasha Koshka 0c1382896e Updated test cases for literals 2024-01-29 00:30:48 -05:00
Sasha Koshka 1e827a9ea1 Array literals and string literals now exhibit identical behavior
They both fill unspecified data with zeros, and add a null
terminator when directly assigned to a pointer.
2024-01-29 00:25:34 -05:00
Sasha Koshka 06a183c7af String generation now uses correct type names, data length, and nulls 2024-01-28 17:10:03 -05:00
Sasha Koshka 9b80c29a15 Fix tests 2024-01-28 16:44:34 -05:00
Sasha Koshka 044e73efda Add source code printout for tests 2024-01-28 14:46:47 -05:00
Sasha Koshka 8107f82531 Broke up the monolithic TestLiteral 2024-01-28 14:36:04 -05:00
Sasha Koshka e42c292433 Increased the coverage of TestLiteralArray 2024-01-28 14:15:54 -05:00
Sasha Koshka c71cc43a47 *Greatly* reduced the amount of excess IR related to string literals 2024-01-28 14:11:41 -05:00
Sasha Koshka 0d4a86ef02 Struct literals now support irDestLoc 2024-01-28 04:50:18 -05:00
Sasha Koshka 82c05039b7 Added the ability for array literals to be undersized 2024-01-28 04:43:01 -05:00