[llvm] [VPlan] Add helper to define CastInfo for casting to VP mixins (NFC) (PR #197494)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed May 13 12:58:51 PDT 2026
================
@@ -4044,34 +4044,32 @@ class LLVM_ABI_FOR_TEST VPScalarIVStepsRecipe : public VPRecipeWithIRFlags {
#endif
};
+/// CastInfo helper for casting from a recipe superclass (e.g. VPRecipeBase,
+/// VPUser) to a mixin class that is not part of the VPRecipeBase class
+/// hierarchy (e.g. VPPhiAccessors, VPIRMetadata).
+namespace vpdetail {
+template <class VPMixin, class From, class... RecipeTys>
+struct VPMixinCast
----------------
fhahn wrote:
Updated, thanks!
https://github.com/llvm/llvm-project/pull/197494
More information about the llvm-commits
mailing list