[PATCH] D109620: [APInt] Add a concat method, use LLVM_UNLIKELY to help optimizer.

Chris Lattner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 10 11:31:35 PDT 2021


lattner created this revision.
Herald added subscribers: dexonsmith, hiraditya.
lattner requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Three unrelated changes:

1. Add a concat method as a convenience to help write bitvector use cases in a nicer way.
2. Use LLVM_UNLIKELY as suggested by @xbolva00 in a previous patch.
3. Fix casing of some "slow" methods to follow naming standards.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D109620

Files:
  llvm/include/llvm/ADT/APInt.h
  llvm/lib/Support/APInt.cpp
  llvm/unittests/ADT/APIntTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109620.371978.patch
Type: text/x-patch
Size: 6990 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210910/ead9810a/attachment.bin>


More information about the llvm-commits mailing list