summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/LiveRangeEdit.h
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2012-04-03 00:28:46 +0000
committerPete Cooper <peter_cooper@apple.com>2012-04-03 00:28:46 +0000
commit2e267ae7b8caf7192a3793eb3b78937ff83f794d (patch)
treee283338b36954c69f967b75ebbcf732b65e17c86 /include/llvm/CodeGen/LiveRangeEdit.h
parent1adc215ddcadcfaaa07a8e93f48a8f62c4561afe (diff)
downloadllvm-2e267ae7b8caf7192a3793eb3b78937ff83f794d.tar.gz
llvm-2e267ae7b8caf7192a3793eb3b78937ff83f794d.tar.bz2
llvm-2e267ae7b8caf7192a3793eb3b78937ff83f794d.tar.xz
Fixes to r153903. Added missing explanation of behaviour when the VirtRegMap is NULL. Also changed it in this case to just avoid updating the map, but live ranges or intervals will still get updated and created
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153914 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveRangeEdit.h')
-rw-r--r--include/llvm/CodeGen/LiveRangeEdit.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveRangeEdit.h b/include/llvm/CodeGen/LiveRangeEdit.h
index 909130ff61..57a619389f 100644
--- a/include/llvm/CodeGen/LiveRangeEdit.h
+++ b/include/llvm/CodeGen/LiveRangeEdit.h
@@ -94,6 +94,11 @@ public:
/// @param parent The register being spilled or split.
/// @param newRegs List to receive any new registers created. This needn't be
/// empty initially, any existing registers are ignored.
+ /// @param MF The MachineFunction the live range edit is taking place in.
+ /// @param lis The collection of all live intervals in this function.
+ /// @param vrm Map of virtual registers to physical registers for this
+ /// function. If NULL, no virtual register map updates will
+ /// be done. This could be the case if called before Regalloc.
LiveRangeEdit(LiveInterval &parent,
SmallVectorImpl<LiveInterval*> &newRegs,
MachineFunction &MF,