13 #ifndef LLVM_CODEGEN_PBQP_SOLUTION_H 14 #define LLVM_CODEGEN_PBQP_SOLUTION_H 28 using SelectionsMap = std::map<GraphBase::NodeId, unsigned>;
29 SelectionsMap selections;
39 selections[nodeId] = selection;
46 SelectionsMap::const_iterator sItr = selections.find(nodeId);
47 assert(sItr != selections.end() &&
"No selection for node.");
55 #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())