Commit Graph

428 Commits

Author SHA1 Message Date
01526aa914 Add source code printout for tests 2024-01-28 14:46:47 -05:00
31cf892a63 Broke up the monolithic TestLiteral 2024-01-28 14:36:04 -05:00
fa90e50c3b Increased the coverage of TestLiteralArray 2024-01-28 14:15:54 -05:00
83aefbae07 *Greatly* reduced the amount of excess IR related to string literals 2024-01-28 14:11:41 -05:00
1f53fc5214 Struct literals now support irDestLoc 2024-01-28 04:50:18 -05:00
3d6142f496 Added the ability for array literals to be undersized 2024-01-28 04:43:01 -05:00
235252b591 Added test for nested array literals
Who knew it would work first try?
2024-01-28 04:24:15 -05:00
185a6114a6 Array literals now support irDestLoc 2024-01-28 04:18:33 -05:00
a4c7212709 Add more tests for loops 2024-01-28 03:29:49 -05:00
e9a9fc75c6 Fixed extra lines after IR blocks 2024-01-28 03:18:39 -05:00
1b4a0621de Fix some issues with control flow, add tests 2024-01-28 03:16:05 -05:00
7e4abb7bba Add test case for comparisons on defined types 2024-01-28 02:18:18 -05:00
f595a2e742 FCmp and ICmp now accept defined types 2024-01-28 00:18:37 -05:00
9a4241cb11 Updated all tests except for literal_test.go
You Will See Why
2024-01-27 23:24:19 -05:00
3ca9b5ff50 Well it would help if it generated well formed IR 2024-01-27 23:00:03 -05:00
079a05ccca Assignment coercions are much more IR efficient 2024-01-27 22:45:28 -05:00
cfe12634ef Complete TestInterfaceInStruct (no longer segfaults somehow) 2024-01-27 19:49:22 -05:00
928fef02cd More using qualified names in IR 2024-01-27 18:16:30 -05:00
2f8b3fcad6 Oh my god I swapped the columns 2024-01-27 18:09:51 -05:00
7bc24eabe0 Added cool output to failed tests 2024-01-27 18:07:49 -05:00
839178d1d2 Literal generation now uses qualified type names when possible 2024-01-27 17:16:23 -05:00
f039be92b6 Remove redundant val variable/declaration generation 2024-01-27 14:17:52 -05:00
c0f004d3b8 Rename some routines in data 2024-01-27 14:03:38 -05:00
658ff9e842 Merge pull request 'generator-reduce-redundant-ir' (#2) from generator-reduce-redundant-ir into main
Reviewed-on: sashakoshka/fspl#2
2024-01-27 17:40:37 +00:00
55f0138a64 Updated more tests (cutting out extra load insts) 2024-01-27 17:35:33 +00:00
a4fc8746bd Fix more names and orgaization of statement generation 2024-01-27 17:33:15 +00:00
64d246a997 Added -Any suffix to appropriate generation routines 2024-01-27 17:24:47 +00:00
e188b2f349 Fixed segfault relating to break and return statements 2024-01-27 17:11:44 +00:00
8e9b5e0613 Introducing ResultMode! time to got to bed. 2024-01-27 10:43:27 +00:00
a423d572ad Update some tests 2024-01-27 10:06:17 +00:00
12ab7dd3e3 Updated control flow generation 2024-01-27 10:03:15 +00:00
b6da53afd6 Void functions/methods no longer request a value 2024-01-27 09:22:19 +00:00
c63e077f9a Made generic block generation routine 2024-01-27 09:18:41 +00:00
75ec6a2ddc Made panic messages in expression-multiplex.go more informative 2024-01-27 09:15:39 +00:00
8b45c91239 Add Val onto value expressions 2024-01-27 09:09:27 +00:00
934af40e4b Update block generation routines 2024-01-27 09:06:17 +00:00
f827bfeb7a Add generateStatement routine 2024-01-27 08:53:29 +00:00
32ce14f032 Renamed generateStatement to generateStatementVal 2024-01-27 08:49:25 +00:00
ac6a969ac9 Add generateExpression function 2024-01-27 08:48:00 +00:00
07a4895b60 Rename expression source files 2024-01-27 08:40:02 +00:00
cfc894ff29 Rename generateExpression to generateExpressionVal 2024-01-27 08:39:05 +00:00
8dedae5cb9 Nitpick 2024-01-27 08:26:46 +00:00
7035648396 Change restricted access modifier to tilde (~) 2024-01-27 07:42:13 +00:00
c2df4203bd Same thing for bit casts 2024-01-27 07:05:34 +00:00
01a3ac2e1b Generator now no longer generates ineffectual value casts 2024-01-27 07:03:13 +00:00
73e2cffda2 Added a way to test IR type equality 2024-01-27 06:49:30 +00:00
f12405b3f4 Merge pull request 'llvm-implement-globals' (#1) from llvm-implement-globals into main
Reviewed-on: sashakoshka/fspl#1
2024-01-27 04:33:39 +00:00
d6a5ded758 Add IsConstant to Global 2024-01-27 04:16:41 +00:00
14a02f5e22 Add basic globals implementation 2024-01-27 01:49:18 +00:00
417c7772e4 Move addrspace to attribute file, will put more things in there 2024-01-27 01:48:29 +00:00