[all-commits] [llvm/llvm-project] 9d77ad: [APInt] Introduce APIntOps::GetMostSignificantDiff...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Sat Oct 26 13:22:27 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d77ad57540c45b0a6e6ffcf8721a3189c0ed70e
      https://github.com/llvm/llvm-project/commit/9d77ad57540c45b0a6e6ffcf8721a3189c0ed70e
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2019-10-26 (Sat, 26 Oct 2019)

  Changed paths:
    M llvm/include/llvm/ADT/APInt.h
    M llvm/lib/Support/APInt.cpp
    M llvm/unittests/ADT/APIntTest.cpp

  Log Message:
  -----------
  [APInt] Introduce APIntOps::GetMostSignificantDifferentBit()

Summary:
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.

Reviewers: nikic, spatel, sanjoy, RKSimon

Reviewed By: nikic

Subscribers: xbolva00, hiraditya, dexonsmith, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D69439




More information about the All-commits mailing list