MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / runOnFunction

Method runOnFunction

src/compiler/cbs/SimplifyKernel.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48bool 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
58llvm::PreservedAnalyses
59hipsycl::compiler::SimplifyKernelPass::run(llvm::Function &F, llvm::FunctionAnalysisManager &AM) {

Callers

nothing calls this directly

Calls 2

simplifyKernelFunction · 0.85
isKernelFuncMethod · 0.80

Tested by

no test coverage detected