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.");
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Represents a solution to a PBQP problem.
void setSelection(GraphBase::NodeId nodeId, unsigned selection)
Set the selection for a given node.
Solution()=default
Initialise an empty solution.
unsigned getSelection(GraphBase::NodeId nodeId) const
Get a node's selection.
This is an optimization pass for GlobalISel generic memory operations.