1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/docs/Proposals
Florian Hahn 4864887dc5 [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
..
GitHubMove.rst [docs/examples] As part of using inclusive language within the llvm 2020-06-20 00:51:18 -07:00
LLVMLibC.rst Add a proposal for a libc project under the LLVM umbrella. 2019-08-15 15:50:42 +00:00
TestSuite.rst [llvm] NFC: fix trivial typos in documents 2020-01-22 11:32:51 +08:00
VariableNames.rst [llvm] NFC: fix trivial typos in documents 2020-01-22 11:32:51 +08:00
VectorizationPlan.rst [VPlan] Add VPDef class. 2020-11-17 16:18:11 +00:00
VectorPredication.rst [Doc] Proposal for vector predication 2020-02-10 10:35:50 +01:00