[PATCH] D87741: [Delinearization][NewPM] Port delinearization to NPM
Alina Sbirlea via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 21 17:33:17 PDT 2020
asbirlea accepted this revision.
asbirlea added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/lib/Analysis/Delinearization.cpp:59
-} // end anonymous namespace
-
-void Delinearization::getAnalysisUsage(AnalysisUsage &AU) const {
- AU.setPreservesAll();
- AU.addRequired<LoopInfoWrapperPass>();
- AU.addRequired<ScalarEvolutionWrapperPass>();
-}
-
-bool Delinearization::runOnFunction(Function &F) {
- this->F = &F;
- SE = &getAnalysis<ScalarEvolutionWrapperPass>().getSE();
- LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
- return false;
-}
-
-void Delinearization::print(raw_ostream &O, const Module *) const {
+void PrintDelinearization(raw_ostream &O, Function *F, LoopInfo *LI,
+ ScalarEvolution *SE) {
----------------
s/PrintDelinearization/printDelinearization
Make this static?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87741/new/
https://reviews.llvm.org/D87741
More information about the llvm-commits
mailing list