[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)
commitc182ce09e9cc3e384f5c5c322fb8b48c8dfb6b17
tree83b18f13e377a377e59d868c2b3bd1f99eb10b0b
parent4db669fb26764b55bd9c0b8b2c2b917b135efe24
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229898 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LoopAccessAnalysis.h
lib/Analysis/LoopAccessAnalysis.cpp
test/Analysis/LoopAccessAnalysis/unsafe-and-rt-checks-no-dbg.ll [new file with mode: 0644]
test/Analysis/LoopAccessAnalysis/unsafe-and-rt-checks.ll [new file with mode: 0644]