Skip to main content

coverage_in

Function coverage_in 

Source
pub fn coverage_in(lift_subgroup: bool, stmt: &Stmt) -> Coverage
Expand description

The coverage of stmt for an emitter that lowers the ruled subgroup collectives (lift_subgroup, the answer of Dialect::subgroup_collectives(): WGSL and MSL since #186) or not (every other emitter). It is coverage except for a Stmt::Collective that collective_is_ruled admits, which a lifting emitter LOWERS: coverage alone says “refused for exposure” (ROADMAP row 8w). It calls collective_is_ruled exactly, so what counts as lowered cannot widen here without widening there; the unruled kinds and scopes, and CollectiveTuple, stay Coverage::Patent for every emitter.

Lowered here answers the exposure question (is it refused by name?), not “does every emitter lower every form”: MSL still declines Vote(Ballot) as an unmeasured conversion, a different refusal that its own test pins.