bjorn3
08fc673190
Handle SIMD vectors in CPlace::place_field
2020-07-25 12:28:24 +02:00
bjorn3
942039b232
Pass ByRef values at fixed stack offset for extern "C"
...
This makes it possible to build proc macros using cg_clif
2020-07-17 12:41:01 +02:00
bjorn3
a0580610b2
Use From::from
instead of as
where possible
2020-07-14 16:38:50 +02:00
bjorn3
ac77371852
Add a feature flag for the JIT
2020-07-09 14:23:00 +02:00
Santiago Pastorino
aa80ed0a2d
Store pairs in SSA
2020-07-02 19:23:21 -03:00
bjorn3
3227203fe6
Don't use a 1-to-1 mapping between mir local and cranelift_frontend variable
2020-06-27 14:29:28 +02:00
bjorn3
eb5ce4e92a
Remove FunctionDebugContext
2020-06-13 17:03:34 +02:00
bjorn3
16b5dac463
Remove all non-tcx references from CodegenCx
2020-06-12 21:15:13 +02:00
bjorn3
bc555764bd
Update Cranelift
2020-06-05 12:40:33 +02:00
bjorn3
648b634e21
Rustup to rustc 1.45.0-nightly ( 56daaf669
2020-06-03)
2020-06-04 19:57:12 +02:00
bjorn3
47f0256d56
Update Cranelift
2020-05-25 13:04:36 +02:00
bjorn3
27cc90effa
Improvements for latest Cranelift
2020-05-05 12:16:28 +02:00
bjorn3
020bcb31db
Register frame table in JIT mode
2020-05-01 20:58:27 +02:00
bjorn3
4da6488d95
Always emit .eh_frame section
2020-05-01 19:21:29 +02:00
bjorn3
e7661d49c3
Implement .eh_frame writing
2020-04-25 18:23:31 +02:00
bjorn3
9d6f65ea14
Implement line debuginfo for AArch64
2020-04-25 17:29:09 +02:00
bjorn3
6b8b4e54ba
Rustup to rustc 1.44.0-nightly ( 3360cc3a0
2020-04-24)
2020-04-25 11:42:46 +02:00
bjorn3
c3180f3bd7
Fix function arguments for gdb
2020-04-24 21:13:23 +02:00
bjorn3
b69b72973a
Generate simple debuginfo for arguments
2020-04-24 21:13:23 +02:00
bjorn3
5a6d9e1f1b
Merge pull request #972 from l4l/debug-file-hash
...
Support file hashes in .debug_line
2020-04-21 12:17:46 +02:00
bjorn3
c3c5c4b731
Use DWARF version 4 for now
2020-04-21 12:13:50 +02:00
Kitsu
8c7a457753
Use md5 dwarf hash, only if all files has it
...
Co-Authored-By: bjorn3 <bjorn3@users.noreply.github.com>
2020-04-20 23:27:54 +03:00
Kitsu
fb709ede02
Simplify with make_file_info
2020-04-18 17:43:00 +03:00
Kitsu
0e837e3082
Simplify FileHash ctor
2020-04-18 16:33:01 +03:00
Kitsu
710da05af7
Dedup file hashing logic with type
2020-04-18 16:16:17 +03:00
Kitsu
1e472531c6
Use dwarf 3 for osx
2020-04-18 16:05:28 +03:00
Kitsu
5c0e34d7ab
Don`t include timestamp as debug file info
2020-04-18 16:02:02 +03:00
Kitsu
077209e565
Support file hashes in .debug_line
2020-04-18 14:56:04 +03:00
bjorn3
a802c7f292
Disable line debuginfo for the AArch64 backend
2020-04-17 21:03:43 +02:00
bjorn3
bbc0cd66b4
Update Cranelift
2020-04-13 12:54:55 +02:00
bjorn3
3ef6170142
Remove CPlace::NoPlace
2020-04-11 15:01:04 +02:00
bjorn3
016673b0c3
Fix rustc::internals lint warnings
2020-04-09 12:12:55 +02:00
bjorn3
291c75d10b
Enable the rust_2018_idioms and unused_lifetimes lints and fix all warnings
...
They are set to deny by default in the rust-lang/rust repo
2020-04-09 12:12:55 +02:00
bjorn3
ac1c5d6954
Rustup to rustc 1.44.0-nightly ( 537ccdf3a
2020-04-02)
2020-04-03 11:54:18 +02:00
bjorn3
e3396901c4
Update Cranelift
2020-04-01 14:19:25 +02:00
bjorn3
13e3a3c8b0
Rustup to rustc 1.44.0-nightly ( 211365947
2020-03-30)
2020-03-31 13:20:19 +02:00
bjorn3
f288959c00
Limit publicness to crate where possible and remove unused imports
2020-03-27 12:14:45 +01:00
bjorn3
6b30d508f7
Fix some FIXME's and add some new FIXME's
2020-03-21 16:52:02 +01:00
bjorn3
b475199d1c
[debuginfo] Fix map_reg
2020-03-17 15:30:32 +01:00
bjorn3
efe3d84ce4
Don't lookup span position when the span hasn't changed
...
This improves performance of FunctionDebugContext::define by ~60%
Fixes #807
2020-03-14 15:18:04 +01:00
bjorn3
660b5c33e7
Use byte offsets instead of char offsets in debuginfo
...
cc #807
2020-03-14 15:10:22 +01:00
bjorn3
092cae12f9
Dont single step into macros
...
Fixes #782
2020-03-14 14:48:04 +01:00
bjorn3
152bde63fe
Misc changes
2020-03-07 11:27:49 +01:00
bjorn3
cc30c20293
Silence some warnings
2020-02-22 15:18:03 +01:00
bjorn3
430f738392
Update Cranelift for basic blocks
2020-02-14 18:23:29 +01:00
bjorn3
fbe36ad68a
Revert "Use CachingSourceMapView::byte_pos_to_line_and_col instead of SourceMap::lookup_char_pos"
...
This reverts commit eb4fc45310
.
It caused a panic while compiling simple-raytracer
2020-02-03 21:36:36 +01:00
bjorn3
eb4fc45310
Use CachingSourceMapView::byte_pos_to_line_and_col instead of SourceMap::lookup_char_pos
...
The former calculates byte offsets instead of char offsets. It is faster
to calculate byte offsets than char offsets. Also most DWARF producers
and consumers use byte offsets instead of char offsets.
2020-02-03 21:05:18 +01:00
bjorn3
09b44f5d25
Reduce visibility
2020-01-14 17:11:06 +01:00
bjorn3
29fafb44b1
Optimize .debug_line generation
...
This reduces the amount of time spent in .debug_line generation by about 50%
Fixes #807
2020-01-14 16:11:23 +01:00
bjorn3
b44d6311ca
Rustup to rustc 1.42.0-nightly ( 3ebcfa145
2020-01-12)
2020-01-14 12:29:04 +01:00
bjorn3
33ad67c124
Rustup to rustc 1.42.0-nightly ( caa231d99
2020-01-08)
2020-01-09 17:43:10 +01:00
bjorn3
6652f466ef
Rustup to rustc 1.42.0-nightly ( bc1571cc3
2020-01-05)
2020-01-06 20:11:03 +01:00
bjorn3
7ff01a4d59
Use mir::SourceInfo again in FunctionCx.source_info_set
...
Fixes #800
2019-12-24 12:44:07 +01:00
bjorn3
399cada762
Directly depend on cranelift_{codegen,frontend}
...
Fixes #838
2019-12-24 12:43:20 +01:00
bjorn3
e63a94fca6
Rustup to rustc 1.42.0-nightly ( fc5deca21
2019-12-21)
2019-12-22 16:53:06 +01:00
bjorn3
ad72afaad3
Remove CPlaceInner::Stack
2019-12-20 22:00:12 +01:00
bjorn3
3e50a831e5
Optimize line_program_add_file
2019-12-16 13:23:41 +01:00
bjorn3
beda104a2b
Disable local debuginfo for now
2019-12-16 12:12:51 +01:00
bjorn3
74ca55d230
Rustup
2019-12-16 12:11:14 +01:00
bjorn3
7a4fe12d31
Rustup to rustc 1.41.0-nightly ( e87a205c2
2019-11-27)
2019-12-16 12:07:31 +01:00
bjorn3
08217d1bde
Emit DW_TAG_structure_type including fields for structs
2019-12-16 12:07:12 +01:00
bjorn3
0244d19ebb
Fix translate_loc for ValueLoc::Stack
2019-12-16 12:07:12 +01:00
bjorn3
8edbbc45f7
Implement local reading for locals on stack
2019-12-16 12:04:34 +01:00
bjorn3
d8e9148c2e
Rustfmt debuginfo
2019-12-16 12:04:34 +01:00
bjorn3
c5c6ce87d2
Small change
2019-12-16 12:04:34 +01:00
bjorn3
beda7870fb
Split debuginfo/line_info.rs from debuginfo/mod.rs
2019-12-16 12:04:34 +01:00
bjorn3
ed758912d3
Split debuginfo/emit.rs part out of debuginfo/mod.rs
2019-12-16 12:04:34 +01:00
bjorn3
d07fe816af
Move debuginfo.rs to debuginfo/mod.rs
2019-12-16 12:04:34 +01:00