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;
40 selections[nodeId] = selection;
47 SelectionsMap::const_iterator sItr = selections.find(nodeId);
48 assert(sItr != selections.end() &&
"No selection for node.");
56 #endif // LLVM_CODEGEN_PBQP_SOLUTION_H Represents a solution to a PBQP problem.
This class represents lattice values for constants.
Solution()=default
Initialise an empty solution.
void setSelection(GraphBase::NodeId nodeId, unsigned selection)
Set the selection for a given node.
unsigned getSelection(GraphBase::NodeId nodeId) const
Get a node's selection.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())