rust/compiler/rustc_codegen_llvm/src
bors c42d846add Auto merge of #94229 - erikdesjardins:rem2, r=nikic
Remove LLVM attribute removal

This was necessary before, because `declare_raw_fn` would always apply
the default optimization attributes to every declared function.
Then `attributes::from_fn_attrs` would have to remove the default
attributes in the case of, e.g. `#[optimize(speed)]` in a `-Os` build.
(see [`src/test/codegen/optimize-attr-1.rs`](03a8cc7df1/src/test/codegen/optimize-attr-1.rs (L33)))

However, every relevant callsite of `declare_raw_fn` (i.e. where we
actually generate code for the function, and not e.g. a call to an
intrinsic, where optimization attributes don't [?] matter)
calls `from_fn_attrs`, so we can remove the attribute setting
from `declare_raw_fn`, and rely on `from_fn_attrs` to apply the correct
attributes all at once.

r? `@ghost` (blocked on #94221)
`@rustbot` label S-blocked
2022-03-02 08:48:33 +00:00
..
back Auto merge of #87402 - nagisa:nagisa/request-feature-requests-for-features, r=estebank 2022-03-02 03:03:22 +00:00
coverageinfo Rollup merge of #90132 - joshtriplett:stabilize-instrument-coverage, r=wesleywiser 2022-02-04 18:42:13 +01:00
debuginfo Auto merge of #93644 - michaelwoerister:simpler-debuginfo-typemap, r=wesleywiser 2022-02-25 11:00:32 +00:00
llvm Auto merge of #94229 - erikdesjardins:rem2, r=nikic 2022-03-02 08:48:33 +00:00
abi.rs just put smallvec lengths in the signature 2022-02-26 16:58:17 -05:00
allocator.rs Add LLVM attributes in batches instead of individually 2022-02-26 13:14:55 -05:00
asm.rs Add LLVM attributes in batches instead of individually 2022-02-26 13:14:55 -05:00
attributes.rs Auto merge of #94229 - erikdesjardins:rem2, r=nikic 2022-03-02 08:48:33 +00:00
base.rs Add LLVM attributes in batches instead of individually 2022-02-26 13:14:55 -05:00
builder.rs Auto merge of #94402 - erikdesjardins:revert-coldland, r=nagisa 2022-03-01 08:57:46 +00:00
callee.rs Remove in_band_lifetimes from rustc_codegen_llvm 2021-12-16 14:43:32 -05:00
common.rs Remove in_band_lifetimes from rustc_codegen_llvm 2021-12-16 14:43:32 -05:00
consts.rs Auto merge of #94130 - erikdesjardins:partially, r=nikic 2022-02-25 05:44:33 +00:00
context.rs Auto merge of #94221 - erikdesjardins:addattr, r=nikic 2022-02-27 09:23:24 +00:00
declare.rs Remove LLVM attribute removal 2022-02-28 00:02:11 -05:00
intrinsic.rs Introduce Bx::switch_to_block 2022-02-24 12:18:21 +01:00
lib.rs Querify global_backend_features 2022-03-01 01:57:25 +02:00
llvm_util.rs Auto merge of #87402 - nagisa:nagisa/request-feature-requests-for-features, r=estebank 2022-03-02 03:03:22 +00:00
mono_item.rs Remove in_band_lifetimes from rustc_codegen_llvm 2021-12-16 14:43:32 -05:00
type_.rs Remove in_band_lifetimes from rustc_codegen_llvm 2021-12-16 14:43:32 -05:00
type_of.rs Reapply cg_llvm: fewer_names in uncached_llvm_type 2022-02-22 08:23:53 +01:00
va_arg.rs Introduce Bx::switch_to_block 2022-02-24 12:18:21 +01:00
value.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00