]> git.lizzy.rs Git - rust.git/log
rust.git
3 years agoMerge pull request #1076 from CohenArthur/use-codegencx-in-functioncx
bjorn3 [Sat, 22 Aug 2020 17:24:46 +0000 (19:24 +0200)]
Merge pull request #1076 from CohenArthur/use-codegencx-in-functioncx

Use CodegenCx in FunctionCx

3 years agotrans_fn: Cleanup code
CohenArthur [Sat, 22 Aug 2020 17:05:22 +0000 (19:05 +0200)]
trans_fn: Cleanup code

3 years agotrans_fn: Use replace() instead of new() + swap()
CohenArthur [Sat, 22 Aug 2020 17:03:35 +0000 (19:03 +0200)]
trans_fn: Use replace() instead of new() + swap()

3 years agoFunctionCx: Swap context.func and empty function correctly
CohenArthur [Sat, 22 Aug 2020 16:53:34 +0000 (18:53 +0200)]
FunctionCx: Swap context.func and empty function correctly

3 years agoFunctionCx: Refactor `fx.cx.tcx` into `fx.tcx`
CohenArthur [Sat, 22 Aug 2020 14:47:31 +0000 (16:47 +0200)]
FunctionCx: Refactor `fx.cx.tcx` into `fx.tcx`

3 years agoFunctionCx: Add tcx field for easier access
CohenArthur [Sat, 22 Aug 2020 14:45:50 +0000 (16:45 +0200)]
FunctionCx: Add tcx field for easier access

3 years agoFunctionCx: Fix FunctionCx initialization in trans_fn()
CohenArthur [Sat, 22 Aug 2020 14:40:58 +0000 (16:40 +0200)]
FunctionCx: Fix FunctionCx initialization in trans_fn()

3 years agoFunctionCx: Rename codegen_cx -> cx
CohenArthur [Sat, 22 Aug 2020 14:17:58 +0000 (16:17 +0200)]
FunctionCx: Rename codegen_cx -> cx

3 years agoFunctionCx: Fix field usage in inline_asm and vtable modules
CohenArthur [Sat, 22 Aug 2020 14:14:33 +0000 (16:14 +0200)]
FunctionCx: Fix field usage in inline_asm and vtable modules

3 years agoFunctionCx: WIP: Remove more common fields from CodegenCx
CohenArthur [Sat, 22 Aug 2020 13:49:16 +0000 (15:49 +0200)]
FunctionCx: WIP: Remove more common fields from CodegenCx

3 years agoFunctionCx: WIP: Fix overzealous sed usage
CohenArthur [Sat, 22 Aug 2020 13:25:36 +0000 (15:25 +0200)]
FunctionCx: WIP: Fix overzealous sed usage

3 years agoFunctionCx: WIP: Fix syntax error on sed codegen_cx -> .codegen_cx
CohenArthur [Sat, 22 Aug 2020 13:21:38 +0000 (15:21 +0200)]
FunctionCx: WIP: Fix syntax error on sed codegen_cx -> .codegen_cx

3 years agoFunctionCx: WIP: Replace .constants with codegen_cx.constants
CohenArthur [Sat, 22 Aug 2020 13:19:48 +0000 (15:19 +0200)]
FunctionCx: WIP: Replace .constants with codegen_cx.constants

3 years agoFunctionCx: Replace .module with .codegen_cx.module
CohenArthur [Sat, 22 Aug 2020 13:19:09 +0000 (15:19 +0200)]
FunctionCx: Replace .module with .codegen_cx.module

3 years agoFunctionCx: WIP: Replace .tcx with .codegen_cx.tcx
CohenArthur [Sat, 22 Aug 2020 13:18:39 +0000 (15:18 +0200)]
FunctionCx: WIP: Replace .tcx with .codegen_cx.tcx

3 years agoFunctionCx: Store reference to CodegenCx instead
CohenArthur [Sat, 22 Aug 2020 13:18:10 +0000 (15:18 +0200)]
FunctionCx: Store reference to CodegenCx instead

3 years agoMerge pull request #1075 from CohenArthur/add-null-after-argv
bjorn3 [Sat, 22 Aug 2020 09:38:03 +0000 (11:38 +0200)]
Merge pull request #1075 from CohenArthur/add-null-after-argv

jit: Add `NULL` as terminating argv

3 years agojit: Add `NULL` as terminating argv
CohenArthur [Sat, 22 Aug 2020 09:24:02 +0000 (11:24 +0200)]
jit: Add `NULL` as terminating argv

3 years agoEvaluate all mir.required_consts and report any errors
bjorn3 [Thu, 20 Aug 2020 14:51:01 +0000 (16:51 +0200)]
Evaluate all mir.required_consts and report any errors

Fixes #981

3 years agoMerge pull request #1074 from bjorn3/fix_weak_linkage
bjorn3 [Thu, 20 Aug 2020 14:01:42 +0000 (16:01 +0200)]
Merge pull request #1074 from bjorn3/fix_weak_linkage

Fix weak linkage

3 years agoFix weak linkage
bjorn3 [Sun, 16 Aug 2020 19:20:12 +0000 (21:20 +0200)]
Fix weak linkage

This removes the last sysroot patch apart from the few patches that disable tests

3 years agoUpdate Cranelift and object
bjorn3 [Thu, 20 Aug 2020 13:21:26 +0000 (15:21 +0200)]
Update Cranelift and object

3 years agoDon't test x86_64 simd on archs other than x86_64
bjorn3 [Thu, 20 Aug 2020 11:22:07 +0000 (13:22 +0200)]
Don't test x86_64 simd on archs other than x86_64

3 years agoUpdate target_feature_whitelist
bjorn3 [Wed, 19 Aug 2020 16:52:56 +0000 (18:52 +0200)]
Update target_feature_whitelist

3 years agoBump actions/cache to v2
bjorn3 [Wed, 19 Aug 2020 12:14:32 +0000 (14:14 +0200)]
Bump actions/cache to v2

3 years agoDon't disable incremental cache for cargo.sh
bjorn3 [Wed, 19 Aug 2020 12:07:43 +0000 (14:07 +0200)]
Don't disable incremental cache for cargo.sh

cc #1052

3 years ago[gh actions] Remove actions-rs/cargo step
bjorn3 [Wed, 19 Aug 2020 12:05:57 +0000 (14:05 +0200)]
[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

3 years agoAdd workaround for rust-lang/rust#74946
bjorn3 [Wed, 19 Aug 2020 11:51:49 +0000 (13:51 +0200)]
Add workaround for rust-lang/rust#74946

Fixes #1072

3 years agoEnforce linux style line endings to support WSL (#1073)
Craig Mayhew [Mon, 17 Aug 2020 20:28:12 +0000 (21:28 +0100)]
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>
3 years agoFix panic in when debug assertions are enabled
bjorn3 [Sun, 16 Aug 2020 18:55:22 +0000 (20:55 +0200)]
Fix panic in when debug assertions are enabled

3 years agoFix ambiguity between object and cranelift_object::object
bjorn3 [Sun, 16 Aug 2020 09:48:46 +0000 (11:48 +0200)]
Fix ambiguity between object and cranelift_object::object

3 years agoMerge pull request #1070 from bjorn3/cpuid
bjorn3 [Sat, 15 Aug 2020 19:27:06 +0000 (21:27 +0200)]
Merge pull request #1070 from bjorn3/cpuid

Emulate cpuid

3 years agoRemove cg_clif fake target feature
bjorn3 [Sat, 15 Aug 2020 19:04:33 +0000 (21:04 +0200)]
Remove cg_clif fake target feature

3 years agoFix ppv-lite86 with simd enabled
bjorn3 [Sat, 15 Aug 2020 18:55:03 +0000 (20:55 +0200)]
Fix ppv-lite86 with simd enabled

This fixes older rand versions that enable the simd feature of ppv-lite86

3 years agoEmulate the cpuid arch intrinsic
bjorn3 [Sat, 15 Aug 2020 16:55:32 +0000 (18:55 +0200)]
Emulate the cpuid arch intrinsic

3 years agoDisable the inline asm support using a feature flag
bjorn3 [Sat, 15 Aug 2020 12:19:23 +0000 (14:19 +0200)]
Disable the inline asm support using a feature flag

3 years agoRustup to rustc 1.47.0-nightly (ceedf1d5f 2020-08-08)
bjorn3 [Sun, 9 Aug 2020 17:42:37 +0000 (19:42 +0200)]
Rustup to rustc 1.47.0-nightly (ceedf1d5f 2020-08-08)

3 years agoEnable simd insert and extract tests
bjorn3 [Sat, 8 Aug 2020 14:32:03 +0000 (16:32 +0200)]
Enable simd insert and extract tests

Working since rust-lang/stdarch#876

Fixes #666

3 years agoRustup to rustc 1.47.0-nightly (09f4c9f50 2020-08-07)
bjorn3 [Sat, 8 Aug 2020 14:30:22 +0000 (16:30 +0200)]
Rustup to rustc 1.47.0-nightly (09f4c9f50 2020-08-07)

3 years agoRemove ArchiveConfig
bjorn3 [Sat, 8 Aug 2020 14:19:42 +0000 (16:19 +0200)]
Remove ArchiveConfig

3 years agoFix some warnings
bjorn3 [Sat, 8 Aug 2020 14:17:34 +0000 (16:17 +0200)]
Fix some warnings

3 years agoDon't panic on io errors
bjorn3 [Sat, 8 Aug 2020 14:14:11 +0000 (16:14 +0200)]
Don't panic on io errors

Fixes #920

3 years agoUpdate syn
bjorn3 [Wed, 5 Aug 2020 12:02:54 +0000 (14:02 +0200)]
Update syn

3 years agoUpdate Cranelift
bjorn3 [Wed, 5 Aug 2020 11:59:35 +0000 (13:59 +0200)]
Update Cranelift

3 years agoRustup to rustc 1.47.0-nightly (f9d422ea7 2020-08-04)
bjorn3 [Wed, 5 Aug 2020 11:55:27 +0000 (13:55 +0200)]
Rustup to rustc 1.47.0-nightly (f9d422ea7 2020-08-04)

3 years agoMerge pull request #1069 from Veetaha/feat/remove-perms-workaround
bjorn3 [Tue, 4 Aug 2020 07:47:11 +0000 (09:47 +0200)]
Merge pull request #1069 from Veetaha/feat/remove-perms-workaround

Remove cargo home perms workaround

3 years agoRemove cargo home perms workaround
Veetaha [Tue, 4 Aug 2020 00:33:31 +0000 (03:33 +0300)]
Remove cargo home perms workaround

3 years agoUpdate dependencies
bjorn3 [Thu, 30 Jul 2020 14:43:53 +0000 (16:43 +0200)]
Update dependencies

3 years agoUpdate Cranelift
bjorn3 [Thu, 30 Jul 2020 14:37:31 +0000 (16:37 +0200)]
Update Cranelift

3 years agoFix test path
bjorn3 [Thu, 30 Jul 2020 13:14:19 +0000 (15:14 +0200)]
Fix test path

3 years agoRustup to rustc 1.47.0-nightly (db0492ace 2020-07-29)
bjorn3 [Thu, 30 Jul 2020 12:58:27 +0000 (14:58 +0200)]
Rustup to rustc 1.47.0-nightly (db0492ace 2020-07-29)

3 years agoMerge pull request #951 from bjorn3/simd_improvements
bjorn3 [Sat, 25 Jul 2020 14:31:43 +0000 (16:31 +0200)]
Merge pull request #951 from bjorn3/simd_improvements

Simd improvements

3 years agoUse nehalem instead of haswell as target cpu
bjorn3 [Sat, 25 Jul 2020 14:15:42 +0000 (16:15 +0200)]
Use nehalem instead of haswell as target cpu

3 years agoFix panic
bjorn3 [Sat, 25 Jul 2020 11:17:49 +0000 (13:17 +0200)]
Fix panic

3 years agoDon't forbid i64x2 as simd type
bjorn3 [Sun, 29 Mar 2020 10:02:00 +0000 (12:02 +0200)]
Don't forbid i64x2 as simd type

3 years agoUse PassMode::ByVal for Abi::Vector
bjorn3 [Sat, 28 Mar 2020 14:33:50 +0000 (15:33 +0100)]
Use PassMode::ByVal for Abi::Vector

3 years agoHandle SIMD vectors in CPlace::place_field
bjorn3 [Sat, 28 Mar 2020 14:21:58 +0000 (15:21 +0100)]
Handle SIMD vectors in CPlace::place_field

3 years agoAllow storing SIMD vectors in SSA values
bjorn3 [Fri, 27 Mar 2020 19:55:54 +0000 (20:55 +0100)]
Allow storing SIMD vectors in SSA values

3 years agoDefault cargo.sh to release build of cg_clif
bjorn3 [Fri, 24 Jul 2020 12:21:31 +0000 (14:21 +0200)]
Default cargo.sh to release build of cg_clif

3 years agoFix -Zpolymorphize
bjorn3 [Thu, 23 Jul 2020 16:07:38 +0000 (18:07 +0200)]
Fix -Zpolymorphize

3 years agoAdd unaligned_volatile_{load,store} intrinsics
bjorn3 [Thu, 23 Jul 2020 10:37:27 +0000 (12:37 +0200)]
Add unaligned_volatile_{load,store} intrinsics

3 years agoFix multiple inline asm blocks in the same function
bjorn3 [Thu, 23 Jul 2020 10:37:03 +0000 (12:37 +0200)]
Fix multiple inline asm blocks in the same function

3 years agoRustup to rustc 1.47.0-nightly (bbebe7351 2020-07-22)
bjorn3 [Thu, 23 Jul 2020 09:42:44 +0000 (11:42 +0200)]
Rustup to rustc 1.47.0-nightly (bbebe7351 2020-07-22)

3 years agoUpdate README.md for #1068
bjorn3 [Mon, 20 Jul 2020 22:22:53 +0000 (00:22 +0200)]
Update README.md for #1068

3 years agoImplement simd_insert
bjorn3 [Sun, 19 Jul 2020 12:54:18 +0000 (14:54 +0200)]
Implement simd_insert

3 years agoUse SystemV abi for extern "sysv64" even on Windows
bjorn3 [Sun, 19 Jul 2020 12:45:58 +0000 (14:45 +0200)]
Use SystemV abi for extern "sysv64" even on Windows

3 years agoUpdate log dependency
bjorn3 [Fri, 17 Jul 2020 17:18:40 +0000 (19:18 +0200)]
Update log dependency

3 years agoRustup to rustc 1.46.0-nightly (5c9e5df3a 2020-07-16)
bjorn3 [Fri, 17 Jul 2020 17:15:33 +0000 (19:15 +0200)]
Rustup to rustc 1.46.0-nightly (5c9e5df3a 2020-07-16)

3 years agoMerge pull request #1068 from bjorn3/support_proc_macros
bjorn3 [Fri, 17 Jul 2020 11:07:11 +0000 (13:07 +0200)]
Merge pull request #1068 from bjorn3/support_proc_macros

Pass ByRef values at fixed stack offset for extern "C"

3 years agoPass ByRef values at fixed stack offset for extern "C"
bjorn3 [Mon, 20 Apr 2020 15:13:43 +0000 (17:13 +0200)]
Pass ByRef values at fixed stack offset for extern "C"

This makes it possible to build proc macros using cg_clif

3 years agoInitialize the atomic mutex in a constructor for proc macros
bjorn3 [Thu, 16 Jul 2020 12:58:41 +0000 (14:58 +0200)]
Initialize the atomic mutex in a constructor for proc macros

3 years agoAdd test for SwitchInt on 128bit integers
bjorn3 [Mon, 29 Jun 2020 09:23:49 +0000 (11:23 +0200)]
Add test for SwitchInt on 128bit integers

3 years agoRemove usage of extern_weak in fast_thread_local
bjorn3 [Thu, 16 Jul 2020 10:55:03 +0000 (12:55 +0200)]
Remove usage of extern_weak in fast_thread_local

3 years agoUse builtin ranlib instead of running external ranlib
bjorn3 [Sat, 11 Jul 2020 19:19:10 +0000 (21:19 +0200)]
Use builtin ranlib instead of running external ranlib

This makes it possible to create rlibs for any target without installing
a toolchain for the target

Fixes #763

4 years agoUpdate Cranelift
bjorn3 [Tue, 14 Jul 2020 19:14:14 +0000 (21:14 +0200)]
Update Cranelift

Fixes #757 (through bytecodealliance/wasmtime#1939)

4 years agoUse `From::from` instead of `as` where possible
bjorn3 [Tue, 14 Jul 2020 14:38:50 +0000 (16:38 +0200)]
Use `From::from` instead of `as` where possible

4 years agoNo silent truncating of SwitchInt values
bjorn3 [Mon, 13 Jul 2020 17:45:46 +0000 (19:45 +0200)]
No silent truncating of SwitchInt values

4 years agoUpdate dependencies
bjorn3 [Mon, 13 Jul 2020 17:41:52 +0000 (19:41 +0200)]
Update dependencies

4 years agoUpdate Cranelift
bjorn3 [Mon, 13 Jul 2020 17:35:21 +0000 (19:35 +0200)]
Update Cranelift

4 years agoRustup to rustc 1.46.0-nightly (9d09331e0 2020-07-12)
bjorn3 [Mon, 13 Jul 2020 17:32:31 +0000 (19:32 +0200)]
Rustup to rustc 1.46.0-nightly (9d09331e0 2020-07-12)

4 years agoMove RUSTDOCFLAGS to config.sh
bjorn3 [Mon, 13 Jul 2020 09:45:16 +0000 (11:45 +0200)]
Move RUSTDOCFLAGS to config.sh

4 years agoSet rust-analyzer.linkedProjects for vscode
bjorn3 [Sun, 12 Jul 2020 19:08:00 +0000 (21:08 +0200)]
Set rust-analyzer.linkedProjects for vscode

4 years agoAdd simple profile filter rust script (#1065)
bjorn3 [Sun, 12 Jul 2020 18:27:45 +0000 (20:27 +0200)]
Add simple profile filter rust script (#1065)

4 years agoMake everything in example.rs public
bjorn3 [Sat, 11 Jul 2020 09:02:23 +0000 (11:02 +0200)]
Make everything in example.rs public

4 years agoMerge pull request #1064 from bjorn3/inline_asm
bjorn3 [Fri, 10 Jul 2020 20:03:19 +0000 (22:03 +0200)]
Merge pull request #1064 from bjorn3/inline_asm

Basic inline asm support

4 years agoAdd basic inline asm support for x86_64
bjorn3 [Fri, 10 Jul 2020 12:45:45 +0000 (14:45 +0200)]
Add basic inline asm support for x86_64

4 years agoMove global_asm into CodegenCx
bjorn3 [Thu, 9 Jul 2020 17:24:53 +0000 (19:24 +0200)]
Move global_asm into CodegenCx

4 years agoMerge pull request #1062 from bjorn3/global_asm
bjorn3 [Thu, 9 Jul 2020 17:15:28 +0000 (19:15 +0200)]
Merge pull request #1062 from bjorn3/global_asm

Implement global_asm! using an external assembler

4 years agoDisable global_asm! on macOS for now
bjorn3 [Thu, 9 Jul 2020 16:56:17 +0000 (18:56 +0200)]
Disable global_asm! on macOS for now

4 years agoInfer the path of toolchain binaries from the linker path
bjorn3 [Thu, 9 Jul 2020 16:55:46 +0000 (18:55 +0200)]
Infer the path of toolchain binaries from the linker path

4 years agoImplement global_asm! using an external assembler
bjorn3 [Thu, 9 Jul 2020 14:55:38 +0000 (16:55 +0200)]
Implement global_asm! using an external assembler

Fixes #1061

4 years agoHandle SysV64 abi
bjorn3 [Thu, 9 Jul 2020 13:25:37 +0000 (15:25 +0200)]
Handle SysV64 abi

4 years agoAdd a feature flag for the JIT
bjorn3 [Thu, 9 Jul 2020 12:23:00 +0000 (14:23 +0200)]
Add a feature flag for the JIT

4 years agoUpdate dependencies
bjorn3 [Thu, 9 Jul 2020 11:23:45 +0000 (13:23 +0200)]
Update dependencies

4 years agoUpdate Cranelift
bjorn3 [Thu, 9 Jul 2020 11:17:38 +0000 (13:17 +0200)]
Update Cranelift

4 years agoRustup to rustc 1.46.0-nightly (8aa18cbdc 2020-07-08)
bjorn3 [Thu, 9 Jul 2020 11:13:29 +0000 (13:13 +0200)]
Rustup to rustc 1.46.0-nightly (8aa18cbdc 2020-07-08)

4 years agoAccount for Rvalue::AddressOf in analyze
bjorn3 [Fri, 3 Jul 2020 16:23:53 +0000 (18:23 +0200)]
Account for Rvalue::AddressOf in analyze

4 years agoMerge pull request #1058 from bjorn3/misc_rustc_test_suite_fixes
bjorn3 [Fri, 3 Jul 2020 15:34:31 +0000 (17:34 +0200)]
Merge pull request #1058 from bjorn3/misc_rustc_test_suite_fixes

Misc rustc test suite fixes

4 years agoImplement variant_count intrinisic
bjorn3 [Fri, 3 Jul 2020 14:52:56 +0000 (16:52 +0200)]
Implement variant_count intrinisic

4 years agoValidate simd and atomic intrinsic types
bjorn3 [Fri, 3 Jul 2020 14:52:37 +0000 (16:52 +0200)]
Validate simd and atomic intrinsic types