[llvm] [VPlan] Implement cloning of VPlans. (PR #73158)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 22 13:34:36 PST 2023


================
@@ -729,6 +731,9 @@ class VPRecipeBase : public ilist_node_with_parent<VPRecipeBase, VPBasicBlock>,
       : VPDef(SC), VPUser(Operands, VPUser::VPUserID::Recipe), DL(DL) {}
   virtual ~VPRecipeBase() = default;
 
+  /// Clone the current recipe.
+  virtual VPRecipeBase *clone() { return nullptr; }
----------------
alexey-bataev wrote:

Can make it pure virtual?

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


More information about the llvm-commits mailing list