My understanding is that if you want to do multiple variants then there isn't a complete story there, but it’s going to look something like building on top of #[target_feature] — explicitly asking for variants of a function to be compiled, and then explicitly dispatching to them after feature detection. Implicit dispatching would run the risk of putting the branching in the wrong place (inside rather than outside a hot loop).
1 Like