Lines Matching refs:Module

131   std::unique_ptr<Module> PrefixOutput =  in doTest()
148 std::unique_ptr<Module> OriginalInput( in doTest()
179 bool (*TestFn)(BugDriver &, std::unique_ptr<Module>,
180 std::unique_ptr<Module>, std::string &);
184 bool (*F)(BugDriver &, std::unique_ptr<Module>, in ReduceMiscompilingFunctions() argument
185 std::unique_ptr<Module>, in ReduceMiscompilingFunctions()
219 static std::unique_ptr<Module> testMergedProgram(const BugDriver &BD, in testMergedProgram()
220 std::unique_ptr<Module> M1, in testMergedProgram()
221 std::unique_ptr<Module> M2, in testMergedProgram()
257 Module *Clone = CloneModule(BD.getProgram(), VMap).release(); in TestFuncs()
258 Module *Orig = BD.swapProgramIn(Clone); in TestFuncs()
268 std::unique_ptr<Module> ToNotOptimize = CloneModule(BD.getProgram(), VMap); in TestFuncs()
269 std::unique_ptr<Module> ToOptimize = in TestFuncs()
282 static void DisambiguateGlobalSymbols(Module *M) { in DisambiguateGlobalSymbols()
283 for (Module::global_iterator I = M->global_begin(), E = M->global_end(); in DisambiguateGlobalSymbols()
287 for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I) in DisambiguateGlobalSymbols()
297 bool (*TestFn)(BugDriver &, std::unique_ptr<Module>, in ExtractLoops() argument
298 std::unique_ptr<Module>, std::string &), in ExtractLoops()
306 std::unique_ptr<Module> ToNotOptimize = CloneModule(BD.getProgram(), VMap); in ExtractLoops()
307 Module *ToOptimize = SplitFunctionsOutOfModule(ToNotOptimize.get(), in ExtractLoops()
310 std::unique_ptr<Module> ToOptimizeLoopExtracted = in ExtractLoops()
328 std::unique_ptr<Module> New = in ExtractLoops()
335 Module *Old = BD.swapProgramIn(New.release()); in ExtractLoops()
365 std::unique_ptr<Module> TOLEBackup = in ExtractLoops()
367 std::unique_ptr<Module> TNOBackup = CloneModule(ToNotOptimize.get(), VMap); in ExtractLoops()
409 for (Module::iterator I = ToOptimizeLoopExtracted->begin(), in ExtractLoops()
440 bool (*TestFn)(BugDriver &, std::unique_ptr<Module>,
441 std::unique_ptr<Module>, std::string &);
445 bool (*F)(BugDriver &, std::unique_ptr<Module>, in ReduceMiscompiledBlocks() argument
446 std::unique_ptr<Module>, std::string &), in ReduceMiscompiledBlocks()
494 Module *Clone = CloneModule(BD.getProgram(), VMap).release(); in TestFuncs()
495 Module *Orig = BD.swapProgramIn(Clone); in TestFuncs()
508 std::unique_ptr<Module> ToNotOptimize = CloneModule(BD.getProgram(), VMap); in TestFuncs()
509 std::unique_ptr<Module> ToOptimize = in TestFuncs()
514 if (std::unique_ptr<Module> New = in TestFuncs()
528 bool (*TestFn)(BugDriver &, std::unique_ptr<Module>, in ExtractBlocks() argument
529 std::unique_ptr<Module>, in ExtractBlocks()
562 Module *ProgClone = CloneModule(BD.getProgram(), VMap).release(); in ExtractBlocks()
563 Module *ToExtract = in ExtractBlocks()
566 std::unique_ptr<Module> Extracted = in ExtractBlocks()
581 for (Module::iterator I = Extracted->begin(), E = Extracted->end(); in ExtractBlocks()
609 bool (*TestFn)(BugDriver &, std::unique_ptr<Module>, in DebugAMiscompilation() argument
610 std::unique_ptr<Module>, std::string &), in DebugAMiscompilation()
617 Module *Prog = BD.getProgram(); in DebugAMiscompilation()
693 static bool TestOptimizer(BugDriver &BD, std::unique_ptr<Module> Test, in TestOptimizer()
694 std::unique_ptr<Module> Safe, std::string &Error) { in TestOptimizer()
698 std::unique_ptr<Module> Optimized = in TestOptimizer()
705 std::unique_ptr<Module> New = testMergedProgram( in TestOptimizer()
743 Module *ToNotOptimize = CloneModule(getProgram(), VMap).release(); in debugMiscompilation()
744 Module *ToOptimize = in debugMiscompilation()
762 std::unique_ptr<Module> &Test, in CleanupAndPrepareModules()
763 Module *Safe) { in CleanupAndPrepareModules()
817 for (Module::iterator F = Safe->begin(), E = Safe->end(); F != E; ++F) { in CleanupAndPrepareModules()
925 static bool TestCodeGenerator(BugDriver &BD, std::unique_ptr<Module> Test, in TestCodeGenerator()
926 std::unique_ptr<Module> Safe, in TestCodeGenerator()
1016 std::unique_ptr<Module> ToNotCodeGen = CloneModule(getProgram(), VMap); in debugCodeGenerator()
1017 std::unique_ptr<Module> ToCodeGen = in debugCodeGenerator()