Break LoopUtils into an Analysis file.
authorVikram TV <vikram.tarikere@gmail.com>
Wed, 12 Sep 2018 01:59:43 +0000 (01:59 +0000)
committerVikram TV <vikram.tarikere@gmail.com>
Wed, 12 Sep 2018 01:59:43 +0000 (01:59 +0000)
commit7e98d69847aefb1028aaa7131b508f4b4e9896ae
tree364e05a8810d4e2403580ced5d3cef762b3ae476
parentdc32e91bc6015bb394d26de18f3c42225b00a41e
Break LoopUtils into an Analysis file.

Summary:
The InductionDescriptor and RecurrenceDescriptor classes basically analyze the IR to identify the respective IVs. So, it is better to have them in the "Analysis" directory instead of the "Transforms" directory.

The rationale for this is to make the Induction and Recurrence descriptor classes available for analysis passes. Currently including them in an analysis pass produces link error (http://lists.llvm.org/pipermail/llvm-dev/2018-July/124456.html).

Induction and Recurrence descriptors are moved from Transforms/Utils/LoopUtils.h|cpp to Analysis/IVDescriptors.h|cpp.

Reviewers: dmgreen, llvm-commits, hfinkel

Reviewed By: dmgreen

Subscribers: mgorny

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

llvm-svn: 342016
llvm/include/llvm/Analysis/IVDescriptors.h [new file with mode: 0644]
llvm/include/llvm/Transforms/Utils/LoopUtils.h
llvm/lib/Analysis/CMakeLists.txt
llvm/lib/Analysis/IVDescriptors.cpp [new file with mode: 0644]
llvm/lib/Transforms/Utils/LoopUtils.cpp