[llvm] e4d6f13 - [LiveIntervalUnion] Expose extraction of last index in map for external users
Marcello Maggioni via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 28 09:17:23 PDT 2019
Author: Marcello Maggioni
Date: 2019-10-28T09:15:52-07:00
New Revision: e4d6f1300fa2dd12d9d68fab2ded72c0e69b19ee
URL: https://github.com/llvm/llvm-project/commit/e4d6f1300fa2dd12d9d68fab2ded72c0e69b19ee
DIFF: https://github.com/llvm/llvm-project/commit/e4d6f1300fa2dd12d9d68fab2ded72c0e69b19ee.diff
LOG: [LiveIntervalUnion] Expose extraction of last index in map for external users
Differential Revision: https://reviews.llvm.org/D69515
Added:
Modified:
llvm/include/llvm/CodeGen/LiveIntervalUnion.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/LiveIntervalUnion.h b/llvm/include/llvm/CodeGen/LiveIntervalUnion.h
index 05506d2c3bc6..c555763a4ec2 100644
--- a/llvm/include/llvm/CodeGen/LiveIntervalUnion.h
+++ b/llvm/include/llvm/CodeGen/LiveIntervalUnion.h
@@ -75,6 +75,7 @@ class LiveIntervalUnion {
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;
More information about the llvm-commits
mailing list