[LoopAccesses] Add -analyze support
authorAdam Nemet <anemet@apple.com>
Thu, 19 Feb 2015 19:15:19 +0000 (19:15 +0000)
committerAdam Nemet <anemet@apple.com>
Thu, 19 Feb 2015 19:15:19 +0000 (19:15 +0000)
commite91cc6ef9302e308a388b611a4855299458e59c7
tree213b206b5a276e5cd9ca40fec578b1b8137845af
parent2bd6e984ef50574e832caec19135043f325356d0
[LoopAccesses] Add -analyze support

The LoopInfo in combination with depth_first is used to enumerate the
loops.

Right now -analyze is not yet complete.  It only prints the result of
the analysis, the report and the run-time checks.  Printing the unsafe
depedences will require a bit more reshuffling which I'd like to do in a
follow-on to this patchset.  Unsafe dependences are currently checked
via -debug-only=loop-accesses in the new test.

This is part of the patchset that converts LoopAccessAnalysis into an
actual analysis pass.

llvm-svn: 229898
llvm/include/llvm/Analysis/LoopAccessAnalysis.h
llvm/lib/Analysis/LoopAccessAnalysis.cpp
llvm/test/Analysis/LoopAccessAnalysis/unsafe-and-rt-checks-no-dbg.ll [new file with mode: 0644]
llvm/test/Analysis/LoopAccessAnalysis/unsafe-and-rt-checks.ll [new file with mode: 0644]