[llvm] [VPlan] Move recording of Inst->VPValue to VPRecipeBuilder (NFCI). (PR #84464)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 11 14:48:36 PDT 2024
================
@@ -172,6 +158,19 @@ class VPRecipeBuilder {
/// Add the incoming values from the backedge to reduction & first-order
/// recurrence cross-iteration phis.
void fixHeaderPhis();
+
+ /// Returns a range mapping the values the range \p Operands to their
+ /// corresponding VPValues.
+ iterator_range<mapped_iterator<Use *, std::function<VPValue *(Value *)>>>
+ mapToVPValues(User::op_range Operands, VPlan &Plan);
+
+ VPValue *getVPValue(Value *V, VPlan &Plan) {
----------------
fhahn wrote:
Updated, thanks!
https://github.com/llvm/llvm-project/pull/84464
More information about the llvm-commits
mailing list