Move the Metadata merging methods from GVN and make them public in MDNode.
[oota-llvm.git] / include / llvm / Metadata.h
index 73579861ec41bca03cfd6a337ab32039452b4b55..b40549bed6bfa73fd6cd8bf0edb6076abca73fab 100644 (file)
@@ -165,6 +165,11 @@ public:
   static bool classof(const Value *V) {
     return V->getValueID() == MDNodeVal;
   }
+
+  /// Methods for metadata merging.
+  static MDNode *getMostGenericTBAA(MDNode *A, MDNode *B);
+  static MDNode *getMostGenericFPMath(MDNode *A, MDNode *B);
+  static MDNode *getMostGenericRange(MDNode *A, MDNode *B);
 private:
   // destroy - Delete this node.  Only when there are no uses.
   void destroy();