OSDN Git Service

[LoopAccesses] Add -analyze support
authorAdam Nemet <anemet@apple.com>
Wed, 18 Feb 2015 03:44:30 +0000 (03:44 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 18 Feb 2015 03:44:30 +0000 (03:44 +0000)
commitf367b60abe6e871536e05b9b97e52d93432954a6
tree693b7adf3cd38d4642b30a8147ae0d24c39f97ab
parentc548c640bc201ceeb45f3cb8c1371bd5583128f7
[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@229633 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]