Skip to content

Commit eb9ed3a

Browse files
committed
Add some notes about arguments
1 parent 564779c commit eb9ed3a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_typeck/src/collect.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2496,6 +2496,9 @@ fn compute_sig_of_foreign_fn_decl<'tcx>(
24962496
/// Returns `Ok()` if the target-feature allows using the SIMD type on C FFI.
24972497
/// Otherwise, returns `Err(Some())` if the target_feature needs to be enabled or
24982498
/// 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.
24992502
fn simd_ffi_feature_check(
25002503
target: &str,
25012504
simd_width: u64,

0 commit comments

Comments
 (0)