Skip to content

vector.ctpopi

vector dialect

Lanewise population count over integer lanes. Each result lane is the number of set bits in the corresponding input lane and has the same integer element type as the input.

Operation contract

Property Value
Semantic phase
Traits Pure, Elementwise

Signature

Kind Name Type Cardinality Description
Operand input vector required
Result result vector required

Verification constraints

  • HasIntegerElement(result)
  • SameType(input, result)

Examples

Note

A canonical source example has not been added for this operation yet.