Lines Matching defs:Test
250 // Test to see if the function is misoptimized if we ONLY run it on the
486 // Test to see if the function is misoptimized if we ONLY run it on the
694 /// This is the predicate function used to check to see if the "Test" portion of
698 static Expected<bool> TestOptimizer(BugDriver &BD, std::unique_ptr<Module> Test,
704 BD.runPassesOn(Test.get(), BD.getPassesToRun());
708 BD.EmitProgressBitcode(*Test, "pass-error", false);
709 BD.setNewProgram(std::move(Test));
779 CleanupAndPrepareModules(BugDriver &BD, std::unique_ptr<Module> Test,
782 Test = BD.performFinalCleanups(std::move(Test));
786 return Test;
789 // the Test module to call into it. Thus, we create a new function `main'
798 GlobalValue::ExternalLinkage, "main", Test.get());
803 oldMain->getName(), Test.get());
838 Function *TestFn = Test->getFunction(F->getName());
930 if (verifyModule(*Test) || verifyModule(*Safe)) {
935 return Test;
938 /// This is the predicate function used to check to see if the "Test" portion of
943 std::unique_ptr<Module> Test,
945 Test = CleanupAndPrepareModules(BD, std::move(Test), Safe.get());
956 if (BD.writeProgramToFile(TestModuleBC.str(), TestModuleFD, *Test)) {
989 // Run the code generator on the `Test' code, loading the shared library.