Lines Matching refs:TheModule
82 Module *TheModule; member in __anonf19209130111::EmitAssemblyHelper
131 TargetOpts(TOpts), LangOpts(LOpts), TheModule(M), in EmitAssemblyHelper()
529 Triple TargetTriple(TheModule->getTargetTriple()); in CreatePasses()
726 std::string Triple = TheModule->getTargetTriple(); in CreateTargetMachine()
751 llvm::Triple TargetTriple(TheModule->getTargetTriple()); in AddEmitPasses()
789 TheModule->setDataLayout(TM->createDataLayout()); in EmitAssembly()
795 legacy::FunctionPassManager PerFunctionPasses(TheModule); in EmitAssembly()
818 TheModule->addModuleFlag(Module::Error, "EnableSplitLTOUnit", in EmitAssembly()
828 llvm::Triple(TheModule->getTargetTriple()).getVendor() != in EmitAssembly()
831 if (!TheModule->getModuleFlag("ThinLTO")) in EmitAssembly()
832 TheModule->addModuleFlag(Module::Error, "ThinLTO", uint32_t(0)); in EmitAssembly()
833 TheModule->addModuleFlag(Module::Error, "EnableSplitLTOUnit", in EmitAssembly()
869 for (Function &F : *TheModule) in EmitAssembly()
877 PerModulePasses.run(*TheModule); in EmitAssembly()
882 CodeGenPasses.run(*TheModule); in EmitAssembly()
938 TheModule->setDataLayout(TM->createDataLayout()); in EmitAssemblyWithNewPassManager()
975 Triple TargetTriple(TheModule->getTargetTriple()); in EmitAssemblyWithNewPassManager()
1063 TheModule->addModuleFlag(Module::Error, "EnableSplitLTOUnit", in EmitAssemblyWithNewPassManager()
1073 llvm::Triple(TheModule->getTargetTriple()).getVendor() != in EmitAssemblyWithNewPassManager()
1076 if (!TheModule->getModuleFlag("ThinLTO")) in EmitAssemblyWithNewPassManager()
1077 TheModule->addModuleFlag(Module::Error, "ThinLTO", uint32_t(0)); in EmitAssemblyWithNewPassManager()
1078 TheModule->addModuleFlag(Module::Error, "EnableSplitLTOUnit", in EmitAssemblyWithNewPassManager()
1114 MPM.run(*TheModule, MAM); in EmitAssemblyWithNewPassManager()
1120 CodeGenPasses.run(*TheModule); in EmitAssemblyWithNewPassManager()