Lines Matching refs:Safe
694 std::unique_ptr<Module> Safe, std::string &Error) { in TestOptimizer() argument
706 BD, std::move(Optimized), std::move(Safe), Error, Broken); in TestOptimizer()
763 Module *Safe) { in CleanupAndPrepareModules() argument
773 if (Function *oldMain = Safe->getFunction("main")) in CleanupAndPrepareModules()
796 BasicBlock *BB = BasicBlock::Create(Safe->getContext(), "entry", newMain); in CleanupAndPrepareModules()
800 ReturnInst::Create(Safe->getContext(), call, BB); in CleanupAndPrepareModules()
811 Safe->getOrInsertFunction("getPointerToNamedFunction", in CleanupAndPrepareModules()
812 Type::getInt8PtrTy(Safe->getContext()), in CleanupAndPrepareModules()
813 Type::getInt8PtrTy(Safe->getContext()), in CleanupAndPrepareModules()
817 for (Module::iterator F = Safe->begin(), E = Safe->end(); F != E; ++F) { in CleanupAndPrepareModules()
828 new GlobalVariable(*Safe, InitArray->getType(), true /*isConstant*/, in CleanupAndPrepareModules()
915 if (verifyModule(*Test) || verifyModule(*Safe)) { in CleanupAndPrepareModules()
926 std::unique_ptr<Module> Safe, in TestCodeGenerator() argument
928 CleanupAndPrepareModules(BD, Test, Safe.get()); in TestCodeGenerator()
958 if (BD.writeProgramToFile(SafeModuleBC.str(), SafeModuleFD, Safe.get())) { in TestCodeGenerator()