Lines Matching refs:getProgram

84     if (BD.runPasses(BD.getProgram(), Prefix, PrefixOutput))  in doTest()
101 if (BD.runPasses(BD.getProgram(), Suffix)) { in doTest()
146 Module *M = CloneModule(BD.getProgram(), VMap).release(); in TestGlobalVariables()
237 BD.getProgram()->getFunction("main")) == in TestFuncs()
243 Module *M = CloneModule(BD.getProgram(), VMap).release(); in TestFuncs()
350 Module *M = CloneModule(BD.getProgram(), VMap).release(); in TestBlocks()
460 Module *M = CloneModule(BD.getProgram(), VMap).release(); in TestInsts()
536 Module *M = CloneModule(BD.getProgram(), VMap).release(); in TestNamedMDs()
618 Module *M = CloneModule(BD.getProgram(), VMap).release(); in TestNamedMDOps()
622 for (auto &NamedMD : BD.getProgram()->named_metadata()) { in TestNamedMDOps()
655 if (BD.getProgram()->global_begin() != BD.getProgram()->global_end()) { in ReduceGlobalInitializers()
658 Module *M = CloneModule(BD.getProgram()).release(); in ReduceGlobalInitializers()
685 for (Module::global_iterator I = BD.getProgram()->global_begin(), in ReduceGlobalInitializers()
686 E = BD.getProgram()->global_end(); I != E; ++I) in ReduceGlobalInitializers()
699 BD.EmitProgressBitcode(BD.getProgram(), "reduced-global-variables"); in ReduceGlobalInitializers()
713 for (const Function &F : *BD.getProgram()) in ReduceInsts()
744 for (Module::const_iterator FI = BD.getProgram()->begin(), in ReduceInsts()
745 E = BD.getProgram()->end(); FI != E; ++FI) in ReduceInsts()
781 BD.EmitProgressBitcode(BD.getProgram(), "reduced-instructions"); in ReduceInsts()
798 for (Function &F : *BD.getProgram()) in DebugACrash()
810 BD.EmitProgressBitcode(BD.getProgram(), "reduced-function"); in DebugACrash()
820 for (Function &F : *BD.getProgram()) in DebugACrash()
826 BD.EmitProgressBitcode(BD.getProgram(), "reduced-blocks"); in DebugACrash()
840 for (auto &NamedMD : BD.getProgram()->named_metadata()) in DebugACrash()
849 for (auto &NamedMD : BD.getProgram()->named_metadata()) in DebugACrash()
854 BD.EmitProgressBitcode(BD.getProgram(), "reduced-named-md"); in DebugACrash()
860 Module *M = CloneModule(BD.getProgram()).release(); in DebugACrash()
871 BD.EmitProgressBitcode(BD.getProgram(), "reduced-simplified"); in DebugACrash()