14 #ifndef LLVM_CODEGEN_PBQP_SOLUTION_H
15 #define LLVM_CODEGEN_PBQP_SOLUTION_H
29 using SelectionsMap = std::map<GraphBase::NodeId, unsigned>;
30 SelectionsMap selections;
32 unsigned r0Reductions = 0;
33 unsigned r1Reductions = 0;
34 unsigned r2Reductions = 0;
35 unsigned rNReductions = 0;
45 selections[nodeId] = selection;
52 SelectionsMap::const_iterator sItr = selections.find(nodeId);
53 assert(sItr != selections.end() &&
"No selection for node.");
61 #endif // LLVM_CODEGEN_PBQP_SOLUTION_H
Represents a solution to a PBQP problem.
unsigned getSelection(GraphBase::NodeId nodeId) const
Get a node's selection.
Solution()=default
Initialise an empty solution.
void setSelection(GraphBase::NodeId nodeId, unsigned selection)
Set the selection for a given node.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())