HomePhabricator

[ADT] Add an early-increment iterator-like type and range adaptor.

Authored by chandlerc on Aug 4 2018, 1:17 AM.

Description

[ADT] Add an early-increment iterator-like type and range adaptor.

This allows us to model the common LLVM idiom of incrementing
immediately after dereferencing so that we can remove or update the
entity w/o losing our ability to reach the "next".

However, these are not real or proper iterators. They are just enough to
allow range based for loops and very simple range algorithms to work,
but should not be considered full general.

Differential Revision: https://reviews.llvm.org/D49956

llvm-svn: 338955

Details

Committed
chandlercAug 4 2018, 1:17 AM
Differential Revision
D49956: [ADT] Add an early-increment iterator and range adaptor.
Parents
rG8b5de48d6287: [TailCallElim] Preserve DT and PDT
Branches
Unknown
Tags
Unknown