llvm::iterator_range

A range adaptor for a pair of iterators.

Synopsis

Declared in <llvm/ADT/iterator_range.h>

template<typename IteratorT>
class iterator_range;

Description

This just wraps two iterators into a range-compatible interface. Nothing fancy at all.

Member Functions

NameDescription
iterator_range [constructor]Constructors
begin Return an iterator to the first element.
empty Return true if the range contains no elements.
end Return an iterator past the last element.

Deduction Guides

NameDescription
iterator_range</* implementation-defined */> Deduction guide for constructing an iterator_range from a container.

Non-Member Functions

NameDescription
breadth_firstReturn a range that visits G in breadth-first order.
childrenReturn a range over the children of node G.
children_edgesReturn a range over the outgoing child edges of node G.
const_mi_bundle_opsReturn a range over all operands in the const bundle containing MI.
def_chainReturn a range walking defining accesses from MA up to UpTo.
depth_firstReturn a range that visits G in depth-first order.
depth_first_extReturn a range that visits G in depth-first order using visited set S.
getDbgRecordRangeReturn the range of DbgRecords attached to DebugMarker.
inverse_childrenReturn a range over the inverse-order children of node G.
inverse_depth_firstReturn a range that visits the inverse of G in depth-first order.
inverse_depth_first_extReturn a range that visits the inverse of G in depth-first order using visited set S.
inverse_nodesReturn a range over all nodes of G in inverse graph order.
isGuaranteedToTransferExecutionToSuccessorSame as previous, but with range expressed via iterator_range.
make_early_inc_rangeMake a range that does early increment to allow mutation of the underlying range without disrupting iteration.
make_fallible_rangeBuild an iterator range whose increments report failure through Err.
make_filter_rangeConvenience function that takes a range of elements and a predicate, and return a new filter_iterator range.
make_pointee_rangeReturn a range that iterates over the pointees of Range.
make_pointee_rangeReturn a range that iterates over the pointees of Range.
make_pointer_rangeReturn a range whose iterators expose addresses of elements in Range.
make_rangeConstruct an iterator_range from a pair of iterators.
make_rangeConvenience function for iterating over sub-ranges.
mi_bundle_opsReturn a range over all operands in the bundle containing MI.
nodesReturn a range over all nodes of graph G.
optimized_def_chainReturn a range walking the optimized clobbering-access chain from MA.
phys_regs_and_masksReturns an iterator range over all physical register and mask operands for MI and bundled instructions. This also skips any debug operands.
splitIterate over partitions of a string split on character Separator.
splitIterate over partitions of a string split on Separator.
upward_defsReturn a range walking upward defs from Pair with phi translation.
cl::getRegisteredSubcommandsUse this to get all registered SubCommands from the provided parser.
directive::FindNameFind the first spelling in a range that applies to a language version.
orc::getConstructorsCreate an iterator range over the entries of the llvm.global_ctors array.
orc::getDestructorsCreate an iterator range over the entries of the llvm.global_dtors array.
orc::getStaticInitGVsCreate an iterator range over the GlobalValues that contribute to static initialization.