1
Fork 0

Clarify a comment.

I was confused here for a bit.
This commit is contained in:
Nicholas Nethercote 2025-01-29 14:27:02 +11:00
parent 6ac8878615
commit 97d1b0cbcd

View file

@ -199,7 +199,8 @@ pub fn check_intrinsic_type(
let split: Vec<&str> = name_str.split('_').collect();
assert!(split.len() >= 2, "Atomic intrinsic in an incorrect format");
//We only care about the operation here
// Each atomic op has variants with different suffixes (`_seq_cst`, `_acquire`, etc.). Use
// string ops to strip the suffixes, because the variants all get the same treatment here.
let (n_tps, inputs, output) = match split[1] {
"cxchg" | "cxchgweak" => (
1,