[PATCH] D69515: [LiveIntervalUnion] Expose extraction of last index in map for external users

Marcello Maggioni via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 28 08:51:22 PDT 2019


kariddi created this revision.
kariddi added reviewers: qcolombet, rtereshin, arsenm, aditya_nandakumar.
Herald added subscribers: llvm-commits, arphaman, wdng, MatzeB.
Herald added a project: LLVM.

LiveIntervalUnion exposes IntervalMap's start() method, but doesn't expose the stop() method.

For custom uses of LiveIntervalUnion it is useful.


Repository:
  rL LLVM

https://reviews.llvm.org/D69515

Files:
  llvm/include/llvm/CodeGen/LiveIntervalUnion.h


Index: llvm/include/llvm/CodeGen/LiveIntervalUnion.h
===================================================================
--- llvm/include/llvm/CodeGen/LiveIntervalUnion.h
+++ llvm/include/llvm/CodeGen/LiveIntervalUnion.h
@@ -75,6 +75,7 @@
 
   bool empty() const { return Segments.empty(); }
   SlotIndex startIndex() const { return Segments.start(); }
+  SlotIndex endIndex() const { return Segments.stop(); }
 
   // Provide public access to the underlying map to allow overlap iteration.
   using Map = LiveSegments;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69515.226672.patch
Type: text/x-patch
Size: 520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191028/ca605039/attachment.bin>


More information about the llvm-commits mailing list