[llvm] [VPlan] Use VPIRMetadata for VPInterleaveRecipe. (PR #153084)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 16 11:34:50 PDT 2025
================
@@ -931,13 +931,22 @@ class VPIRMetadata {
/// Copy constructor for cloning.
VPIRMetadata(const VPIRMetadata &Other) : Metadata(Other.Metadata) {}
+ VPIRMetadata &operator=(const VPIRMetadata &Other) {
+ Metadata = Other.Metadata;
+ return *this;
+ }
+
/// Add all metadata to \p I.
void applyMetadata(Instruction &I) const;
/// Add metadata with kind \p Kind and \p Node.
void addMetadata(unsigned Kind, MDNode *Node) {
Metadata.emplace_back(Kind, Node);
}
+
+ /// Intersect this VPIRMetada object with \p MD, keeping only metadata
+ /// nodes in both.
----------------
ayalz wrote:
```suggestion
/// nodes that are common to both.
```
https://github.com/llvm/llvm-project/pull/153084
More information about the llvm-commits
mailing list