[llvm] [VPlan] Add type in VPRecipeValue, migrate first set of recipes. (NFC) (PR #195485)

via llvm-commits llvm-commits at lists.llvm.org
Sat May 2 14:40:35 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- llvm/lib/Transforms/Vectorize/VPlan.cpp llvm/lib/Transforms/Vectorize/VPlan.h llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp llvm/lib/Transforms/Vectorize/VPlanAnalysis.h llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp llvm/lib/Transforms/Vectorize/VPlanValue.h llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp llvm/unittests/Transforms/Vectorize/VPlanTest.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/VPlanValue.h b/llvm/lib/Transforms/Vectorize/VPlanValue.h
index 0cc135bbe..7c42c4bd4 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanValue.h
+++ b/llvm/lib/Transforms/Vectorize/VPlanValue.h
@@ -80,8 +80,8 @@ public:
   /// An enumeration for keeping track of the concrete subclass of VPValue that
   /// are actually instantiated.
   enum {
-    VPVIRValueSC,             /// A live-in VPValue wrapping an IR Value.
-    VPVSymbolicSC,            /// A symbolic live-in VPValue without IR backing.
+    VPVIRValueSC,  /// A live-in VPValue wrapping an IR Value.
+    VPVSymbolicSC, /// A symbolic live-in VPValue without IR backing.
     VPVStandaloneRecipeValueSC, /// A standalone VPValue defined by a recipe.
     VPVSingleDefValueSC,        /// A VPValue embedded in a VPSingleDefRecipe.
     VPRegionValueSC,            /// A VPValue sub-class that is defined by a
@@ -487,9 +487,7 @@ class VPDef {
   TinyPtrVector<VPRecipeValue *> DefinedValues;
 
   /// Add \p V as a defined value by this VPDef.
-  void addDefinedValue(VPRecipeValue *V) {
-    DefinedValues.push_back(V);
-  }
+  void addDefinedValue(VPRecipeValue *V) { DefinedValues.push_back(V); }
 
   /// Remove \p V from the values defined by this VPDef. \p V must be a defined
   /// value of this VPDef.

``````````

</details>


https://github.com/llvm/llvm-project/pull/195485


More information about the llvm-commits mailing list