[PATCH] D69439: [APInt] Introduce APIntOps::GetPositionOfMostSignificantDifferentBit()

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 25 11:11:56 PDT 2019


lebedev.ri created this revision.
lebedev.ri added reviewers: nikic, spatel, sanjoy, RKSimon.
lebedev.ri added a project: LLVM.
Herald added subscribers: dexonsmith, hiraditya.
lebedev.ri added a child revision: D69387: [ConstantRange] Add toKnownBits() method.

Compare two values, and if they are different, return the position of the
most significant bit that is different in the values.

Needed for D69387 <https://reviews.llvm.org/D69387>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D69439

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: D69439.226463.patch
Type: text/x-patch
Size: 4621 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191025/402ea88a/attachment.bin>


More information about the llvm-commits mailing list