aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Index/annotate-nested-name-specifier.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2017-03-10 13:44:32 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2017-03-10 13:44:32 +0000
commitb02667c469493e8f1eee4601d175942c9e80c73d (patch)
treeca9f54e6c64afb485db66deae194e50ae5dc57bb /clang/test/Index/annotate-nested-name-specifier.cpp
parent7090d145e8eb0164e5862321e76ecfc1736dd741 (diff)
downloadllvm-b02667c469493e8f1eee4601d175942c9e80c73d.zip
llvm-b02667c469493e8f1eee4601d175942c9e80c73d.tar.gz
llvm-b02667c469493e8f1eee4601d175942c9e80c73d.tar.bz2
[APInt] Add APInt::insertBits() method to insert an APInt into a larger APInt
We currently have to insert bits via a temporary variable of the same size as the target with various shift/mask stages, resulting in further temporary variables, all of which require the allocation of memory for large APInts (MaskSizeInBits > 64). This is another of the compile time issues identified in PR32037 (see also D30265). This patch adds the APInt::insertBits() helper method which avoids the temporary memory allocation and masks/inserts the raw bits directly into the target. Differential Revision: https://reviews.llvm.org/D30780 llvm-svn: 297458
Diffstat (limited to 'clang/test/Index/annotate-nested-name-specifier.cpp')
0 files changed, 0 insertions, 0 deletions