search for: getassumptioncache

Displaying 6 results from an estimated 6 matches for "getassumptioncache".

2019 Mar 26
2
On-the-fly passes
...;F) -> ScalarEvolution & { return this->getAnalysis<ScalarEvolutionWrapperPass>(F).getSE(); }; auto AssumptionCacheGetter = [this] (Function &F) -> AssumptionCache & { return this->getAnalysis<AssumptionCacheTracker>().getAssumptionCache(F); }; auto OREGetter = [this] (Function &F) -> OptimizationRemarkEmitter & { return this-> getAnalysis<OptimizationRemarkEmitterWrapperPass>(F).getORE(); }; }
2018 Jan 28
0
Polly Dependency Analysis in MyPass
...ass>().getLoopInfo(); auto &AA2 = getAnalysis<AAResultsWrapperPass>().getAAResults(); auto const &DL2 = F.getParent()->getDataLayout(); auto &DT2 = getAnalysis<DominatorTreeWrapperPass>().getDomTree(); auto &AC2 = getAnalysis<AssumptionCacheTracker>().getAssumptionCache(F); Result.reset(new ScopInfo{DL2, SD2, SE2, LI2, AA2, DT2, AC2}); polly::DependenceInfoWrapperPass dp; auto &SI = *getAnalysis<polly::ScopInfoWrapperPass>().getSI(); for (auto &It : SI) { assert(It.second && "Invalid SCoP object!"); dp.recomputeDepe...
2018 Jan 28
4
Polly Dependency Analysis in MyPass
Hello, I need to analyze dependencies in my llvm ir by using polly. i created a new pass called mypass there i added polly dependency analysis pass but when i execute this pass in gdb i get no data. Why is that so? My code is follows; namespace { struct mypass : public FunctionPass { static char ID; mypass() : FunctionPass(ID) { } virtual bool runOnFunction(Function &F) {
2018 Jan 28
1
Polly Dependency Analysis in MyPass
...o(); > auto &AA2 = getAnalysis<AAResultsWrapperPass>().getAAResults(); > auto const &DL2 = F.getParent()->getDataLayout(); > auto &DT2 = getAnalysis<DominatorTreeWrapperPass>().getDomTree(); > auto &AC2 = getAnalysis<AssumptionCacheTracker>().getAssumptionCache(F); > > Result.reset(new ScopInfo{DL2, SD2, SE2, LI2, AA2, DT2, AC2}); > > > polly::DependenceInfoWrapperPass dp; > > auto &SI = *getAnalysis<polly::ScopInfoWrapperPass>().getSI(); > > for (auto &It : SI) { > assert(It.second && "Inva...
2018 Jan 29
1
Polly Dependency Analysis in MyPass
...ass>().getLoopInfo(); auto &AA2 = getAnalysis<AAResultsWrapperPass>().getAAResults(); auto const &DL2 = F.getParent()->getDataLayout(); auto &DT2 = getAnalysis<DominatorTreeWrapperPass>().getDomTree(); auto &AC2 = getAnalysis<AssumptionCacheTracker>().getAssumptionCache(F); Result.reset(new ScopInfo{DL2, SD2, SE2, LI2, AA2, DT2, AC2}); polly::DependenceInfoWrapperPass dp; auto &SI = *getAnalysis<polly::ScopInfoWrapperPass>().getSI(); for (auto &It : SI) { assert(It.second && "Invalid SCoP object!"); dp.recomputeDepen...
2018 Jan 29
0
Polly Dependency Analysis in MyPass
How do you compile the code? Within the Polly subdirectory using CMake? How do you run your pass. Using "opt -mypass inputfile.ll"? Michael 2018-01-28 9:30 GMT-06:00 hameeza ahmed via llvm-dev <llvm-dev at lists.llvm.org>: > Hello, > > I need to analyze dependencies in my llvm ir by using polly. i created a new > pass called mypass there i added polly dependency