CohenArthur
7b994595da
trans_fn: Cleanup code
2020-08-22 19:05:22 +02:00
CohenArthur
05797b2476
trans_fn: Use replace() instead of new() + swap()
2020-08-22 19:03:35 +02:00
CohenArthur
d65e500394
FunctionCx: Swap context.func and empty function correctly
2020-08-22 18:53:34 +02:00
CohenArthur
0d1f8c802e
FunctionCx: Refactor fx.cx.tcx
into fx.tcx
2020-08-22 16:47:31 +02:00
CohenArthur
5cf4577352
FunctionCx: Add tcx field for easier access
2020-08-22 16:45:50 +02:00
CohenArthur
ea29b1818f
FunctionCx: Fix FunctionCx initialization in trans_fn()
2020-08-22 16:40:58 +02:00
CohenArthur
7b534d653d
FunctionCx: Rename codegen_cx -> cx
2020-08-22 16:17:58 +02:00
CohenArthur
429e75fe40
FunctionCx: WIP: Remove more common fields from CodegenCx
2020-08-22 15:49:16 +02:00
CohenArthur
1a6365f95f
FunctionCx: WIP: Fix overzealous sed usage
2020-08-22 15:25:36 +02:00
CohenArthur
ad4a7a1f0c
FunctionCx: WIP: Fix syntax error on sed codegen_cx -> .codegen_cx
2020-08-22 15:21:38 +02:00
CohenArthur
d199b83b55
FunctionCx: WIP: Replace .constants with codegen_cx.constants
2020-08-22 15:19:48 +02:00
CohenArthur
cb69c7019c
FunctionCx: Replace .module with .codegen_cx.module
2020-08-22 15:19:09 +02:00
CohenArthur
297d65c247
FunctionCx: WIP: Replace .tcx with .codegen_cx.tcx
2020-08-22 15:18:39 +02:00
bjorn3
e64f523b27
Evaluate all mir.required_consts and report any errors
...
Fixes #981
2020-08-20 16:51:36 +02:00
bjorn3
c1a68b1386
Emulate the cpuid arch intrinsic
2020-08-15 19:08:19 +02:00
bjorn3
1b8df386aa
Fix -Zpolymorphize
2020-07-23 18:08:15 +02:00
bjorn3
3f2589acd9
Fix multiple inline asm blocks in the same function
2020-07-23 12:37:03 +02:00
bjorn3
34823a7e4c
Rustup to rustc 1.46.0-nightly ( 5c9e5df3a
2020-07-16)
2020-07-17 19:15:33 +02:00
bjorn3
3e67eb1b44
Update Cranelift
...
Fixes #757 (through bytecodealliance/wasmtime#1939 )
2020-07-14 21:14:14 +02:00
bjorn3
a0580610b2
Use From::from
instead of as
where possible
2020-07-14 16:38:50 +02:00
bjorn3
4ec2831ebc
No silent truncating of SwitchInt values
2020-07-13 19:45:46 +02:00
bjorn3
726e329f46
Add basic inline asm support for x86_64
2020-07-10 21:34:26 +02:00
bjorn3
21edec4ea5
Fix core::hint::black_box support
2020-07-03 16:39:36 +02:00
bjorn3
bf2ba15972
When casting enum to integer sign extend the discriminant if necessary
2020-06-30 18:59:58 +02: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
48d4bc2fb6
Rustup to rustc 1.46.0-nightly ( 7750c3d46
2020-06-26)
2020-06-27 11:29:39 +02:00
bjorn3
98c83d21f5
Remove leftover of removed hack
2020-06-24 11:54:11 +02:00
bjorn3
eb8fd197ab
Prelude cleanup
2020-06-20 18:44:49 +02:00
bjorn3
266ca933f4
Rustup to rustc 1.46.0-nightly ( 2d8bd9b74
2020-06-19)
2020-06-20 11:10:27 +02:00
bjorn3
3086e44733
Only call build_value_labels_ranges when necessary
2020-06-16 13:27:24 +02:00
bjorn3
daad966be7
Some changes necessary for Windows support
...
cc #977
2020-06-16 11:36:39 +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
b84c9764db
Rustup to rustc 1.46.0-nightly ( a37c32e2d
2020-06-11)
2020-06-12 18:41:50 +02:00
bjorn3
cef9255c0e
Rustup to rustc 1.46.0-nightly ( 449e8eaa2
2020-06-10)
2020-06-11 13:12:47 +02:00
bjorn3
648b634e21
Rustup to rustc 1.45.0-nightly ( 56daaf669
2020-06-03)
2020-06-04 19:57:12 +02:00
bjorn3
1e70c51f60
Merge pull request #1022 from osa1/clif_dump_in_release_mode
...
Dump clif with --emit llvm-ir in release mode
2020-05-29 11:12:02 +02:00
Ömer Sinan Ağacan
acbfa06ea2
Mark blocks that call cold funs as cold ( #1021 )
2020-05-29 11:06:29 +02:00
Ömer Sinan Ağacan
6dd0246199
Dump clif with --emit llvm-ir in release mode
...
Currently it's not possible to dump llvm-ir in release build. With this
patch we allow it with `--emit llvm-ir`. In debug build we dump clif
always as before.
Fixes #1020
2020-05-29 11:43:05 +03:00
bjorn3
bcd357a0ae
Rustup to rustc 1.45.0-nightly ( 46e85b432
2020-05-24)
2020-05-25 12:41:33 +02:00
bjorn3
4da6488d95
Always emit .eh_frame section
2020-05-01 19:21:29 +02:00
bjorn3
7031c96fb3
Call panic lang item on failed TerminatorKind::Assert
...
Fixes #164
2020-04-25 19:07:53 +02:00
bjorn3
6b8b4e54ba
Rustup to rustc 1.44.0-nightly ( 3360cc3a0
2020-04-24)
2020-04-25 11:42:46 +02:00
bjorn3
27a46ff765
Rustup to rustc 1.44.0-nightly ( 45d050cde
2020-04-21)
...
Remove the `<Box<F> as FnOnce>::call_once` hack now that rust-lang/rust#71170 is merged.
2020-04-22 17:54:25 +02:00
Serentty
080d17f4f5
Fix spelling error in comment ( #974 )
2020-04-19 10:55:07 +02:00
bjorn3
21aa9b29bc
Pre-allocate local_map
2020-04-13 19:53:49 +02:00
bjorn3
b6bbc0f751
Codegen goto return block as return terminator
2020-04-11 15:01:29 +02:00
bjorn3
ea1a99900e
Remove unchecked_cast_to
2020-04-11 15:01:15 +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