Lines Matching defs:Safe
702 std::unique_ptr<Module> Safe) {
721 auto Result = testMergedProgram(BD, *Optimized, *Safe, Broken);
783 Module *Safe) {
791 // First, if the main function is in the Safe module, we must add a stub to
794 if (Function *oldMain = Safe->getFunction("main"))
818 BasicBlock *BB = BasicBlock::Create(Safe->getContext(), "entry", newMain);
822 ReturnInst::Create(Safe->getContext(), call, BB);
825 // The second nasty issue we must deal with in the JIT is that the Safe
830 // Add the resolver to the Safe module.
832 FunctionCallee resolverFunc = Safe->getOrInsertFunction(
833 "getPointerToNamedFunction", Type::getInt8PtrTy(Safe->getContext()),
834 Type::getInt8PtrTy(Safe->getContext()));
837 for (Module::iterator F = Safe->begin(), E = Safe->end(); F != E; ++F) {
849 *Safe, InitArray->getType(), true /*isConstant*/,
933 if (verifyModule(*Test) || verifyModule(*Safe)) {
947 std::unique_ptr<Module> Safe) {
948 Test = CleanupAndPrepareModules(BD, std::move(Test), Safe.get());
980 *Safe)) {