[PATCH] D92281: [VPlan] Add getOutOfScopeIRValue accessor to VPValue.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 29 13:31:39 PST 2020


fhahn created this revision.
fhahn added reviewers: rengolin, gilr, Ayal.
Herald added subscribers: psnobl, rogfer01, bollu, hiraditya.
Herald added a project: LLVM.
fhahn requested review of this revision.
Herald added a subscriber: vkmr.

This patch adds a new getOutOfScopeIRValue accessor to VPValue, which
returns the underlying value, if the VPValue is defined outside of
VPlan. This is required to handle scalars in VPTransformState, which
requires dealing with scalars defined outside of VPlan.

Therefor this patch introduces a new VPValueSubSC to distinguish
between VPValues defined inside and outside of VPlan. VPValueSubSC
should be used for VPValues defined by recipes, e.g. because they define
multiple values or have not been yet converted with a dedicated VPValue
ID.

This currently requires giving access to VPValue to those classes, so we
can call the protected constructor. But most of them can be removed in
the future, once the remaining single value def recipes inherit from
VPValue.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92281

Files:
  llvm/lib/Transforms/Vectorize/VPlan.cpp
  llvm/lib/Transforms/Vectorize/VPlan.h
  llvm/lib/Transforms/Vectorize/VPlanValue.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92281.308224.patch
Type: text/x-patch
Size: 4655 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201129/60f0d6f7/attachment.bin>


More information about the llvm-commits mailing list