[PATCH] D35458: [Polly][PM][WIP] Polly pass registration
Philip Pfaffe via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 18 02:46:09 PDT 2017
philip.pfaffe added a comment.
In https://reviews.llvm.org/D35458#812036, @bollu wrote:
> A question from someone following this as an "outsider" with no context -
> Does this allow others to obtain, say, Scop information (outside of polly) the way one can access DomTree / SCEV information?
Yes, this is absolutely possible. This works for Function-level analyses of course (e.g. ScopInfo), but also for Scop-level analyses. If the querying pass is itself a ScopPass, this Just Works. Any other pass type can access Scop-analyses through the ScopAnalysisManagerFunctionProxy, like this:
/* ... */ run(Function &F, FunctionAnalysisManager &FAM) {
Scop &S = /*...*/;
auto &SAM = FAM.getResult<ScopAnalysisManagerFunctionProxy>(F).getManager();
auto &IA = SAM.getResult<IslAstAnalysis>(S);
}
https://reviews.llvm.org/D35458
More information about the llvm-commits
mailing list