[PATCH] D109473: [APInt.h] Reduce the APInt header file interface a bit. NFC

Chris Lattner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 8 16:51:05 PDT 2021


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

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D109473

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109473.371474.patch
Type: text/x-patch
Size: 242380 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210908/c51ffd10/attachment-0001.bin>


More information about the llvm-commits mailing list