1
Fork 0
rust/compiler/rustc_codegen_gcc/src
Matthias Krüger 904f5795a0
Rollup merge of #128221 - calebzulawski:implied-target-features, r=Amanieu
Add implied target features to target_feature attribute

See [zulip](https://rust-lang.zulipchat.com/#narrow/stream/208962-t-libs.2Fstdarch/topic/Why.20would.20target-feature.20include.20implied.20features.3F) for some context.  Adds implied target features, e.g. `#[target_feature(enable = "avx2")]` acts like `#[target_feature(enable = "avx2,avx,sse4.2,sse4.1...")]`.  Fixes #128125, fixes #128426

The implied feature sets are taken from [the rust reference](https://doc.rust-lang.org/reference/attributes/codegen.html?highlight=target-fea#x86-or-x86_64), there are certainly more features and targets to add.

Please feel free to reassign this to whoever should review it.

r? ``@Amanieu``
2024-08-07 20:28:16 +02:00
..
back Merge commit '98ed962c7d' into master 2024-07-10 12:44:23 +02:00
intrinsic Reformat use declarations. 2024-07-29 08:26:52 +10:00
abi.rs Format cg_gcc with same formatting parameters 2024-07-17 20:22:07 +02:00
allocator.rs Merge commit 'b385428e3d' into subtree-update_cg_gcc_2024-03-05 2024-03-05 19:58:36 +01:00
archive.rs Move computation of decorated names out of the create_dll_import_lib method 2024-07-30 10:32:32 +00:00
asm.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
attributes.rs Hide implicit target features from diagnostics when possible 2024-08-07 00:43:52 -04:00
base.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
builder.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
callee.rs Merge commit '98ed962c7d' into master 2024-07-10 12:44:23 +02:00
common.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
consts.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
context.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
coverageinfo.rs Unbox and unwrap the contents of StatementKind::Coverage 2024-03-23 22:05:11 +11:00
debuginfo.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
declare.rs Merge commit '98ed962c7d' into master 2024-07-10 12:44:23 +02:00
errors.rs Remove redundant argument from subdiagnostic method 2024-06-18 15:42:11 +00:00
gcc_util.rs Refactor and fill out target feature lists 2024-08-07 00:41:48 -04:00
int.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
lib.rs Refactor and fill out target feature lists 2024-08-07 00:41:48 -04:00
mono_item.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
type_.rs Merge commit '98ed962c7d' into master 2024-07-10 12:44:23 +02:00
type_of.rs Merge commit '98ed962c7d' into master 2024-07-10 12:44:23 +02:00