add a new method
authorChris Lattner <sabre@nondot.org>
Thu, 20 Oct 2005 07:37:59 +0000 (07:37 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 20 Oct 2005 07:37:59 +0000 (07:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23840 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/LiveInterval.h

index 6cac0960b2127f19b47716531054d01dda55e98b..4606781efd2295c174aa7a29368b84adc66a7b6d 100644 (file)
@@ -143,6 +143,11 @@ namespace llvm {
     /// only overlaps with one value in the source interval.
     bool joinable(const LiveInterval& other, unsigned CopyIdx) const;
 
+    /// getOverlapingRanges - Given another live interval which is defined as a
+    /// copy from this one, return a list of all of the live ranges where the
+    /// two overlap and have different value numbers.
+    void getOverlapingRanges(const LiveInterval &Other, unsigned CopyIdx,
+                             std::vector<LiveRange*> &Ranges);
 
     /// overlaps - Return true if the intersection of the two live intervals is
     /// not empty.