[NFCI] SCEV: promote ScalarEvolutionDivision into an publicly usable class
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 17 Jun 2020 10:09:22 +0000 (13:09 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 24 Jun 2020 21:58:53 +0000 (00:58 +0300)
commit1e2691fe238b9b47dd3fa2c7a8874826ead45760
tree4c77d48bc6879ae6a4d228033181e9db72a3b5af
parent31bd860ec02f975777a8d861fab299a59f180e84
[NFCI] SCEV: promote ScalarEvolutionDivision into an publicly usable class

This makes it usable from outside of SCEV,
while previously it was internal to the ScalarEvolution.cpp

In particular, i want to use it in an WIP alloca promotion helper pass,
to analyze if some SCEV is a multiple of some other SCEV.
llvm/include/llvm/Analysis/ScalarEvolutionDivision.h [new file with mode: 0644]
llvm/lib/Analysis/CMakeLists.txt
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/lib/Analysis/ScalarEvolutionDivision.cpp [new file with mode: 0644]