[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
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
rG LLVM Github Monorepo
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4655 bytes
Desc: not available
More information about the llvm-commits