aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/LiveIntervalAnalysis.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2013-10-10 21:28:57 +0000
committerMatthias Braun <matze@braunis.de>2013-10-10 21:28:57 +0000
commite25dde550baec1f79caf2fc06edd74e7ae6ffa33 (patch)
tree9c324f3382e66b6c1950faa4cd181700ec01f3c9 /include/llvm/CodeGen/LiveIntervalAnalysis.h
parenta4aed9ae392b30147745bd27e5fea7b0cebc1702 (diff)
downloadexternal_llvm-e25dde550baec1f79caf2fc06edd74e7ae6ffa33.zip
external_llvm-e25dde550baec1f79caf2fc06edd74e7ae6ffa33.tar.gz
external_llvm-e25dde550baec1f79caf2fc06edd74e7ae6ffa33.tar.bz2
Work on LiveRange instead of LiveInterval where possible
Also change some pointer arguments to references at some places where 0-pointers are not allowed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192396 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveIntervalAnalysis.h')
-rw-r--r--include/llvm/CodeGen/LiveIntervalAnalysis.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h
index 216a179..922c2a0 100644
--- a/include/llvm/CodeGen/LiveIntervalAnalysis.h
+++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h
@@ -127,7 +127,7 @@ namespace llvm {
LiveInterval &createAndComputeVirtRegInterval(unsigned Reg) {
LiveInterval &LI = createEmptyInterval(Reg);
- computeVirtRegInterval(&LI);
+ computeVirtRegInterval(LI);
return LI;
}
@@ -160,7 +160,7 @@ namespace llvm {
/// extended to be live out of the basic block.
///
/// See also LiveRangeCalc::extend().
- void extendToIndices(LiveInterval *LI, ArrayRef<SlotIndex> Indices);
+ void extendToIndices(LiveRange &LR, ArrayRef<SlotIndex> Indices);
/// pruneValue - If an LI value is live at Kill, prune its live range by
/// removing any liveness reachable from Kill. Add live range end points to
@@ -369,7 +369,7 @@ namespace llvm {
if (!LI) {
// Compute missing ranges on demand.
RegUnitIntervals[Unit] = LI = new LiveInterval(Unit, HUGE_VALF);
- computeRegUnitInterval(LI);
+ computeRegUnitInterval(*LI);
}
return *LI;
}
@@ -397,8 +397,8 @@ namespace llvm {
void dumpInstrs() const;
void computeLiveInRegUnits();
- void computeRegUnitInterval(LiveInterval*);
- void computeVirtRegInterval(LiveInterval*);
+ void computeRegUnitInterval(LiveInterval&);
+ void computeVirtRegInterval(LiveInterval&);
class HMEditor;
};