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
- Repository
- rL LLVM
Event Timeline
include/llvm/ADT/APInt.h | ||
---|---|---|
429 ↗ | (On Diff #93740) | comment looks wrong ? doesn't mention the numBits argument? |
Comment Actions
lgtm with a nit about the comment
include/llvm/ADT/APInt.h | ||
---|---|---|
428 ↗ | (On Diff #93752) | drop "argument" |