aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-04-18 08:52:15 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-04-18 08:52:15 +0000
commit60c15e5295626797de6c2ba7f566c87e751485b0 (patch)
treef46920dd16a68f7ec4a67dd0611adc0af56b5c4a /include/llvm/CodeGen
parentb866cc8f2b64f94467cbeaa252538fb696e13db8 (diff)
downloadexternal_llvm-60c15e5295626797de6c2ba7f566c87e751485b0.zip
external_llvm-60c15e5295626797de6c2ba7f566c87e751485b0.tar.gz
external_llvm-60c15e5295626797de6c2ba7f566c87e751485b0.tar.bz2
Add a new LiveInterval::overlaps(). It checks if the live interval overlaps a range specified by [Start, End).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/LiveInterval.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h
index c75d594..00b51a1 100644
--- a/include/llvm/CodeGen/LiveInterval.h
+++ b/include/llvm/CodeGen/LiveInterval.h
@@ -379,6 +379,10 @@ namespace llvm {
return overlapsFrom(other, other.begin());
}
+ /// overlaps - Return true if the live interval overlaps a range specified
+ /// by [Start, End).
+ bool overlaps(unsigned Start, unsigned End) const;
+
/// overlapsFrom - Return true if the intersection of the two live intervals
/// is not empty. The specified iterator is a hint that we can begin
/// scanning the Other interval starting at I.