LLVM 20.0.0git
|
Represents a solution to a PBQP problem. More...
#include "llvm/CodeGen/PBQP/Solution.h"
Public Member Functions | |
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. | |
Represents a solution to a PBQP problem.
To get the selection for each node in the problem use the getSelection method.
Definition at line 26 of file Solution.h.
|
default |
Initialise an empty solution.
|
inline |
Get a node's selection.
nodeId | Node id. |
Definition at line 45 of file Solution.h.
References assert().
Referenced by llvm::PBQP::backpropagate().
|
inline |
Set the selection for a given node.
nodeId | Node id. |
selection | Selection for nodeId. |
Definition at line 38 of file Solution.h.
Referenced by llvm::PBQP::backpropagate().