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)
commit33bf03ed89750a5ac6583ed4b12e71a8517813f4
treeb868f1b2d9f155b959555aa59b59181bdb4c35b1
parent0030b52f735ee386db12c2472fc32d2dd1522f18
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237301 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/STLExtras.h
lib/Analysis/LoopInfo.cpp