[NFC] Restore magic and magicu to a globally visible location
authorChristopher Tetreault <ctetreau@quicinc.com>
Thu, 30 Sep 2021 17:34:56 +0000 (10:34 -0700)
committerChristopher Tetreault <ctetreau@quicinc.com>
Fri, 1 Oct 2021 00:43:12 +0000 (17:43 -0700)
commit3077bc90de8df633d59fe30c2a2aa265d68fb987
treef1634ef526e7faa9e82dddf7b1a01f8e0accd933
parent91bfccf83733e6d12a6da9f2e1a2d20a88fb974c
[NFC] Restore magic and magicu to a globally visible location

While these functions are only used in one location in upstream,
it has been reused in multiple downstreams. Restore this file to
a globally visibile location (outside of APInt.h) to eliminate
donwstream breakage and enable potential future reuse.

Additionally, this patch renames types and cleans up
clang-tidy issues.
llvm/include/llvm/Support/DivisionByConstantInfo.h [new file with mode: 0644]
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Support/CMakeLists.txt
llvm/lib/Support/DivisionByConstantInfo.cpp [new file with mode: 0644]