This moves the isMask and isShiftedMask functions to be class methods. They now use the MathExtras.h function for single word size and leading/trailing zeros/ones or countPopulation for the multiword size. The previous implementation made multiple temorary memory allocations to do the bitwise arithmetic operations to match the MathExtras.h implementation.
Details
Details
Diff Detail
Diff Detail
Event Timeline
include/llvm/ADT/APInt.h | ||
---|---|---|
429 | comment looks wrong ? doesn't mention the numBits argument? |
drop "argument"