Commit Graph

877 Commits

Author SHA1 Message Date
Guillaume Gomez
a6d1aa2810 Update gccjit dependency 2023-07-12 16:56:24 +02:00
Guillaume Gomez
97a0d35a8c Add support for "returns_twice" function attribute 2023-07-12 16:56:24 +02:00
antoyo
e062c2cc3b
Merge pull request #303 from rust-lang/license
Add license explanations
2023-07-09 10:18:27 -04:00
Antoni Boucher
e1092eb4d1 Add license explanations 2023-07-09 10:17:54 -04:00
antoyo
c4e86b6c3b
Merge pull request #299 from rust-lang/feature/jit-cpu-features
Add support for detecting CPU features
2023-07-05 17:45:59 -04:00
Boxy
761324d1df Move TyCtxt::mk_x to Ty::new_x where applicable 2023-07-05 20:27:07 +01:00
Antoni Boucher
91e04000ea Add support for detecting CPU features 2023-07-05 13:54:14 -04:00
Zalathar
744d05ccb6 Remove trait CoverageInfoMethods, since non-LLVM backends don't need it
These methods are only ever called from within `rustc_codegen_llvm`, so they
can just be declared there as well.
2023-07-05 20:40:40 +10:00
Zalathar
d710bee436 Narrow trait CoverageInfoBuilderMethods down to just one method
This effectively inlines most of `FunctionCx::codegen_coverage` into the LLVM
implementation of `CoverageInfoBuilderMethods`.
2023-07-05 20:40:39 +10:00
antoyo
48a3613a73
Merge pull request #286 from GuillaumeGomez/cold-attribute
Add support for cold attribute
2023-07-03 12:36:36 -04:00
Guillaume Gomez
5920bad104 Update dependencies 2023-07-03 16:56:34 +02:00
Guillaume Gomez
afc6489394 Add support for cold attribute 2023-06-30 17:11:09 +02:00
bors
ac79ddb6ca Auto merge of #112814 - antoyo:sync-cg_gcc-2023-06-19, r=bjorn3
Sync rustc_codegen_gcc 2023/06/19

Hi.
This is a sync of the rustc_codegen_gcc subtree.
Thanks.
2023-06-22 02:11:08 +00:00
Michael Goulet
ab1e4bb372 Rollup merge of #112499 - tgross35:py-ruff-fixes, r=Mark-Simulacrum
Fix python linting errors

These were flagged by `ruff`, run using the config in https://github.com/rust-lang/rust/pull/112482
2023-06-19 17:53:34 -07:00
Antoni Boucher
3dd0699e45 Update Cargo.lock 2023-06-19 20:44:01 -04:00
Antoni Boucher
38c16e9862 Merge commit '1bbee3e217d75e7bc3bfe5d8c1b35e776fce96e6' into sync-cg_gcc-2023-06-19 2023-06-19 18:51:02 -04:00
antoyo
1bbee3e217
Merge pull request #282 from rust-lang/sync_from_rust_2023_06_11
Sync from rust 2023 06 11
2023-06-19 18:45:38 -04:00
Antoni Boucher
37413a2cea Fix indent 2023-06-18 19:42:20 -04:00
Antoni Boucher
607cbfda14 Cleanup and update to rustc 2023-06-19 2023-06-19 10:53:33 -04:00
Antoni Boucher
3d7ec5923d Fix for check_ptr_call for variadic functions 2023-06-17 13:19:41 -04:00
bors
876a7d8d6f Auto merge of #100036 - DrMeepster:box_free_free_box, r=oli-obk
Remove `box_free` lang item

This PR removes the `box_free` lang item, replacing it with `Box`'s `Drop` impl. Box dropping is still slightly magic because the contained value is still dropped by the compiler.
2023-06-17 16:10:57 +00:00
Trevor Gross
42ecb50d56 Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
DrMeepster
ec100514f8 remove box_free and replace with drop impl 2023-06-16 13:41:06 -07:00
Antoni Boucher
8560b07ebf TO REVERT: temporarily add a patch for rustc 2023-06-15 20:52:45 -04:00
Antoni Boucher
45bca00520 Handle alignment of the load instruction 2023-06-16 12:48:09 -04:00
Antoni Boucher
218575a8ae Working, but requires a patched rustc 2023-06-15 20:45:20 -04:00
Antoni Boucher
9483008d71 Tests for the CI 2023-06-13 09:01:09 -04:00
Antoni Boucher
8bba64673c Cleanup 2023-06-11 20:01:24 -04:00
Antoni Boucher
ef037e6d30 Fix tests 2023-06-11 19:27:39 -04:00
Antoni Boucher
3371fce044 Fix tests 2023-06-11 18:21:00 -04:00
Antoni Boucher
90527b81c9 Some fixes and cleanups 2023-06-11 16:04:00 -04:00
Antoni Boucher
a0edbfb2d3 Test to fix UI tests 2023-06-11 11:52:50 -04:00
Antoni Boucher
e9708ebcef Add note 2023-06-11 11:52:44 -04:00
Antoni Boucher
984b9c52cc Improve sync instructions 2023-06-11 11:52:40 -04:00
Antoni Boucher
6f858a2b0f Add missing cast to fix another issue caused by opaque pointers 2023-06-11 11:52:34 -04:00
Antoni Boucher
e74bc5113d Attempt to fix the tests 2023-06-11 11:52:27 -04:00
Antoni Boucher
4115e09c13 Fix for opaque pointers 2023-06-11 11:52:15 -04:00
Antoni Boucher
3d4c59ed75 Merge branch 'master' into sync_from_rust_2023_06_11 2023-06-11 11:52:06 -04:00
Antoni Boucher
94e5c27012 Update libgccjit and mini_core 2023-06-11 11:41:32 -04:00
Antoni Boucher
c8376e4c78 Add usage of git subtree to readme 2023-06-11 11:41:14 -04:00
Antoni Boucher
8c2b14f708 Update to nightly-2023-06-11 2023-06-11 11:41:06 -04:00
DonoughLiu
9176f51a9b Support 128-bit enum variant in debuginfo codegen 2023-06-10 03:39:24 +08:00
antoyo
ffb092dbf1
Merge pull request #279 from GuillaumeGomez/regen-intrinsics
Regen intrinsics with latest LLVM version
2023-06-09 08:53:27 -04:00
Andrew Xie
8430ec5e50 Updated cranelift codegen to reflect modified trait signature 2023-06-04 21:54:38 -04:00
Guillaume Gomez
2c6b979295 Regen intrinsics with latest LLVM version 2023-06-02 16:22:50 +02:00
Deadbeef
f16ca93ded Use translatable diagnostics in rustc_const_eval 2023-06-01 14:45:18 +00:00
Scott McMurray
3d0a0dccae Add a distinct OperandValue::ZeroSized variant for ZSTs
These tend to have special handling in a bunch of places anyway, so the variant helps remember that.  And I think it's easier to grok than non-Scalar Aggregates sometimes being `Immediates` (like I got wrong and caused 109992).  As a minor bonus, it means we don't need to generate poison LLVM values for them to pass around in `OperandValue::Immediate`s.
2023-05-31 19:10:28 -07:00
bors
afe578791a Auto merge of #111768 - oli-obk:pair_const_llvm, r=cjgillot
Optimize scalar and scalar pair representations loaded from ByRef in llvm

in https://github.com/rust-lang/rust/pull/105653 I noticed that we were generating suboptimal LLVM IR if we had a `ConstValue::ByRef` that could be represented by a `ScalarPair`. Before https://github.com/rust-lang/rust/pull/105653 this is probably rare, but after it, every slice will go down this suboptimal code path that requires LLVM to untangle a bunch of indirections and translate static allocations that are only used once to read a scalar pair from.
2023-05-30 10:31:10 +00:00
Oli Scherer
80efecf18c Stop creating intermediate places just to immediate convert them to operands 2023-05-26 15:01:29 +00:00
clubby789
d9d12d7c36 Ensure Fluent messages are in alphabetical order 2023-05-25 23:49:35 +00:00