[libc-commits] [libcxx] [clang] [lldb] [lld] [libc] [clang-tools-extra] [flang] [llvm] [compiler-rt] [VPlan] Implement cloning of VPlans. (PR #73158)

via libc-commits libc-commits at lists.llvm.org
Thu Jan 25 06:42:48 PST 2024


================
@@ -614,6 +614,61 @@ void VPBasicBlock::print(raw_ostream &O, const Twine &Indent,
   printSuccessors(O, Indent);
 }
 #endif
+static void cloneCFG(VPBlockBase *Entry,
+                     DenseMap<VPBlockBase *, VPBlockBase *> &Old2NewVPBlocks);
+
+static VPBlockBase *cloneVPB(VPBlockBase *BB) {
----------------
ayalz wrote:

`cloneVPB()` seems to better fit as a virtual method `VPBlockBase::clone()`?

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


More information about the libc-commits mailing list