Add llvm::all_of which wraps std::all_of.
authorPete Cooper <peter_cooper@apple.com>
Wed, 13 May 2015 22:19:13 +0000 (22:19 +0000)
committerPete Cooper <peter_cooper@apple.com>
Wed, 13 May 2015 22:19:13 +0000 (22:19 +0000)
commita264dc09336ea163aabbdcb59694f76750f2d46c
treebe91ee2b6c6c6b149a2fac9cbb76bee146702ffc
parentab9fd035fdc4a3babfd70f3642758aad2695ad26
Add llvm::all_of which wraps std::all_of.

This version doesn't need begin/end but can instead just take a type which has begin/end methods.

Use this to replace an eligible foreach loop in LoopInfo found by David Blaikie in r237224.

Reviewed by David Blaikie.

llvm-svn: 237301
llvm/include/llvm/ADT/STLExtras.h
llvm/lib/Analysis/LoopInfo.cpp