Michael Goulet
9dc41a048d
Use ExistentialTraitRef throughout codegen
2025-01-30 15:34:00 +00:00
Matthias Krüger
21313d7947
Rollup merge of #130457 - nnethercote:cleanup-codegen-traits, r=bjorn3
...
Cleanup codegen traits
The traits governing codegen are quite complicated and hard to follow. This PR cleans them up a bit.
r? `@bjorn3`
2024-09-18 17:49:43 +02:00
Nicholas Nethercote
cd3da000c0
Clean up formatting.
...
Reflow overly long comments, plus some minor whitespace improvements.
2024-09-17 16:24:35 +10:00
Nicholas Nethercote
a8d22eb39e
Rename supertraits of CodegenMethods.
...
Supertraits of `BuilderMethods` are all called `XyzBuilderMethods`.
Supertraits of `CodegenMethods` are all called `XyzMethods`. This commit
changes the latter to `XyzCodegenMethods`, for consistency.
2024-09-17 10:24:43 +10:00
Nicholas Nethercote
84ac80f192
Reformat use declarations.
...
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
2024-07-29 08:26:52 +10:00
bjorn3
aacdce38f7
Remove check_overflow method from MiscMethods
...
It can be retrieved from the Session too.
2024-06-21 19:30:26 +00:00
bjorn3
e9ea578147
Move vcall_visibility_metadata optimization hint out of a debuginfo generation method
2024-06-21 19:26:06 +00:00
bjorn3
c431ea681c
Remove several unused methods from MiscMethods
2022-10-01 16:45:07 +00:00
Nikita Popov
306259c645
Always use llvm.used for coverage symbols
...
This follows what clang does in CoverageMappingGen. Using just
llvm.compiler.used is insufficient at least for MSVC targets.
2021-08-21 10:08:05 +02:00
Simonas Kazlauskas
9b67cba4f6
Add support for leaf fn frame pointer elimination
...
This PR adds ability for the target specifications to specify frame
pointer emission type that's not just “always” or “whatever cg decides”.
In particular there's a new mode that allows omission of the frame
pointer for leaf functions (those that don't call any other functions).
We then set this new mode for Aarch64-based Apple targets.
Fixes #86196
2021-06-30 19:45:17 +03:00
khyperia
0bc405e352
Remove DeclareMethods
2020-09-18 13:11:59 +02:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00