Lines Matching refs:script
221 enum Compiler::ErrorCode Compiler::runPasses(Script &script, in runPasses() argument
235 addDebugInfoPass(script, transformPasses); in runPasses()
238 if (!addInternalizeSymbolsPass(script, transformPasses)) in runPasses()
241 addGlobalInfoPass(script, transformPasses); in runPasses()
279 if (script.getEmbedInfo()) in runPasses()
283 transformPasses.run(script.getSource().getModule()); in runPasses()
296 codeGenPasses.run(script.getSource().getModule()); in runPasses()
301 enum Compiler::ErrorCode Compiler::compile(Script &script, in compile() argument
304 llvm::Module &module = script.getSource().getModule(); in compile()
326 if (script.isStructExplicitlyPaddedBySlang()) { in compile()
357 if ((err = runPasses(script, pResult)) != kSuccess) { in compile()
368 bool Compiler::addInternalizeSymbolsPass(Script &script, llvm::legacy::PassManager &pPM) { in addInternalizeSymbolsPass() argument
371 llvm::Module &module = script.getSource().getModule(); in addInternalizeSymbolsPass()
465 void Compiler::addDebugInfoPass(Script &script, llvm::legacy::PassManager &pPM) { in addDebugInfoPass() argument
466 if (script.getSource().getDebugInfoEnabled()) in addDebugInfoPass()
476 void Compiler::addGlobalInfoPass(Script &script, llvm::legacy::PassManager &pPM) { in addGlobalInfoPass() argument
478 if (script.getEmbedGlobalInfo()) { in addGlobalInfoPass()
479 pPM.add(createRSGlobalInfoPass(script.getEmbedGlobalInfoSkipConstant())); in addGlobalInfoPass()
489 enum Compiler::ErrorCode Compiler::screenGlobalFunctions(Script &script) { in screenGlobalFunctions() argument
490 llvm::Module &module = script.getSource().getModule(); in screenGlobalFunctions()
513 void Compiler::translateGEPs(Script &script) { in translateGEPs() argument
518 pPM.run(script.getSource().getModule()); in translateGEPs()