summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/LiveInterval.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-05 21:54:09 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-05 21:54:09 +0000
commit4e53a40ea321c43bdf754147dd2ec064985e5b7b (patch)
treef6af24cf27b0f9684f0e8e17f9986796751c06bf /include/llvm/CodeGen/LiveInterval.h
parentd88d27868bf7c2c5914c1b9ccace0ee6d7ee958a (diff)
downloadllvm-4e53a40ea321c43bdf754147dd2ec064985e5b7b.tar.gz
llvm-4e53a40ea321c43bdf754147dd2ec064985e5b7b.tar.bz2
llvm-4e53a40ea321c43bdf754147dd2ec064985e5b7b.tar.xz
Implement LiveRangeCalc::extendToUses() and createDeadDefs().
These LiveRangeCalc methods are to be used when computing a live range from scratch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158027 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveInterval.h')
-rw-r--r--include/llvm/CodeGen/LiveInterval.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h
index 96680e500d..1016391eea 100644
--- a/include/llvm/CodeGen/LiveInterval.h
+++ b/include/llvm/CodeGen/LiveInterval.h
@@ -274,6 +274,11 @@ namespace llvm {
return VNI;
}
+ /// createDeadDef - Make sure the interval has a value defined at Def.
+ /// If one already exists, return it. Otherwise allocate a new value and
+ /// add liveness for a dead def.
+ VNInfo *createDeadDef(SlotIndex Def, VNInfo::Allocator &VNInfoAllocator);
+
/// Create a copy of the given value. The new value will be identical except
/// for the Value number.
VNInfo *createValueCopy(const VNInfo *orig,