Home | History | Annotate | Download | only in bugpoint

Lines Matching full:safe

710 static bool TestOptimizer(BugDriver &BD, Module *Test, Module *Safe,
723 TestMergedProgram(BD, Optimized.get(), Safe, true, Error, Broken);
780 Module *Safe) {
787 // First, if the main function is in the Safe module, we must add a stub to
790 if (Function *oldMain = Safe->getFunction("main"))
813 BasicBlock *BB = BasicBlock::Create(Safe->getContext(), "entry", newMain);
817 ReturnInst::Create(Safe->getContext(), call, BB);
820 // The second nasty issue we must deal with in the JIT is that the Safe
825 // Add the resolver to the Safe module.
828 Safe->getOrInsertFunction("getPointerToNamedFunction",
829 Type::getInt8PtrTy(Safe->getContext()),
830 Type::getInt8PtrTy(Safe->getContext()),
834 for (Module::iterator F = Safe->begin(), E = Safe->end(); F != E; ++F) {
845 new GlobalVariable(*Safe, InitArray->getType(), true /*isConstant*/,
933 if (verifyModule(*Test) || verifyModule(*Safe)) {
945 static bool TestCodeGenerator(BugDriver &BD, Module *Test, Module *Safe,
947 CleanupAndPrepareModules(BD, Test, Safe);
970 EC = sys::fs::createTemporaryFile("bugpoint.safe", "bc", SafeModuleFD,
978 if (BD.writeProgramToFile(SafeModuleBC.str(), SafeModuleFD, Safe)) {
989 delete Safe;
1013 std::string Result = executeProgramSafely(Program, "bugpoint.safe.out",
1016 outs() << "\n*** The \"safe\" i.e. 'known good' backend cannot match "
1021 << "the program with the \"safe\" backend in this file for "
1063 EC = sys::fs::createTemporaryFile("bugpoint.safe", "bc", SafeModuleFD,