Lines Matching refs:TheModule
107 Module *TheModule; member in __anoncdf3490f0111::EmitAssemblyHelper
156 TargetOpts(TOpts), LangOpts(LOpts), TheModule(M), in EmitAssemblyHelper()
643 Triple TargetTriple(TheModule->getTargetTriple()); in CreatePasses()
888 std::string Triple = TheModule->getTargetTriple(); in CreateTargetMachine()
915 llvm::Triple TargetTriple(TheModule->getTargetTriple()); in AddEmitPasses()
953 TheModule->setDataLayout(TM->createDataLayout()); in EmitAssembly()
968 legacy::FunctionPassManager PerFunctionPasses(TheModule); in EmitAssembly()
991 TheModule->addModuleFlag(Module::Error, "EnableSplitLTOUnit", in EmitAssembly()
1001 llvm::Triple(TheModule->getTargetTriple()).getVendor() != in EmitAssembly()
1004 if (!TheModule->getModuleFlag("ThinLTO")) in EmitAssembly()
1005 TheModule->addModuleFlag(Module::Error, "ThinLTO", uint32_t(0)); in EmitAssembly()
1006 TheModule->addModuleFlag(Module::Error, "EnableSplitLTOUnit", in EmitAssembly()
1042 for (Function &F : *TheModule) in EmitAssembly()
1051 PerModulePasses.run(*TheModule); in EmitAssembly()
1057 CodeGenPasses.run(*TheModule); in EmitAssembly()
1199 TheModule->setDataLayout(TM->createDataLayout()); in EmitAssemblyWithNewPassManager()
1304 Triple TargetTriple(TheModule->getTargetTriple()); in EmitAssemblyWithNewPassManager()
1436 TheModule->addModuleFlag(Module::Error, "EnableSplitLTOUnit", in EmitAssemblyWithNewPassManager()
1446 llvm::Triple(TheModule->getTargetTriple()).getVendor() != in EmitAssemblyWithNewPassManager()
1449 if (!TheModule->getModuleFlag("ThinLTO")) in EmitAssemblyWithNewPassManager()
1450 TheModule->addModuleFlag(Module::Error, "ThinLTO", uint32_t(0)); in EmitAssemblyWithNewPassManager()
1451 TheModule->addModuleFlag(Module::Error, "EnableSplitLTOUnit", in EmitAssemblyWithNewPassManager()
1487 MPM.run(*TheModule, MAM); in EmitAssemblyWithNewPassManager()
1493 CodeGenPasses.run(*TheModule); in EmitAssemblyWithNewPassManager()