Constraints on binary black hole populations from LIGO–Virgo detections