summaryrefslogtreecommitdiff
path: root/include/llvm/Metadata.h
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2012-06-16 20:33:37 +0000
committerHal Finkel <hfinkel@anl.gov>2012-06-16 20:33:37 +0000
commit7b4ff9343d911a1b9c76c512787beb7a45f8270d (patch)
treeae9ea5849661621f3eea3387bfac9a9fd48a81ce /include/llvm/Metadata.h
parentfc9216eb5a437719b3a53d88d79833a8abc93fee (diff)
downloadllvm-7b4ff9343d911a1b9c76c512787beb7a45f8270d.tar.gz
llvm-7b4ff9343d911a1b9c76c512787beb7a45f8270d.tar.bz2
llvm-7b4ff9343d911a1b9c76c512787beb7a45f8270d.tar.xz
Move the Metadata merging methods from GVN and make them public in MDNode.
There are other passes, BBVectorize specifically, that also need some of this functionality. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Metadata.h')
-rw-r--r--include/llvm/Metadata.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h
index 73579861ec..b40549bed6 100644
--- a/include/llvm/Metadata.h
+++ b/include/llvm/Metadata.h
@@ -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();