Commit Graph

2559 Commits

Author SHA1 Message Date
bjorn3
70cc242545 Remove a couple of duplicate calls 2022-01-09 15:38:45 +01:00
bjorn3
c5b969583f Split codegen_intrinsic_call function
This should reduce compile times of cg_clif
2022-01-09 15:36:05 +01:00
bjorn3
9913630158 Reduce usage of subst types in the intrinsic code
Using the arguments often saves a layout_of call
2022-01-09 14:54:43 +01:00
bjorn3
e4fff03d40 Update Cranelift to 0.79.1
This version fixes the regressions in 0.79.0
2022-01-05 12:22:23 +01:00
Matthias Krüger
1da0071338 Rollup merge of #90102 - nbdd0121:box3, r=jonas-schievink
Remove `NullOp::Box`

Follow up of #89030 and MCP rust-lang/compiler-team#460.

~1 month later nothing seems to be broken, apart from a small regression that #89332 (1aac85bb716c09304b313d69d30d74fe7e8e1a8e) shows could be regained by remvoing the diverging path, so it shall be safe to continue and remove `NullOp::Box` completely.

r? `@jonas-schievink`
`@rustbot` label T-compiler
2022-01-03 14:44:15 +01:00
bjorn3
720cd94cef Merge branch 'sync_from_rust' 2021-12-30 14:54:21 +01:00
bjorn3
a5a14258e5 Merge commit '40b00f4200fbdeefd11815398cb46394b8cb0a5e' into sync_cg_clif-2021-12-30 2021-12-30 14:53:41 +01:00
bjorn3
40b00f4200 Disable incremental compilation on CI
Fixes #1198
2021-12-30 14:07:58 +01:00
bjorn3
c63d8f3f96 Move incr comp enable to the build system 2021-12-30 13:03:32 +01:00
bjorn3
f97670a315 Don't enable optimizations in the dev profile
I rarely use the dev profile anyway.
2021-12-30 13:01:38 +01:00
bjorn3
f6d0e14b79 Fix dead code warning on windows 2021-12-30 12:56:45 +01:00
bjorn3
6b4e640dcb Only deny warnings for cg_clif build itself
cc #1213
2021-12-30 12:40:23 +01:00
bjorn3
304a50b768 Rustup to rustc 1.59.0-nightly (78fd0f633 2021-12-29) 2021-12-30 12:23:45 +01:00
bjorn3
4b1a2438f8 Allow false positive unreachable code warning 2021-12-30 12:23:32 +01:00
bjorn3
40e88469ce Enforce rustfmt on CI
Fixes #1214
2021-12-30 12:11:07 +01:00
bjorn3
9bcdb53053 Rustfmt 2021-12-30 12:10:59 +01:00
bjorn3
7c62357bce Deny warnings on CI
Fixes #1213
2021-12-30 12:05:54 +01:00
bjorn3
0dd3d28cff Rename cargo executable to cargo-clif
This allows executing it like cargo clif build if you add it to your
PATH. It also fixes infinite recursion on Windows when invoking it as
Windows includes the current directory in PATH by default.

Fixes #971
2021-12-30 11:39:30 +01:00
bjorn3
0467c6a307 Add y.bin.dSYM to .gitignore 2021-12-28 16:16:49 +01:00
bjorn3
9089c305da Remove TyCtxt dependency from UnwindContext 2021-12-27 17:54:06 +01:00
bjorn3
ad5966ed4c Run incremental rustc tests and update broken test list 2021-12-26 14:11:09 +01:00
bjorn3
d3323fe685 Test rustc tests with unstable features disabled 2021-12-26 14:10:30 +01:00
bjorn3
7762c7a75e
Fix schedule time
Run at 01:17 UTC instead of 17:01
2021-12-26 11:55:12 +01:00
bjorn3
eb158de811 Merge branch 'sync_from_rust' 2021-12-20 18:57:45 +01:00
bjorn3
799e067912 Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20 2021-12-20 18:56:35 +01:00
bjorn3
97e5045493 Fix taking address of truly unsized type field of unsized adt 2021-12-20 18:49:43 +01:00
bjorn3
f557a7effb Rustup to rustc 1.59.0-nightly (e95e084a1 2021-12-19) 2021-12-20 18:21:55 +01:00
bjorn3
bb6d83dac9 Sync from rust 84f962a89b 2021-12-20 18:12:18 +01:00
bors
c3a9a9b424 Auto merge of #91957 - nnethercote:rm-SymbolStr, r=oli-obk
Remove `SymbolStr`

This was originally proposed in https://github.com/rust-lang/rust/pull/74554#discussion_r466203544. As well as removing the icky `SymbolStr` type, it allows the removal of a lot of `&` and `*` occurrences.

Best reviewed one commit at a time.

r? `@oli-obk`
2021-12-19 09:31:37 +00:00
bjorn3
8726625867 Add cron job to test against latest cranelift version every day
Fixes #1212
2021-12-18 19:14:52 +01:00
bjorn3
a795a0384b Remove triple method from FunctionCx
Instead use the default_call_conv field on TargetFrontendConfig to get
the default CallConv.
2021-12-18 15:46:30 +01:00
bjorn3
fdd0f8a3b5 Slightly reduce the amount of fx.module references 2021-12-18 15:33:31 +01:00
bjorn3
f505157f2c Revert "Update Cranelift to 0.79.0"
This reverts commit a1037fad7d.

There are two regressions in Cranelift with respect to small integer
operations. Both have already been fixed on thebmain branch, but we will
have to wait for a new Cranelift release. They have been fixed by
bytecodealliance/wasmtime#3610 and bytecodealliance/wasmtime#3617.
2021-12-17 23:23:17 +01:00
bjorn3
b532f13ad0 Update cranelift patch section 2021-12-17 10:59:00 +01:00
bjorn3
a1037fad7d Update Cranelift to 0.79.0 2021-12-16 18:57:25 +01:00
bjorn3
9e755f483a Update libc 2021-12-16 14:46:43 +01:00
bjorn3
97a92ea6b2 Rustc tests: ignore a couple more rustdoc tests 2021-12-16 14:36:02 +01:00
bjorn3
d0f97fc039 Rustup to rustc 1.59.0-nightly (c5ecc1570 2021-12-15) 2021-12-16 14:11:04 +01:00
bjorn3
d084fca557 Sync from rust a090c8659c 2021-12-16 13:52:12 +01:00
bjorn3
2cb4fe711e Fix unused crate warning 2021-12-16 13:51:18 +01:00
bjorn3
f74cf39a74 Fix crash when struct argument size is not a multiple of the pointer size
Fixes #1200
2021-12-15 16:53:35 +01:00
Nicholas Nethercote
93511d926f Remove unnecessary sigils around Symbol::as_str() calls. 2021-12-15 17:32:14 +11:00
Nicholas Nethercote
75f6118ad1 Remove SymbolStr.
By changing `as_str()` to take `&self` instead of `self`, we can just
return `&str`. We're still lying about lifetimes, but it's a smaller lie
than before, where `SymbolStr` contained a (fake) `&'static str`!
2021-12-15 13:30:26 +11:00
Matthias Krüger
c57bcb8fcb Rollup merge of #91868 - tmiasko:llvm-time-trace-out, r=oli-obk
Use `OutputFilenames` to generate output file for `-Zllvm-time-trace`

The resulting profile will include the crate name and will be stored in
the `--out-dir` directory.

This implementation makes it convenient to use LLVM time trace together
with cargo, in the contrast to the previous implementation which would
overwrite profiles or store them in `.cargo/registry/..`.
2021-12-15 01:28:06 +01:00
Amanieu d'Antras
edeb3891e9 Remove invalid doc links. 2021-12-13 20:40:17 +00:00
Tomasz Miąsko
a4bf9fbdbf Use OutputFilenames to generate output file for -Zllvm-time-trace
The resulting profile will include the crate name and will be stored in
the `--out-dir` directory.

This implementation makes it convenient to use LLVM time trace together
with cargo, in the contrast to the previous implementation which would
overwrite profiles or store them in `.cargo/registry/..`.
2021-12-13 00:00:00 +00:00
bjorn3
057635b9da Rustfmt 2021-12-09 13:43:32 +01:00
bjorn3
47962076a1 Use cg_ssa for creating the dylib metadata file
The new api was introduced in rust-lang/rust#91604
2021-12-09 13:36:33 +01:00
bjorn3
95cfeb4dde Rustup to rustc 1.59.0-nightly (e6b883c74 2021-12-08) 2021-12-09 13:23:10 +01:00
bjorn3
aaf508cab3 Use const thread_local! 2021-12-07 18:25:27 +01:00