Lines Matching refs:Safe
695 std::unique_ptr<Module> Safe, std::string &Error) { in TestOptimizer() argument
713 BD, std::move(Optimized), std::move(Safe), Error, Broken); in TestOptimizer()
767 Module *Safe) { in CleanupAndPrepareModules() argument
777 if (Function *oldMain = Safe->getFunction("main")) in CleanupAndPrepareModules()
800 BasicBlock *BB = BasicBlock::Create(Safe->getContext(), "entry", newMain); in CleanupAndPrepareModules()
804 ReturnInst::Create(Safe->getContext(), call, BB); in CleanupAndPrepareModules()
815 Safe->getOrInsertFunction("getPointerToNamedFunction", in CleanupAndPrepareModules()
816 Type::getInt8PtrTy(Safe->getContext()), in CleanupAndPrepareModules()
817 Type::getInt8PtrTy(Safe->getContext()), in CleanupAndPrepareModules()
821 for (Module::iterator F = Safe->begin(), E = Safe->end(); F != E; ++F) { in CleanupAndPrepareModules()
832 new GlobalVariable(*Safe, InitArray->getType(), true /*isConstant*/, in CleanupAndPrepareModules()
919 if (verifyModule(*Test) || verifyModule(*Safe)) { in CleanupAndPrepareModules()
930 std::unique_ptr<Module> Safe, in TestCodeGenerator() argument
932 CleanupAndPrepareModules(BD, Test, Safe.get()); in TestCodeGenerator()
962 if (BD.writeProgramToFile(SafeModuleBC.str(), SafeModuleFD, Safe.get())) { in TestCodeGenerator()