Lines Matching defs:Test
250 // Test to see if the function is misoptimized if we ONLY run it on the
488 // Test to see if the function is misoptimized if we ONLY run it on the
697 /// This is the predicate function used to check to see if the "Test" portion of
701 static Expected<bool> TestOptimizer(BugDriver &BD, std::unique_ptr<Module> Test,
707 BD.runPassesOn(Test.get(), BD.getPassesToRun());
711 BD.EmitProgressBitcode(*Test, "pass-error", false);
712 BD.setNewProgram(std::move(Test));
782 CleanupAndPrepareModules(BugDriver &BD, std::unique_ptr<Module> Test,
785 Test = BD.performFinalCleanups(std::move(Test));
789 return Test;
792 // the Test module to call into it. Thus, we create a new function `main'
801 GlobalValue::ExternalLinkage, "main", Test.get());
806 oldMain->getName(), Test.get());
841 Function *TestFn = Test->getFunction(F->getName());
933 if (verifyModule(*Test) || verifyModule(*Safe)) {
938 return Test;
941 /// This is the predicate function used to check to see if the "Test" portion of
946 std::unique_ptr<Module> Test,
948 Test = CleanupAndPrepareModules(BD, std::move(Test), Safe.get());
959 if (BD.writeProgramToFile(std::string(TestModuleBC), TestModuleFD, *Test)) {
992 // Run the code generator on the `Test' code, loading the shared library.