OSDN Git Service

[LV][VPlan] NFC patch to move LoopVectorizationPlanner class out of LoopVectorize.cpp
authorHal Finkel <hfinkel@anl.gov>
Sun, 7 Jan 2018 16:02:58 +0000 (16:02 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sun, 7 Jan 2018 16:02:58 +0000 (16:02 +0000)
commitf0c5b1c6c7933acb7ec3e5503f57595656a6408c
tree2aa44c970064147aab60aa15352ef7109780b86b
parent8eaf38e0eb96e1000ed66bb30140eb0e35d4d305
[LV][VPlan] NFC patch to move LoopVectorizationPlanner class out of LoopVectorize.cpp

Another small step forward to move VPlan stuff outside of LoopVectorize.cpp.

VPlanBuilder.h is renamed to LoopVectorizationPlanner.h
LoopVectorizationPlanner class is moved from LoopVectorize.cpp to
LoopVectorizationPlanner.h LoopVectorizationCostModel::VectorizationFactor
class is moved to LoopVectorizationPlanner.h (used by the planner class) ---
this needs further streamlining work in later patches and thus all I did was
take it out of the CostModel class and moved to the header file.  The callback
function had to stay inside LoopVectorize.cpp since it calls an
InnerLoopVectorizer member function declared in it.  Next Steps: Make
InnerLoopVectorizer, LoopVectorizationCostModel, and other classes more modular
and more aligned with VPlan direction, in small increments.

Previous step was: r320900 (https://reviews.llvm.org/D41045)

Patch by Hideki Saito, thanks!

Differential Revision: https://reviews.llvm.org/D41420

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321962 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorizationPlanner.h [new file with mode: 0644]
lib/Transforms/Vectorize/LoopVectorize.cpp
lib/Transforms/Vectorize/VPlan.h
lib/Transforms/Vectorize/VPlanBuilder.h [deleted file]