[llvm] [VPlan] Type VP(Recipe|Block)Ty SubclassID (NFC) (PR #209132)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 04:39:01 PDT 2026


================
@@ -383,6 +377,13 @@ class LLVM_ABI_FOR_TEST VPBlockBase {
   /// the cloned recipes, including all blocks in the single-entry single-exit
   /// region for VPRegionBlocks.
   virtual VPBlockBase *clone() = 0;
+
+private:
+  const VPBlockTy SubclassID; ///< Subclass identifier (for isa/dyn_cast).
+
+protected:
+  VPBlockBase(const VPBlockTy SC, const std::string &N)
+      : Name(N), SubclassID(SC) {}
----------------
artagnon wrote:

... because it needs to see the definition of VPBlockTy?

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


More information about the llvm-commits mailing list