Vikram TV via llvm-dev
2018-Jul-05 00:29 UTC
[llvm-dev] [LoopUtils] Breaking LoopUtils into an analysis pass
Hi, I noticed a bunch of routines in lib/Transforms/Utils/LoopUtils.cpp that only analyzes the IR without doing any transformation. Most of the routines in RecurrenceDescriptor and InductionDescriptor classes are used only to analyze and identify the respective IVs. Is it a better option to move them to a file like lib/Analysis/LoopAnalysisUtils.cpp? The rationale for this is, I am writing an analysis pass that requires InductionDescriptor, and including the LoopUtils.h in this analysis pass is against the CMake policy (produces link error). Please let me know if it is feasible so that I can submit a patch. Thanks -- Good time... Vikram TV CompilerTree Technologies Mysore, Karnataka, INDIA -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180705/683e00ea/attachment.html>
Vikram TV via llvm-dev
2018-Jul-07 14:30 UTC
[llvm-dev] [LoopUtils] Breaking LoopUtils into an analysis pass
Ping! On Thu, Jul 5, 2018 at 5:59 AM, Vikram TV <vikram.tarikere at gmail.com> wrote:> Hi, > > I noticed a bunch of routines in lib/Transforms/Utils/LoopUtils.cpp that > only analyzes the IR without doing any transformation. Most of the routines > in RecurrenceDescriptor and InductionDescriptor classes are used only to > analyze and identify the respective IVs. Is it a better option to move them > to a file like lib/Analysis/LoopAnalysisUtils.cpp? > > The rationale for this is, I am writing an analysis pass that requires > InductionDescriptor, and including the LoopUtils.h in this analysis pass is > against the CMake policy (produces link error). > > Please let me know if it is feasible so that I can submit a patch. > > Thanks > > -- > > Good time... > Vikram TV > CompilerTree Technologies > Mysore, Karnataka, INDIA >-- Good time... Vikram TV CompilerTree Technologies Mysore, Karnataka, INDIA -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180707/6f6a67d8/attachment.html>