]> granicus.if.org Git - llvm/commit
[APInt] Generalize the implementation of tcIncrement to support adding a full 'word...
authorCraig Topper <craig.topper@gmail.com>
Thu, 13 Apr 2017 04:36:06 +0000 (04:36 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 13 Apr 2017 04:36:06 +0000 (04:36 +0000)
commitcd686df68a2f1a014c32e98a76128766db373cfc
tree6fd70d7a7cbff18b00e32615ae0a6ec838cfdc08
parentc1231f81aea57eab1fcc7151e79664fa47e6b487
[APInt] Generalize the implementation of tcIncrement to support adding a full 'word' by introducing tcAddPart. Use this to support tcIncrement, operator++ and operator+=(uint64_t). Do the same for subtract. NFCI.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300169 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APInt.h
lib/Support/APInt.cpp