Commit graph

2070 commits

Author SHA1 Message Date
Brendan Hansknecht
0cee2cd96f Merge remote-tracking branch 'origin' into dev-backend 2020-11-18 23:54:31 -08:00
Brendan Hansknecht
a4b823a269 Add basic elf relocation handling 2020-11-18 23:50:42 -08:00
Brendan Hansknecht
2b6039d683 Fix error propagation 2020-11-18 23:10:55 -08:00
Brendan Hansknecht
4e973b9236 Mixed refactoring
Add error return value as opposed to using panic! and unimplemented!
Reorder some functions
Return relocations
Scan ast for variable lifetimes
Probably put too much into this cl, but it would be annoying to change
at this piont.
2020-11-18 23:07:41 -08:00
Richard Feldman
7f2a0d6c26
Merge pull request #705 from rtfeldman/add-debug-info
Add debug info
2020-11-18 19:35:29 -05:00
Folkert
5ce8a665f0 add finalize everywhere, and fix some oversights 2020-11-18 20:08:43 +01:00
Folkert
6f4585e7d8 add subprogram debug info 2020-11-18 19:24:49 +01:00
Lucas
710b81ed0e
Merge branch 'trunk' into rvcas/named_underscores 2020-11-18 08:28:47 -05:00
rvcas
72c85009c6 do not set an underscore on parse and only prefix in formatter 2020-11-18 08:25:40 -05:00
rvcas
f471d5bbe1 we do want to compare underscore values 2020-11-18 07:40:06 -05:00
rvcas
1e7dcaebd8 finish parsing named underscores 2020-11-18 07:35:01 -05:00
rvcas
0088080636 check point for review 2020-11-17 23:46:40 -05:00
Brendan Hansknecht
44d6c3bc02 Add extra comment on performance 2020-11-17 20:39:59 -08:00
Brendan Hansknecht
06ceace7a1 Use ImSet for register types 2020-11-17 20:35:42 -08:00
rvcas
8df5d5c13c feat(parse): support capturing a str in Pattern::Underscore 2020-11-17 21:53:49 -05:00
Folkert
4e7e196fe1 add function debug info helper 2020-11-17 20:34:29 +01:00
Folkert
7fcc05b0a4 add dibuilder 2020-11-17 20:26:07 +01:00
Folkert
b85f1e4128 add Safety docs to unsafe function 2020-11-17 20:01:38 +01:00
Folkert
9198638c23 allocate taking alignment into account 2020-11-17 20:01:38 +01:00
Folkert
e02cc3af2f use new decrement 2020-11-17 20:01:38 +01:00
Folkert
94a8d07fe7 use PointerToRefcount in == 1 comparison 2020-11-17 20:01:38 +01:00
Folkert
b2d1354373 use new increment 2020-11-17 20:01:38 +01:00
Folkert
64dd9cc1a9 improvements 2020-11-17 20:01:38 +01:00
Folkert
c007b39105 factor out refcounting operations 2020-11-17 20:01:38 +01:00
Folkert
75930caddb fix offset calculation 2020-11-17 20:01:38 +01:00
Folkert
f067f694de add Safety docs to unsafe function 2020-11-17 19:58:38 +01:00
Folkert
3e7ac18369 allocate taking alignment into account 2020-11-17 19:53:55 +01:00
Folkert
797dd2b734 use new decrement 2020-11-17 16:58:25 +01:00
Folkert
0ea7126096 use PointerToRefcount in == 1 comparison 2020-11-17 16:06:40 +01:00
Folkert
71dadac1ea use new increment 2020-11-17 16:04:15 +01:00
Folkert
da3454ca6c improvements 2020-11-17 15:59:03 +01:00
Folkert
b529decdff factor out refcounting operations 2020-11-17 15:27:17 +01:00
Folkert
2691ec7998 fix offset calculation 2020-11-17 15:06:15 +01:00
Brendan Hansknecht
35fd54b8fd Define basics of x86_64 calling conventions 2020-11-16 23:37:02 -08:00
Brendan Hansknecht
44ef41f9bb Add some register use information 2020-11-16 23:10:58 -08:00
Richard Feldman
077ee4382f
Merge branch 'trunk' into recursive-tag-segfault 2020-11-16 22:46:20 -05:00
Folkert
c11d97f3e7 Merge remote-tracking branch 'origin/trunk' into recursive-tag-segfault 2020-11-17 02:52:13 +01:00
Folkert
51f54efcee fix mono tests 2020-11-17 02:40:21 +01:00
Folkert
2082d6e57f add alignment_bytes 2020-11-17 02:33:17 +01:00
Folkert
b6d46bb6f9 add another failing test case 2020-11-17 02:30:59 +01:00
Folkert
bc74af1bd4 add assert that should pass, but doesn't always 2020-11-17 02:26:53 +01:00
Folkert
8f49b1afaa re-enable RBTree.balance test 2020-11-17 02:13:40 +01:00
Folkert
8528e5affb upgrade inkwell 2020-11-17 01:58:30 +01:00
Brendan Hansknecht
9c38290bb1 Merge branch 'trunk' into dev-backend 2020-11-15 22:37:08 -08:00
Brendan Hansknecht
9644b65ca5 Add unit tests to assembly generation 2020-11-15 22:27:10 -08:00
Brendan Hansknecht
ec4e19d01f Extract remain assembly to asm.rs 2020-11-15 21:05:53 -08:00
Brendan Hansknecht
0fcb1df344 Refactor x86_64 backend and add first assembly methods 2020-11-15 20:43:14 -08:00
Folkert
9ac1491647 add test that fails because of a rigid problem 2020-11-16 02:19:07 +01:00
Folkert
93b6315f46 fix pattern match test ordering problem 2020-11-16 02:18:18 +01:00
Brendan Hansknecht
a8986087f9 Add ability to return int literals 2020-11-15 14:06:20 -08:00