[LLVMdev] [RFC] Adding a few more range adaptors
Manuel Jacob
me at manueljacob.de
Tue Jul 8 00:31:30 PDT 2014
Hi all,
while converting some code to use C++11 features, I noticed that some
commonly used iterators don't have range adapters. What do you think
about adding these?
llvm/IR/InstIterator.h:
inst_begin() / inst_end() -> instructions()
llvm/IR/CFG.h:
pred_begin() / pred_end() -> predecessors()
succ_begin() / succ_end() -> successors()
llvm/IR/BasicBlock.h:
BasicBlock::begin() / BasicBlock::getFirstNonPHI() -> BasicBlock::phis()
BasicBlock::getFirstNonPHI() / BasicBlock::end() ->
BasicBlock::non_phis()
-Manuel
More information about the llvm-dev
mailing list