Commit Graph

85 Commits

Author SHA1 Message Date
bjorn3 77e90f1cb5 Sync from rust 539402cb0b 2020-11-21 18:43:51 +01:00
Bastian Kauschke 56e63805be update cg_clif 2020-11-16 22:42:09 +01:00
bjorn3 753e6bcd5f Sync from rust f2a11a2537 2020-11-13 18:47:37 +01:00
bjorn3 6eaa502049 Update Cranelift for SimpleJIT changes 2020-11-12 11:56:09 +01:00
Vadim Petrochenkov e9c34b3cf8 Collapse all uses of target.options.foo into target.foo
with an eye on merging `TargetOptions` into `Target`.

`TargetOptions` as a separate structure is mostly an implementation detail of `Target` construction, all its fields logically belong to `Target` and available from `Target` through `Deref` impls.
2020-11-08 17:29:13 +03:00
bjorn3 285c7c66dc Merge commit '03f01bbe901d60b71cf2c5ec766aef5e532ab79d' into update_cg_clif-2020-11-01 2020-11-03 11:00:04 +01:00
bjorn3 6b1902a0fa Update Cranelift 2020-10-31 19:38:35 +01:00
bjorn3 4cc6b4f9bf Fix many clippy warnings 2020-10-28 21:47:25 +01:00
bjorn3 4971028775 Rustup to rustc 1.49.0-nightly (dd7fc54eb 2020-10-15) 2020-10-16 09:35:48 +02:00
bjorn3 c352f91b40 Rustfmt 2020-10-09 19:17:52 +02:00
bjorn3 0a5968dfd2 Use the new cranelift-module interface
This updates Cranelift to include bytecodealliance/wasmtime#2249
2020-10-08 19:00:21 +02:00
bjorn3 c8699076f9 Document almost all modules
Fixes #1082
2020-09-23 15:13:49 +02:00
bjorn3 94f11cc3a8 Use pcrel pointers in .eh_frame
Fixes #1055
2020-09-23 13:44:32 +02:00
bjorn3 552991e17e Replace FxHashMap with IndexVec for local_map
Fixes #745
2020-09-16 18:45:19 +02:00
bjorn3 b8bbbe38d1 Remove cfg-if dependency 2020-09-16 16:57:52 +02:00
bjorn3 217b3818b7 Rustup to rustc 1.48.0-nightly (c59199efc 2020-09-04) 2020-09-05 10:38:49 +02:00
CohenArthur 4e685a512e fmt: Run cargo fmt since it is available 2020-08-28 12:10:48 +02:00
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