14 #ifndef LLVM_CODEGEN_PBQP_SOLUTION_H
15 #define LLVM_CODEGEN_PBQP_SOLUTION_H
30 typedef std::map<GraphBase::NodeId, unsigned> SelectionsMap;
31 SelectionsMap selections;
33 unsigned r0Reductions, r1Reductions, r2Reductions, rNReductions;
39 : r0Reductions(0), r1Reductions(0), r2Reductions(0), rNReductions(0) {}
45 selections[nodeId] = selection;
52 SelectionsMap::const_iterator sItr = selections.find(nodeId);
53 assert(sItr != selections.end() &&
"No selection for node.");
62 #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()
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())