Lines Matching refs:mpModule
67 mPerFunctionPasses = new llvm::FunctionPassManager(mpModule); in CreateFunctionPasses()
68 mPerFunctionPasses->add(new llvm::DataLayoutPass(mpModule)); in CreateFunctionPasses()
79 mPerModulePasses->add(new llvm::DataLayoutPass(mpModule)); in CreateModulePasses()
110 mCodeGenPasses = new llvm::FunctionPassManager(mpModule); in CreateCodeGenPasses()
111 mCodeGenPasses->add(new llvm::DataLayoutPass(mpModule)); in CreateCodeGenPasses()
115 std::string Triple = mpModule->getTargetTriple(); in CreateCodeGenPasses()
147 if (mpModule->getDataLayout()->getPointerSize() == 4) { in CreateCodeGenPasses()
212 mpModule(NULL), in Backend()
232 mpModule = mGen->GetModule(); in Initialize()
265 if (!mpModule) in HandleTranslationUnit()
271 mpModule = NULL; in HandleTranslationUnit()
275 slangAssert(mpModule == M && in HandleTranslationUnit()
281 mpModule->getOrInsertNamedMetadata(Slang::PragmaMetadataName); in HandleTranslationUnit()
297 HandleTranslationUnitPost(mpModule); in HandleTranslationUnit()
306 for (llvm::Module::iterator I = mpModule->begin(), E = mpModule->end(); in HandleTranslationUnit()
318 mPerModulePasses->run(*mpModule); in HandleTranslationUnit()
328 for (llvm::Module::iterator I = mpModule->begin(), E = mpModule->end(); in HandleTranslationUnit()
340 LLEmitPM->run(*mpModule); in HandleTranslationUnit()
376 BCEmitPM->run(*mpModule); in HandleTranslationUnit()
400 delete mpModule; in ~Backend()