• Home
  • Raw
  • Download

Lines Matching refs:Module

131   std::unique_ptr<Module> PrefixOutput =  in doTest()
148 std::unique_ptr<Module> OriginalInput( in doTest()
179 bool (*TestFn)(BugDriver &, Module *, Module *, std::string &);
182 bool (*F)(BugDriver &, Module *, Module *, in ReduceMiscompilingFunctions() argument
217 static Module *TestMergedProgram(const BugDriver &BD, Module *M1, Module *M2, in TestMergedProgram()
262 Module *Clone = CloneModule(BD.getProgram(), VMap); in TestFuncs()
263 Module *Orig = BD.swapProgramIn(Clone); in TestFuncs()
273 Module *ToNotOptimize = CloneModule(BD.getProgram(), VMap); in TestFuncs()
274 Module *ToOptimize = SplitFunctionsOutOfModule(ToNotOptimize, FuncsOnClone, in TestFuncs()
287 static void DisambiguateGlobalSymbols(Module *M) { in DisambiguateGlobalSymbols()
288 for (Module::global_iterator I = M->global_begin(), E = M->global_end(); in DisambiguateGlobalSymbols()
292 for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I) in DisambiguateGlobalSymbols()
302 bool (*TestFn)(BugDriver &, Module *, Module *, in ExtractLoops() argument
311 Module *ToNotOptimize = CloneModule(BD.getProgram(), VMap); in ExtractLoops()
312 Module *ToOptimize = SplitFunctionsOutOfModule(ToNotOptimize, in ExtractLoops()
315 Module *ToOptimizeLoopExtracted = BD.extractLoop(ToOptimize).release(); in ExtractLoops()
333 Module *New = TestMergedProgram(BD, ToOptimizeLoopExtracted, in ExtractLoops()
339 Module *Old = BD.swapProgramIn(New); in ExtractLoops()
370 Module *TOLEBackup = CloneModule(ToOptimizeLoopExtracted, VMap); in ExtractLoops()
371 Module *TNOBackup = CloneModule(ToNotOptimize, VMap); in ExtractLoops()
414 for (Module::iterator I = ToOptimizeLoopExtracted->begin(), in ExtractLoops()
448 bool (*TestFn)(BugDriver &, Module *, Module *, std::string &);
452 bool (*F)(BugDriver &, Module *, Module *, in ReduceMiscompiledBlocks() argument
501 Module *Clone = CloneModule(BD.getProgram(), VMap); in TestFuncs()
502 Module *Orig = BD.swapProgramIn(Clone); in TestFuncs()
515 Module *ToNotOptimize = CloneModule(BD.getProgram(), VMap); in TestFuncs()
516 Module *ToOptimize = SplitFunctionsOutOfModule(ToNotOptimize, in TestFuncs()
522 if (std::unique_ptr<Module> New = in TestFuncs()
543 bool (*TestFn)(BugDriver &, Module *, Module *, in ExtractBlocks() argument
577 Module *ProgClone = CloneModule(BD.getProgram(), VMap); in ExtractBlocks()
578 Module *ToExtract = SplitFunctionsOutOfModule(ProgClone, in ExtractBlocks()
581 std::unique_ptr<Module> Extracted = in ExtractBlocks()
596 for (Module::iterator I = Extracted->begin(), E = Extracted->end(); in ExtractBlocks()
626 bool (*TestFn)(BugDriver &, Module *, Module *, in DebugAMiscompilation() argument
634 Module *Prog = BD.getProgram(); in DebugAMiscompilation()
635 for (Module::iterator I = Prog->begin(), E = Prog->end(); I != E; ++I) in DebugAMiscompilation()
710 static bool TestOptimizer(BugDriver &BD, Module *Test, Module *Safe, in TestOptimizer()
715 std::unique_ptr<Module> Optimized = BD.runPassesOn(Test, BD.getPassesToRun(), in TestOptimizer()
722 Module *New = in TestOptimizer()
760 Module *ToNotOptimize = CloneModule(getProgram(), VMap); in debugMiscompilation()
761 Module *ToOptimize = SplitFunctionsOutOfModule(ToNotOptimize, in debugMiscompilation()
779 static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test, in CleanupAndPrepareModules()
780 Module *Safe) { in CleanupAndPrepareModules()
834 for (Module::iterator F = Safe->begin(), E = Safe->end(); F != E; ++F) { in CleanupAndPrepareModules()
945 static bool TestCodeGenerator(BugDriver &BD, Module *Test, Module *Safe, in TestCodeGenerator()
1037 Module *ToNotCodeGen = CloneModule(getProgram(), VMap); in debugCodeGenerator()
1038 Module *ToCodeGen = SplitFunctionsOutOfModule(ToNotCodeGen, Funcs, VMap); in debugCodeGenerator()