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

Function simplifyKernel

src/compiler/cbs/SimplifyKernel.cpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace {
29using namespace hipsycl::compiler;
30bool simplifyKernel(llvm::Function &F, llvm::DominatorTree &DT, llvm::AssumptionCache &AC) {
31 bool Changed = true;
32 HIPSYCL_DEBUG_INFO << "Promote allocas in " << F.getName() << "\n";
33 utils::promoteAllocas(&F.getEntryBlock(), DT, AC);
34 return Changed;
35}
36} // namespace
37
38void hipsycl::compiler::SimplifyKernelPassLegacy::getAnalysisUsage(llvm::AnalysisUsage &AU) const {

Callers 2

runOnFunctionMethod · 0.85
runMethod · 0.85

Calls 1

promoteAllocasFunction · 0.85

Tested by

no test coverage detected