[LoopAccesses] Make VectorizerParams global
authorAdam Nemet <anemet@apple.com>
Wed, 18 Feb 2015 03:42:43 +0000 (03:42 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 18 Feb 2015 03:42:43 +0000 (03:42 +0000)
commiteefec589e8bc4db55d7da9070ace47befa021999
tree9a0c018e2216ffbf747e36b1cc6d309e5dddc3ef
parent38a9ebb065801cd4fca4da2e3ca972392af3cb8b
[LoopAccesses] Make VectorizerParams global

As LAA is becoming a pass, we can no longer pass the params to its
constructor.  This changes the command line flags to have external
storage.  These can now be accessed both from LV and LAA.

VectorizerParams is moved out of LoopAccessInfo in order to shorten the
code to access it.

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@229622 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LoopAccessAnalysis.h
lib/Analysis/LoopAccessAnalysis.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp