[llvm] [VPlan] Manage instruction medata in VPlan. (PR #135272)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 19 12:27:54 PDT 2025


================
@@ -1190,28 +1190,55 @@ struct VPIRPhi : public VPIRInstruction {
 #endif
 };
 
+using MDArrayRef = ArrayRef<std::pair<unsigned, MDNode *>>;
+
+/// Helper to manage IR metadata for recipes. It filters out metadata that
+/// cannot be proagated.
+class VPWithIRMetadata {
----------------
fhahn wrote:

I *think* `VPRecipeWithIRFlags` is not ideal at the moment, as it makes it more difficult to compose, ideally I think we would move towards replacing it with just `VPIRFlags`, which the relevant recipes opt in to separately, like `VPIRMetadata`.

Updated the name as suggested, thanks!

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


More information about the llvm-commits mailing list