diff options
author | Hal Finkel <hfinkel@anl.gov> | 2012-06-16 20:33:37 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2012-06-16 20:33:37 +0000 |
commit | 7b4ff9343d911a1b9c76c512787beb7a45f8270d (patch) | |
tree | ae9ea5849661621f3eea3387bfac9a9fd48a81ce /include/llvm | |
parent | fc9216eb5a437719b3a53d88d79833a8abc93fee (diff) | |
download | external_llvm-7b4ff9343d911a1b9c76c512787beb7a45f8270d.zip external_llvm-7b4ff9343d911a1b9c76c512787beb7a45f8270d.tar.gz external_llvm-7b4ff9343d911a1b9c76c512787beb7a45f8270d.tar.bz2 |
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')
-rw-r--r-- | include/llvm/Metadata.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h index 7357986..b40549b 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(); |