Lines Matching defs:Solution
2267 void SolveRecurse(SmallVectorImpl<const Formula *> &Solution,
2273 void Solve(SmallVectorImpl<const Formula *> &Solution) const;
2290 void ImplementSolution(const SmallVectorImpl<const Formula *> &Solution);
5425 void LSRInstance::SolveRecurse(SmallVectorImpl<const Formula *> &Solution,
5486 SolveRecurse(Solution, SolutionCost, Workspace, NewCost,
5498 Solution = Workspace;
5505 /// Choose one formula from each use. Return the results in the given Solution
5507 void LSRInstance::Solve(SmallVectorImpl<const Formula *> &Solution) const {
5517 SolveRecurse(Solution, SolutionCost, Workspace, CurCost,
5519 if (Solution.empty()) {
5520 LLVM_DEBUG(dbgs() << "\nNo Satisfactory Solution\n");
5533 Solution[i]->print(dbgs());
5537 assert(Solution.size() == Uses.size() && "Malformed solution!");
5559 Solution.clear();
6061 const SmallVectorImpl<const Formula *> &Solution) {
6080 Rewrite(Uses[LUIdx], Fixup, *Solution[LUIdx], DeadInsts);
6240 SmallVector<const Formula *, 8> Solution;
6241 Solve(Solution);
6248 if (Solution.empty())
6261 ImplementSolution(Solution);