[LoopNest] Add new utilites
authorWhitney Tsang <whitneyt@ca.ibm.com>
Thu, 13 Jan 2022 22:12:25 +0000 (17:12 -0500)
committerWhitney Tsang <whitneyt@ca.ibm.com>
Thu, 13 Jan 2022 22:19:19 +0000 (17:19 -0500)
commitcb6b9d3ae2cb56a3bb64f03756cf0b5c5fd031bf
tree372cf2d021fcc319d6ff6db6907b57312d264025
parent2c0c61954173b1a01db6982942443daceea35379
[LoopNest] Add new utilites

getLoopIndex() is added to get the loop index of a given loop.
getLoopsAtDepth() is added to get the loops in the nest at a given
depth.

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D115590
llvm/include/llvm/Analysis/LoopNestAnalysis.h
llvm/unittests/Analysis/LoopNestTest.cpp