[VPlan] Change recipes to inherit from VPUser instead of a member var.
authorFlorian Hahn <flo@fhahn.com>
Tue, 22 Sep 2020 14:10:06 +0000 (15:10 +0100)
committerFlorian Hahn <flo@fhahn.com>
Wed, 30 Sep 2020 13:39:00 +0000 (14:39 +0100)
commitd8563654701c79fb9ab28ecf94567d9934baed05
tree79dc335add6dd25f92afe976a786d651744afd90
parentf794160c6cb7da4b5ef354a91fe498341f651d36
[VPlan] Change recipes to inherit from VPUser instead of a member var.

Now that VPUser is not inheriting from VPValue, we can take the next
step and turn the recipes that already manage their operands via VPUser
into VPUsers directly. This is another small step towards traversing
def-use chains in VPlan.

This is NFC with respect to the generated code, but makes the interface
more powerful.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/lib/Transforms/Vectorize/VPlanValue.h
llvm/unittests/Transforms/Vectorize/VPlanTest.cpp