Lines Matching refs:Safe
692 static bool TestOptimizer(BugDriver &BD, Module *Test, Module *Safe, in TestOptimizer() argument
704 Module *New = TestMergedProgram(BD, Optimized, Safe, true, Error, Broken); in TestOptimizer()
761 Module *Safe) { in CleanupAndPrepareModules() argument
771 if (Function *oldMain = Safe->getFunction("main")) in CleanupAndPrepareModules()
794 BasicBlock *BB = BasicBlock::Create(Safe->getContext(), "entry", newMain); in CleanupAndPrepareModules()
798 ReturnInst::Create(Safe->getContext(), call, BB); in CleanupAndPrepareModules()
809 Safe->getOrInsertFunction("getPointerToNamedFunction", in CleanupAndPrepareModules()
810 Type::getInt8PtrTy(Safe->getContext()), in CleanupAndPrepareModules()
811 Type::getInt8PtrTy(Safe->getContext()), in CleanupAndPrepareModules()
815 for (Module::iterator F = Safe->begin(), E = Safe->end(); F != E; ++F) { in CleanupAndPrepareModules()
825 new GlobalVariable(*Safe, InitArray->getType(), true /*isConstant*/, in CleanupAndPrepareModules()
912 if (verifyModule(*Test) || verifyModule(*Safe)) { in CleanupAndPrepareModules()
924 static bool TestCodeGenerator(BugDriver &BD, Module *Test, Module *Safe, in TestCodeGenerator() argument
926 CleanupAndPrepareModules(BD, Test, Safe); in TestCodeGenerator()
952 if (BD.writeProgramToFile(SafeModuleBC.str(), Safe)) { in TestCodeGenerator()
963 delete Safe; in TestCodeGenerator()