[llvm] [LV] Make having flags (FMFs etc) not require inheriting VPSingleDefRecipe (PR #114972)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 5 06:39:34 PST 2024
================
@@ -803,6 +805,9 @@ class VPRecipeBase : public ilist_node_with_parent<VPRecipeBase, VPBasicBlock>,
/// Returns the debug location of the recipe.
DebugLoc getDebugLoc() const { return DL; }
+ /// Returns the IR flags for the recipe.
+ virtual VPRecipeIRFlags *getIRFlags() { return nullptr; }
----------------
Mel-Chen wrote:
Could it add const?
https://github.com/llvm/llvm-project/pull/114972
More information about the llvm-commits
mailing list