Lines Matching refs:TheModule

108   Module *TheModule;  member in __anon701d26f80111::EmitAssemblyHelper
157 TargetOpts(TOpts), LangOpts(LOpts), TheModule(M), in EmitAssemblyHelper()
651 Triple TargetTriple(TheModule->getTargetTriple()); in CreatePasses()
894 std::string Triple = TheModule->getTargetTriple(); in CreateTargetMachine()
921 llvm::Triple TargetTriple(TheModule->getTargetTriple()); in AddEmitPasses()
959 TheModule->setDataLayout(TM->createDataLayout()); in EmitAssembly()
974 legacy::FunctionPassManager PerFunctionPasses(TheModule); in EmitAssembly()
997 TheModule->addModuleFlag(Module::Error, "EnableSplitLTOUnit", in EmitAssembly()
1007 llvm::Triple(TheModule->getTargetTriple()).getVendor() != in EmitAssembly()
1010 if (!TheModule->getModuleFlag("ThinLTO")) in EmitAssembly()
1011 TheModule->addModuleFlag(Module::Error, "ThinLTO", uint32_t(0)); in EmitAssembly()
1012 TheModule->addModuleFlag(Module::Error, "EnableSplitLTOUnit", in EmitAssembly()
1048 for (Function &F : *TheModule) in EmitAssembly()
1057 PerModulePasses.run(*TheModule); in EmitAssembly()
1063 CodeGenPasses.run(*TheModule); in EmitAssembly()
1207 TheModule->setDataLayout(TM->createDataLayout()); in EmitAssemblyWithNewPassManager()
1311 Triple TargetTriple(TheModule->getTargetTriple()); in EmitAssemblyWithNewPassManager()
1443 TheModule->addModuleFlag(Module::Error, "EnableSplitLTOUnit", in EmitAssemblyWithNewPassManager()
1453 llvm::Triple(TheModule->getTargetTriple()).getVendor() != in EmitAssemblyWithNewPassManager()
1456 if (!TheModule->getModuleFlag("ThinLTO")) in EmitAssemblyWithNewPassManager()
1457 TheModule->addModuleFlag(Module::Error, "ThinLTO", uint32_t(0)); in EmitAssemblyWithNewPassManager()
1458 TheModule->addModuleFlag(Module::Error, "EnableSplitLTOUnit", in EmitAssemblyWithNewPassManager()
1494 MPM.run(*TheModule, MAM); in EmitAssemblyWithNewPassManager()
1500 CodeGenPasses.run(*TheModule); in EmitAssemblyWithNewPassManager()