Skip to content

Commit 9c3500b

Browse files
Added apxf target feature support, under flag apx_target_feature
1 parent e4272d1 commit 9c3500b

File tree

5 files changed

+22
-7
lines changed

5 files changed

+22
-7
lines changed

Cargo.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
185185

186186
[[package]]
187187
name = "askama"
188-
version = "0.13.0"
188+
version = "0.13.1"
189189
source = "registry+https://github.com/rust-lang/crates.io-index"
190-
checksum = "9a4e46abb203e00ef226442d452769233142bbfdd79c3941e84c8e61c4112543"
190+
checksum = "5d4744ed2eef2645831b441d8f5459689ade2ab27c854488fbab1fbe94fce1a7"
191191
dependencies = [
192192
"askama_derive",
193193
"itoa",
@@ -198,9 +198,9 @@ dependencies = [
198198

199199
[[package]]
200200
name = "askama_derive"
201-
version = "0.13.0"
201+
version = "0.13.1"
202202
source = "registry+https://github.com/rust-lang/crates.io-index"
203-
checksum = "54398906821fd32c728135f7b351f0c7494ab95ae421d41b6f5a020e158f28a6"
203+
checksum = "d661e0f57be36a5c14c48f78d09011e67e0cb618f269cca9f2fd8d15b68c46ac"
204204
dependencies = [
205205
"askama_parser",
206206
"basic-toml",
@@ -222,7 +222,7 @@ dependencies = [
222222
"memchr",
223223
"serde",
224224
"serde_derive",
225-
"winnow 0.7.6",
225+
"winnow 0.7.9",
226226
]
227227

228228
[[package]]
@@ -6305,9 +6305,9 @@ dependencies = [
63056305

63066306
[[package]]
63076307
name = "winnow"
6308-
version = "0.7.6"
6308+
version = "0.7.9"
63096309
source = "registry+https://github.com/rust-lang/crates.io-index"
6310-
checksum = "63d3fcd9bba44b03821e7d699eeee959f3126dcc4aa8e4ae18ec617c2a5cea10"
6310+
checksum = "d9fb597c990f03753e08d3c29efbfcf2019a003b4bf4ba19225c158e1549f0f3"
63116311
dependencies = [
63126312
"memchr",
63136313
]

compiler/rustc_codegen_llvm/src/llvm_util.rs

+12
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,18 @@ pub(crate) fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> Option<LLVMFea
307307
("x86", "avx10.1") => Some(LLVMFeature::new("avx10.1-512")),
308308
("x86", "avx10.2") if get_version().0 < 20 => None,
309309
("x86", "avx10.2") if get_version().0 >= 20 => Some(LLVMFeature::new("avx10.2-512")),
310+
("x86", "apxf") => Some(LLVMFeature::with_dependencies(
311+
"egpr",
312+
smallvec![
313+
TargetFeatureFoldStrength::Both("push2pop2"),
314+
TargetFeatureFoldStrength::Both("ppx"),
315+
TargetFeatureFoldStrength::Both("ndd"),
316+
TargetFeatureFoldStrength::Both("ccmp"),
317+
TargetFeatureFoldStrength::Both("cf"),
318+
TargetFeatureFoldStrength::Both("nf"),
319+
TargetFeatureFoldStrength::Both("zu"),
320+
],
321+
)),
310322
(_, s) => Some(LLVMFeature::new(s)),
311323
}
312324
}

compiler/rustc_feature/src/unstable.rs

+1
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ declare_features! (
316316
// Unstable `#[target_feature]` directives.
317317
(unstable, aarch64_unstable_target_feature, "1.82.0", Some(44839)),
318318
(unstable, aarch64_ver_target_feature, "1.27.0", Some(44839)),
319+
(unstable, apx_target_feature, "CURRENT_RUSTC_VERSION", Some(139284)),
319320
(unstable, arm_target_feature, "1.27.0", Some(44839)),
320321
(unstable, avx512_target_feature, "1.27.0", Some(44839)),
321322
(unstable, bpf_target_feature, "1.54.0", Some(44839)),

compiler/rustc_span/src/symbol.rs

+1
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ symbols! {
459459
anonymous_lifetime_in_impl_trait,
460460
any,
461461
append_const_msg,
462+
apx_target_feature,
462463
arbitrary_enum_discriminant,
463464
arbitrary_self_types,
464465
arbitrary_self_types_pointers,

compiler/rustc_target/src/target_features.rs

+1
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ static X86_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
393393
("amx-tf32", Unstable(sym::x86_amx_intrinsics), &["amx-tile"]),
394394
("amx-tile", Unstable(sym::x86_amx_intrinsics), &[]),
395395
("amx-transpose", Unstable(sym::x86_amx_intrinsics), &["amx-tile"]),
396+
("apxf", Unstable(sym::apx_target_feature), &[]),
396397
("avx", Stable, &["sse4.2"]),
397398
(
398399
"avx10.1",

0 commit comments

Comments
 (0)