Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 8 pull requests #128796

Merged
merged 39 commits into from
Aug 7, 2024
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift click to select a range
50835bf
impl Default for collection iterators that don't already have it
clarfonthey Jul 27, 2024
0b99720
Okay, I guess I have to give these a different feature name
clarfonthey Jul 27, 2024
ba0d6c9
Update generate-copyright
jonathanpallant Jul 4, 2024
204e3ea
generate-copyright: Produce HTML, not Markdown
jonathanpallant Jul 29, 2024
56f8479
generate-copyright: Fix typo
jonathanpallant Jul 30, 2024
dbab595
generate-copyright: use cargo-metadata
jonathanpallant Jul 30, 2024
f7e6bf6
generate-copyright: use rinja to format the output
jonathanpallant Jul 30, 2024
37ab090
REUSE.toml: Copyright text isn't parsed as Markdown.
jonathanpallant Jul 30, 2024
30ac7c9
generate-copyright: Render Node with rinja too.
jonathanpallant Jul 31, 2024
5277b67
generate-copyright: gather files inside interesting folders
jonathanpallant Aug 6, 2024
4e24e9b
Update to rinja 0.3
jonathanpallant Aug 6, 2024
99579f3
Apparently library/std is now part of a workspace at library/
jonathanpallant Aug 6, 2024
b174cf8
Integrate crlf directly into related test file instead via of .gitatt…
yaahc Aug 6, 2024
74653b6
Add implied target features to target_feature attribute
calebzulawski Jul 26, 2024
22c5952
Add test to ensure implied target features work with asm, and fix fai…
calebzulawski Jul 26, 2024
520a5a5
Fix codegen tests
calebzulawski Jul 26, 2024
c866e1f
Add missing features
calebzulawski Jul 29, 2024
34f29a2
Add sse4.2 due to #128426
calebzulawski Jul 31, 2024
3c48f65
Bless tests
calebzulawski Jul 31, 2024
fbd618d
Refactor and fill out target feature lists
calebzulawski Aug 2, 2024
484aca8
Don't use LLVM's target features
calebzulawski Aug 3, 2024
a25da07
Don't use LLVM to compute -Ctarget-feature
calebzulawski Aug 4, 2024
5006711
Remove redundant implied features
calebzulawski Aug 4, 2024
6b96a60
Add implied features to non-target-feature functions
calebzulawski Aug 4, 2024
83276f5
Hide implicit target features from diagnostics when possible
calebzulawski Aug 5, 2024
0b98a0c
Fix typo
calebzulawski Aug 5, 2024
8818c95
Disallow enabling features without their implied features
calebzulawski Aug 6, 2024
d1d21ed
rustc_codegen_ssa: Set architecture for object crate for 32-bit SPARC
glaubitz Aug 7, 2024
c189796
unused_parens: do not lint against parens around &raw
RalfJung Aug 7, 2024
8c06dc4
make `import.vis` is not mutable
bvanjoi Aug 6, 2024
273c67d
codegen: better centralize function attribute computation
RalfJung Aug 5, 2024
904f579
Rollup merge of #128221 - calebzulawski:implied-target-features, r=Am…
matthiaskrgr Aug 7, 2024
2ee9678
Rollup merge of #128261 - clarfonthey:iter-default, r=dtolnay
matthiaskrgr Aug 7, 2024
e342295
Rollup merge of #128353 - ferrocene:jonathanpallant/add-dependencies-…
matthiaskrgr Aug 7, 2024
8f39b86
Rollup merge of #128679 - RalfJung:codegen-fn-attrs, r=nikic
matthiaskrgr Aug 7, 2024
8f5b50d
Rollup merge of #128732 - bvanjoi:immutable-import-vis, r=petrochenkov
matthiaskrgr Aug 7, 2024
e5a3c32
Rollup merge of #128755 - yaahc:jj-crlf, r=estebank
matthiaskrgr Aug 7, 2024
04ab8e3
Rollup merge of #128772 - glaubitz:sparc-elf-fix, r=nagisa
matthiaskrgr Aug 7, 2024
aba506b
Rollup merge of #128782 - RalfJung:raw-addr-of-parens, r=compiler-errors
matthiaskrgr Aug 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add missing features
  • Loading branch information
calebzulawski committed Aug 7, 2024
commit c866e1f812b7436abce2b03ec56d62c77d6684a2
26 changes: 26 additions & 0 deletions compiler/rustc_target/src/target_features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,15 414,34 @@ const X86_IMPLIED_FEATURES: &[(&str, &[&str])] = &[
("aes", &["sse2"]),
("avx", &["sse4.2"]),
("avx2", &["avx"]),
("avx512bf16", &["avx512bw"]),
("avx512bitalg", &["avx512bw"]),
("avx512bw", &["avx512f"]),
("avx512cd", &["avx512f"]),
("avx512dq", &["avx512f"]),
("avx512f", &["avx2"]),
("avx512fp16", &["avx512bw", "avx512vl", "avx512dq"]),
("avx512vbmi", &["avx512bw"]),
("avx512vbmi2", &["avx512bw"]),
("avx512vl", &["avx512f"]),
("avx512vnni", &["avx512f"]),
("avx512vp2intersect", &["avx512f"]),
("avx512vpopcntdq", &["avx512f"]),
("f16c", &["avx"]),
("fma", &["avx"]),
("gfni", &["sse2"]),
("pclmulqdq", &["sse2"]),
("sha", &["sse2"]),
("sse2", &["sse"]),
("sse3", &["sse2"]),
("sse4.1", &["ssse3"]),
("sse4.2", &["sse4.1"]),
("ssse3", &["sse3"]),
("vaes", &["avx", "aes"]),
("vpclmulqdq", &["avx", "pclmulqdq"]),
("xsavec", &["xsave"]),
("xsaveopt", &["xsave"]),
("xsaves", &["xsave"]),
// tidy-alphabetical-end
];

Expand Down Expand Up @@ -457,6 476,12 @@ const RISCV_IMPLIED_FEATURES: &[(&str, &[&str])] = &[
// tidy-alphabetical-end
];

const WASM_IMPLIED_FEATURES: &[(&str, &[&str])] = &[
// tidy-alphabetical-start
("relaxed-simd", &["simd128"]),
// tidy-alphabetical-end
];

/// When rustdoc is running, provide a list of all known features so that all their respective
/// primitives may be documented.
///
Expand Down Expand Up @@ -509,6 534,7 @@ impl super::spec::Target {
"aarch4" => AARCH64_IMPLIED_FEATURES,
"riscv32" | "riscv64" => RISCV_IMPLIED_FEATURES,
"x86" | "x86_64" => X86_IMPLIED_FEATURES,
"wasm32" | "wasm64" => WASM_IMPLIED_FEATURES,
_ => &[],
}
}
Expand Down