summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SlotIndexes.h
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2010-07-19 15:22:28 +0000
committerLang Hames <lhames@gmail.com>2010-07-19 15:22:28 +0000
commit54cc2efb4e6ba3022ec297746b14a129d97fc07b (patch)
tree6cd60bbee224422d847ff0580f6981a476ce25e7 /include/llvm/CodeGen/SlotIndexes.h
parentb68f7aea33fd8510e441a1a9a38f3920a9e5db0c (diff)
downloadllvm-54cc2efb4e6ba3022ec297746b14a129d97fc07b.tar.gz
llvm-54cc2efb4e6ba3022ec297746b14a129d97fc07b.tar.bz2
llvm-54cc2efb4e6ba3022ec297746b14a129d97fc07b.tar.xz
Render MachineFunctions to HTML pages, with options to render register
pressure estimates and liveness alongside. Still experimental. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SlotIndexes.h')
-rw-r--r--include/llvm/CodeGen/SlotIndexes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SlotIndexes.h b/include/llvm/CodeGen/SlotIndexes.h
index f1f047b44e..f150d853fc 100644
--- a/include/llvm/CodeGen/SlotIndexes.h
+++ b/include/llvm/CodeGen/SlotIndexes.h
@@ -494,6 +494,11 @@ namespace llvm {
return SlotIndex(front(), 0);
}
+ /// Returns the base index of the last slot in this analysis.
+ SlotIndex getLastIndex() {
+ return SlotIndex(back(), 0);
+ }
+
/// Returns the invalid index marker for this analysis.
SlotIndex getInvalidIndex() {
return getZeroIndex();