[PATCH] D125776: [llvm-dva] 01 - Interval tree
Carlos Alberto Enciso via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 24 06:29:00 PDT 2022
CarlosAlbertoEnciso added inline comments.
================
Comment at: llvm/include/llvm/ADT/IntervalTree.h:362
+ int MiddleIndex = (PointsBeginIndex + PointsEndIndex) / 2;
+ PointType MiddlePoint = EndPoints[MiddleIndex];
+
----------------
psamolysov wrote:
> To not copy the `PointType` of unknown size?
I am not sure if I understand the issue. A typical case to create the IntervalTree would be:
```
using UUPoint = unsigned; // Interval range type.
using UUValue = unsigned; // Mapped value type.
using UUTree = IntervalTree<UUPoint, UUValue>;
```
with `PointType` being `unsigned`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125776/new/
https://reviews.llvm.org/D125776
More information about the llvm-commits
mailing list