VPOPCNTDQ is a new feature set that Intel published here.
The patch represents the LLVM side of the addition of two new intrinsic based instructions (vpopcntd and vpopcntq).
Notice that this patch does not include pattern matching (auto generation) of the commands. This will be introduced in future review.
I think we're trying to keep the checks in order by bit position here. Can you move this up?