Introduce Scop::getStmtFor. NFC.
authorMichael Kruse <llvm@meinersbur.de>
Wed, 24 Feb 2016 22:08:19 +0000 (22:08 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Wed, 24 Feb 2016 22:08:19 +0000 (22:08 +0000)
commit6f7721f02b4ea7bd3c1a3d97806f216f01497de7
tree1097dbe6309b4bf514f6a9d393d5a39a2d8be26f
parenteac9726e8c48e612ea9997d43d07b6fe0895b8b7
Introduce Scop::getStmtFor. NFC.

Replace Scop::getStmtForBasicBlock and Scop::getStmtForRegionNode, and
add overloads for llvm::Instruction and llvm::RegionNode.

getStmtFor and overloads become the common interface to get the Stmt
that contains something. Named after LoopInfo::getLoopFor and
RegionInfo::getRegionFor.

llvm-svn: 261791
polly/include/polly/ScopInfo.h
polly/lib/Analysis/ScopInfo.cpp
polly/lib/CodeGen/IslNodeBuilder.cpp