Chadtech
b615b0127c
Fix Str.startsWith std definition
2020-11-22 14:00:01 -05:00
Chadtech
385d0fda9f
Resolving conflicts with remote trunk
2020-11-22 13:54:13 -05:00
Richard Feldman
5ff2b04d1a
Add len, is_small_str, and write_cstr to str.zig
2020-11-22 00:20:27 -05:00
Richard Feldman
2823fee56a
Use const more in str.zig, fix some init & eq bugs
2020-11-22 00:20:19 -05:00
Richard Feldman
8177980087
Remove redundant get_small_str_ptr
2020-11-21 23:15:01 -05:00
Richard Feldman
4f765bae11
Empty string should always be all 0s
2020-11-21 23:15:01 -05:00
Richard Feldman
e0c97c9981
Run zig tests on CI
2020-11-21 23:14:49 -05:00
Brendan Hansknecht
6df15eada4
Correct stack use assumption
2020-11-21 19:58:03 -08:00
Brendan Hansknecht
1156e4f108
Some reorganization and removal of unneeded layout
2020-11-21 18:04:57 -08:00
Brendan Hansknecht
c9ea15b0a5
Merge branch 'trunk' into dev-backend
2020-11-21 17:18:26 -08:00
Folkert
2f1ca9decf
cleanup
2020-11-21 22:54:57 +01:00
Folkert
8013af7e97
change representation of list/str
2020-11-21 22:50:33 +01:00
Folkert
52772df2c3
improve list allocation
2020-11-21 22:50:31 +01:00
Richard Feldman
a5fd9bff9d
Merge pull request #711 from rtfeldman/trailing-comma-record-annotation
...
Formatting record type annotation
2020-11-21 16:24:53 -05:00
Richard Feldman
97c42f8196
Merge pull request #720 from rtfeldman/repeated-concat-test
...
Comment in repeated Str.concat test
2020-11-21 14:58:35 -05:00
Sébastien Besnier
5562b986ce
cargo fmt
2020-11-21 20:50:29 +01:00
Sébastien Besnier
0d9e3aa07b
make clippy happy
2020-11-21 20:36:26 +01:00
Sébastien Besnier
d87b5bfd9f
add failing tests
2020-11-21 20:36:26 +01:00
Sébastien Besnier
bfe219f307
fix some wrong comments
2020-11-21 20:36:26 +01:00
Sébastien Besnier
b1548ff4e8
refactor tag union and record type annotations formatting
2020-11-21 20:36:26 +01:00
Sébastien Besnier
52bace2c25
store the final comments in the AST for record & tag union annotations
2020-11-21 20:36:26 +01:00
Sébastien Besnier
c692319fb9
correctly format multiline record type annotation
2020-11-21 20:36:26 +01:00
Sébastien Besnier
f9666d6efe
better code comments
2020-11-21 20:36:26 +01:00
Chadtech
72009b1276
Comment in now passing test
2020-11-21 14:15:58 -05:00
Chadtech
767a348812
Record references in can/expr before evaluating to runtime error
2020-11-21 14:07:09 -05:00
Richard Feldman
6f9097da56
Merge pull request #712 from rtfeldman/fix-region-parsing
...
Fix Region Parsing
2020-11-21 12:59:34 -05:00
Sébastien Besnier
932d9b1d16
fix region parsing
2020-11-21 15:57:12 +01:00
Brendan Hansknecht
4b3926be50
Add Num.add as inlined function
2020-11-21 00:08:12 -08:00
Brendan Hansknecht
65d6d64102
Fix symbol lifetime
2020-11-20 23:37:50 -08:00
Brendan Hansknecht
13781a6f8f
Add Num.abs as inlined function
2020-11-20 23:04:35 -08:00
Brendan Hansknecht
9e6eb85166
Define register use information for stack saving
2020-11-20 17:40:25 -08:00
Brendan Hansknecht
6da6faa35f
Rename Register to GPReg and add return regs to backend
2020-11-20 17:17:04 -08:00
Folkert
1070b5c4b2
fix out-of-bounds write
2020-11-20 21:00:25 +01:00
Folkert
898a140f64
Merge remote-tracking branch 'origin/trunk' into str-split-small-str
2020-11-20 15:58:13 +01:00
Pit Capitain
afb60974fe
Fix clippy things
...
Copied from 4db48d9f13
2020-11-19 23:08:19 +01:00
Pit Capitain
2dee43a3ca
Fix llvm debug info errors
...
* create subprogram for {}_catcher
* create subprogram for {}_size
* don't create a second subprogram for {}_exposed
2020-11-19 22:46:37 +01:00
Folkert
4db48d9f13
more clippy things
2020-11-19 22:20:00 +01:00
Folkert
e30893b66e
round up alignment to ptr_bytes
2020-11-19 22:10:02 +01:00
Folkert
fd026ee9d8
clippy
2020-11-19 21:28:35 +01:00
Folkert
82b7208533
add debugir tool to build program
2020-11-19 21:18:13 +01:00
Brendan Hansknecht
65e14f2941
Add Reuse and Reset to last seen map
2020-11-19 12:12:42 -08:00
Folkert
86a86341b3
Merge remote-tracking branch 'origin/trunk' into llvm-debug-info
2020-11-19 21:00:48 +01:00
Folkert
fd7edeeaa6
Merge remote-tracking branch 'origin/trunk' into add-debug-info
2020-11-19 20:57:28 +01:00
Folkert
45c62dfa3c
improve list allocation
2020-11-19 16:11:21 +01:00
Folkert
b61f5d02b9
refactor allocation
2020-11-19 16:09:23 +01:00
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