| 46 | } |
| 47 | |
| 48 | bool hipsycl::compiler::SimplifyKernelPassLegacy::runOnFunction(llvm::Function &F) { |
| 49 | const auto &SAA = getAnalysis<SplitterAnnotationAnalysisLegacy>().getAnnotationInfo(); |
| 50 | if (!SAA.isKernelFunc(&F)) |
| 51 | return false; |
| 52 | |
| 53 | auto &DT = getAnalysis<llvm::DominatorTreeWrapperPass>().getDomTree(); |
| 54 | auto &AC = getAnalysis<llvm::AssumptionCacheTracker>().getAssumptionCache(F); |
| 55 | return simplifyKernel(F, DT, AC); |
| 56 | } |
| 57 | |
| 58 | llvm::PreservedAnalyses |
| 59 | hipsycl::compiler::SimplifyKernelPass::run(llvm::Function &F, llvm::FunctionAnalysisManager &AM) { |
nothing calls this directly
no test coverage detected