Searched refs:PassMgr (Results 1 – 2 of 2) sorted by relevance
48 void addPassesForRS2SPIRV(llvm::legacy::PassManager &PassMgr) { in addPassesForRS2SPIRV() argument49 PassMgr.add(createGlobalMergePass()); in addPassesForRS2SPIRV()51 PassMgr.add(createInlinePreparationPass()); in addPassesForRS2SPIRV()52 PassMgr.add(createAlwaysInlinerPass()); in addPassesForRS2SPIRV()53 PassMgr.add(createRemoveNonkernelsPass()); in addPassesForRS2SPIRV()55 PassMgr.add(createGlobalDCEPass()); in addPassesForRS2SPIRV()57 PassMgr.add(createStripDeadDebugInfoPass()); in addPassesForRS2SPIRV()59 PassMgr.add(createStripDeadPrototypesPass()); in addPassesForRS2SPIRV()61 PassMgr.add(createGlobalAllocPass()); in addPassesForRS2SPIRV()63 PassMgr.add(createDeadStoreEliminationPass()); in addPassesForRS2SPIRV()[all …]
66 llvm::legacy::PassManager PassMgr; in WriteBitcode() local67 PassMgr.add(rs2spirv::createGlobalMergePass(true)); in WriteBitcode()68 PassMgr.run(*M); in WriteBitcode()