bjorn3
5dec38e94c
Avoid temporary stack slot in drop codegen
...
cc #322
2020-08-25 18:32:16 +02:00
bjorn3
a9a262ad5a
Merge pull request #1078 from CohenArthur/remove-clone-on-nop-filling
...
Remove clone() when removing extra stack operations
2020-08-23 22:09:08 +02:00
CohenArthur
cb386896ee
stack2reg: Switch to hashbrown::HashSet
2020-08-23 21:44:00 +02:00
CohenArthur
5c8c75b1d2
stack2reg: Drain instead of only iterating
2020-08-23 18:36:42 +02:00
CohenArthur
eb6df58cdd
stack2reg: Remove clone() using filters
2020-08-23 18:16:36 +02:00
CohenArthur
b0ea85fb83
stack2reg: Remove self in remove_unused_stack_addr and()
...
remove_unused_load()
2020-08-23 17:55:35 +02:00
CohenArthur
80ee042a36
stack2reg: Re-add clone() to stop CI
2020-08-23 17:31:07 +02:00
CohenArthur
c62f433e46
remove_unused_stack_addr_and_stack_load: Remove clone()
2020-08-23 15:00:09 +02:00
bjorn3
18348b1aec
Rustup to rustc 1.47.0-nightly ( 663d2f5cd
2020-08-22)
2020-08-23 11:50:51 +02:00
bjorn3
ec37225873
Merge pull request #1077 from CohenArthur/fix-linkage-export-hidden
...
Change linkage to hidden on non-exported symbols
2020-08-22 19:59:41 +02:00
bjorn3
a4e703af18
Merge pull request #1076 from CohenArthur/use-codegencx-in-functioncx
...
Use CodegenCx in FunctionCx
2020-08-22 19:24:46 +02:00
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
4cb2a2b793
FunctionCx: Fix field usage in inline_asm and vtable modules
2020-08-22 16:14:33 +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
CohenArthur
5a59c24eee
FunctionCx: Store reference to CodegenCx instead
2020-08-22 15:18:10 +02:00
CohenArthur
a1fc2eb00d
linkage: Change linkage to hidden on non-exported symbols
2020-08-22 13:43:47 +02:00
bjorn3
42c41740d4
Merge pull request #1075 from CohenArthur/add-null-after-argv
...
jit: Add `NULL` as terminating argv
2020-08-22 11:38:03 +02:00
CohenArthur
2a14fb7bf2
jit: Add NULL
as terminating argv
2020-08-22 11:24:02 +02:00
bjorn3
e64f523b27
Evaluate all mir.required_consts and report any errors
...
Fixes #981
2020-08-20 16:51:36 +02:00
bjorn3
a80d6423e6
Merge pull request #1074 from bjorn3/fix_weak_linkage
...
Fix weak linkage
2020-08-20 16:01:42 +02:00
bjorn3
ca9fc101c0
Fix weak linkage
...
This removes the last sysroot patch apart from the few patches that disable tests
2020-08-20 15:24:33 +02:00
bjorn3
02b7cdc316
Update Cranelift and object
2020-08-20 15:21:26 +02:00
bjorn3
ee2addd010
Don't test x86_64 simd on archs other than x86_64
2020-08-20 13:22:07 +02:00
bjorn3
7752718e5b
Update target_feature_whitelist
2020-08-19 18:52:56 +02:00
bjorn3
50cd72d590
Bump actions/cache to v2
2020-08-19 14:14:32 +02:00
bjorn3
03209e1e2d
Don't disable incremental cache for cargo.sh
...
cc #1052
2020-08-19 14:07:54 +02:00
bjorn3
f4e22f0bff
[gh actions] Remove actions-rs/cargo step
...
It is not very useful and increases compilation time, as the
CARGO_INCREMENTAL env var differs between it and the cargo invocation in
test.sh
2020-08-19 14:05:57 +02:00
bjorn3
33b6a9081a
Add workaround for rust-lang/rust#74946
...
Fixes #1072
2020-08-19 13:56:54 +02:00
Craig Mayhew
7e203efce8
Enforce linux style line endings to support WSL ( #1073 )
...
* Enforce linux style line endings to support WSL
If you clone in windows, but run under WSL, the line endings cause errors. This enforces linux style line endings.
* Update .gitattributes to use text=auto
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
2020-08-17 22:28:12 +02:00
bjorn3
f0069dac00
Fix panic in when debug assertions are enabled
2020-08-16 20:55:22 +02:00
bjorn3
4757371aba
Fix ambiguity between object and cranelift_object::object
2020-08-16 11:48:46 +02:00
bjorn3
d9a24fb496
Merge pull request #1070 from bjorn3/cpuid
...
Emulate cpuid
2020-08-15 21:27:06 +02:00
bjorn3
0703e98bf6
Remove cg_clif fake target feature
2020-08-15 21:04:33 +02:00
bjorn3
3d46a30469
Fix ppv-lite86 with simd enabled
...
This fixes older rand versions that enable the simd feature of ppv-lite86
2020-08-15 20:55:03 +02:00
bjorn3
c1a68b1386
Emulate the cpuid arch intrinsic
2020-08-15 19:08:19 +02:00
bjorn3
847cc7ab2a
Disable the inline asm support using a feature flag
2020-08-15 14:19:23 +02:00
bjorn3
8c7c091244
Rustup to rustc 1.47.0-nightly ( ceedf1d5f
2020-08-08)
2020-08-09 19:42:37 +02:00
bjorn3
49b7fac443
Enable simd insert and extract tests
...
Working since rust-lang/stdarch#876
Fixes #666
2020-08-08 16:32:03 +02:00
bjorn3
f79e8e8487
Rustup to rustc 1.47.0-nightly ( 09f4c9f50
2020-08-07)
2020-08-08 16:30:22 +02:00