[all-commits] [llvm/llvm-project] 9e46dd: [APInt.h] Reduce the APInt header file interface a...

Chris Lattner via All-commits all-commits at lists.llvm.org
Wed Sep 8 18:17:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e46dd965abd5f52ae00c28cc4f23ec5706e7ba2
      https://github.com/llvm/llvm-project/commit/9e46dd965abd5f52ae00c28cc4f23ec5706e7ba2
  Author: Chris Lattner <clattner at nondot.org>
  Date:   2021-09-08 (Wed, 08 Sep 2021)

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

  Log Message:
  -----------
  [APInt.h] Reduce the APInt header file interface a bit. NFC

This moves one mid-size function out of line, inlines the
trivial tcAnd/tcOr/tcXor/tcComplement methods into their only
caller, and moves the magic/umagic functions into SelectionDAG
since they are implementation details of its algorithm. This
also removes the unit tests for magic, but these are already
tested in the divide lowering logic for various targets.

This also upgrades some C style comments to C++.

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




More information about the All-commits mailing list