[PATCH] D30525: [APInt] Add setLowBits/setHighBits methods to APInt.

Hans Wennborg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 2 13:37:54 PST 2017


hans added a comment.

The code looks fine to me, but I wonder if this buys much compared to `APInt::setBits`, which can easily be used to set only low or high bits. (The single-word case of that should probably be provided in an inline method actually?)


https://reviews.llvm.org/D30525





More information about the llvm-commits mailing list