llvm-project/llvm/lib/Transforms/Vectorize
Florian Hahn 52f3714dae [VPlan] Add VPDef class.
This patch introduces a new VPDef class, which can be used to
manage VPValues defined by recipes/VPInstructions.

The idea here is to mirror VPUser for values defined by a recipe. A
VPDef can produce either zero (e.g. a store recipe), one (most recipes)
or multiple (VPInterleaveRecipe) result VPValues.

To traverse the def-use chain from a VPDef to its users, one has to
traverse the users of all values defined by a VPDef.

VPValues now contain a pointer to their corresponding VPDef, if one
exists. To traverse the def-use chain upwards from a VPValue, we first
need to check if the VPValue is defined by a VPDef. If it does not have
a VPDef, this means we have a VPValue that is not directly defined
iniside the plan and we are done.

If we have a VPDef, it is defined inside the region by a recipe, which
is a VPUser, and the upwards def-use chain traversal continues by
traversing all its operands.

Note that we need to add an additional field to to VPVAlue to link them
to their defs. The space increase is going to be offset by being able to
remove the SubclassID field in future patches.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D90558
2020-11-17 16:18:11 +00:00
..
CMakeLists.txt llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
LoadStoreVectorizer.cpp [SVE] Remove calls to VectorType::getNumElements from Transforms/Vectorize 2020-08-27 12:02:20 -07:00
LoopVectorizationLegality.cpp [SVE][AArch64] Fix TypeSize warning in loop vectorization legality 2020-10-26 17:40:04 +00:00
LoopVectorizationPlanner.h [LoopVectorizer] NFC: Propagate ElementCount to more interfaces. 2020-11-10 11:11:02 +00:00
LoopVectorize.cpp Reland [LoopVectorizer] NFCI: Calculate register usage based on TLI.getTypeLegalizationCost. 2020-11-17 13:45:10 +00:00
SLPVectorizer.cpp [SLPVectorizer] Fix assert 2020-11-17 18:46:31 +03:00
VPRecipeBuilder.h [VPlan] Remove unused forward declarations. NFC. 2020-04-23 12:34:20 +01:00
VPlan.cpp [VPlan] Add VPDef class. 2020-11-17 16:18:11 +00:00
VPlan.h [VPlan] Use VPValue def for VPWidenGEPRecipe. 2020-11-15 15:12:47 +00:00
VPlanDominatorTree.h Revert multiple patches based on "Introduce CfgTraits abstraction" 2020-10-27 20:33:30 +01:00
VPlanHCFGBuilder.cpp
VPlanHCFGBuilder.h
VPlanLoopInfo.h
VPlanPredicator.cpp
VPlanPredicator.h
VPlanSLP.cpp [VPlan] Disconnect VPValue and VPUser. 2020-09-23 14:44:31 +01:00
VPlanTransforms.cpp [VPlan] Clean up uses/operands on VPBB deletion. 2020-10-05 14:43:52 +01:00
VPlanTransforms.h [VPlan] Turn classes with all public members into structs (NFC). 2020-04-12 11:03:39 +01:00
VPlanValue.h [VPlan] Add VPDef class. 2020-11-17 16:18:11 +00:00
VPlanVerifier.cpp Use llvm::is_contained where appropriate (NFC) 2020-07-27 10:20:44 -07:00
VPlanVerifier.h [VPlan] Remove unused forward declarations. NFC. 2020-04-23 12:34:20 +01:00
VectorCombine.cpp [VectorCombine] Avoid crossing address space boundaries. 2020-10-16 13:19:31 -07:00
Vectorize.cpp [VectorCombine] new IR transform pass for partial vector ops 2020-02-09 10:04:41 -05:00