[llvm] [clang] [clang-tools-extra] [VPlan] Introduce VPSingleDefRecipe. (PR #77023)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 18 04:05:35 PST 2024
================
@@ -819,10 +812,77 @@ class VPRecipeBase : public ilist_node_with_parent<VPRecipeBase, VPBasicBlock>,
} \
static inline bool classof(const VPRecipeBase *R) { \
return R->getVPDefID() == VPDefID; \
+ } \
+ static inline bool classof(const VPSingleDefRecipe *R) { \
+ return R->getVPDefID() == VPDefID; \
}
+/// VPSingleDef is a base class for recipes for modeling a sequence of one or
+/// more output IR that define a single result VPValue.
----------------
ayalz wrote:
/// Note that VPRecipeBase must be inherited from before VPValue.
https://github.com/llvm/llvm-project/pull/77023
More information about the cfe-commits
mailing list