Lines Matching refs:PassMgr
48 void addPassesForRS2SPIRV(llvm::legacy::PassManager &PassMgr) { in addPassesForRS2SPIRV() argument
49 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()
64 PassMgr.add(createAggressiveDCEPass()); in addPassesForRS2SPIRV()
66 PassMgr.add(createRemoveAllGlobalAllocPass()); in addPassesForRS2SPIRV()
67 PassMgr.add(createPromoteMemoryToRegisterPass()); in addPassesForRS2SPIRV()
68 PassMgr.add(createTransOCLMD()); in addPassesForRS2SPIRV()
70 PassMgr.add(createOCLTypeToSPIRV()); in addPassesForRS2SPIRV()
71 PassMgr.add(createSPIRVRegularizeLLVM()); in addPassesForRS2SPIRV()
72 PassMgr.add(createSPIRVLowerConstExpr()); in addPassesForRS2SPIRV()
73 PassMgr.add(createSPIRVLowerBool()); in addPassesForRS2SPIRV()
78 llvm::legacy::PassManager PassMgr; in WriteSPIRV() local
79 addPassesForRS2SPIRV(PassMgr); in WriteSPIRV()
83 PassMgr.add(createLLVMToSPIRV(BM.get())); in WriteSPIRV()
84 PassMgr.run(*M); in WriteSPIRV()