[LoopInfo] Port loop exit interfaces from Loop to LoopBase
authorDiego Caballero <diego.caballero@intel.com>
Mon, 9 Jul 2018 17:52:49 +0000 (17:52 +0000)
committerDiego Caballero <diego.caballero@intel.com>
Mon, 9 Jul 2018 17:52:49 +0000 (17:52 +0000)
commit29a07b37bf2c6ba4f312c20e5c058826178fcf9e
treea1632a84be9e734c37d4ea594b1b65645b6e72ff
parentf639936748a2e5fbe5823705188c324d8cbfcaa5
[LoopInfo] Port loop exit interfaces from Loop to LoopBase

This patch ports hasDedicatedExits, getUniqueExitBlocks and
getUniqueExitBlock in Loop to LoopBase so that they can be used
from other LoopBase sub-classes.

Reviewers: chandlerc, sanjoy, hfinkel, fhahn

Reviewed By: chandlerc

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

llvm-svn: 336572
llvm/include/llvm/Analysis/LoopInfo.h
llvm/include/llvm/Analysis/LoopInfoImpl.h
llvm/lib/Analysis/LoopInfo.cpp