We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 564779c commit eb9ed3aCopy full SHA for eb9ed3a
compiler/rustc_typeck/src/collect.rs
@@ -2496,6 +2496,9 @@ fn compute_sig_of_foreign_fn_decl<'tcx>(
2496
/// Returns `Ok()` if the target-feature allows using the SIMD type on C FFI.
2497
/// Otherwise, returns `Err(Some())` if the target_feature needs to be enabled or
2498
/// or `Err(None)` if it's unsupported.
2499
+/// Some notes about arguments:
2500
+/// - `simd_len`: A vector register size as octet, i.e. vN in the tests.
2501
+/// - `simd_elem_width`: A width of each element as octet, e.g. v512 should be 16 on avx512.
2502
fn simd_ffi_feature_check(
2503
target: &str,
2504
simd_width: u64,
0 commit comments