class Solution

Declaration

class Solution { /* full declaration omitted */ };

Description

Represents a solution to a PBQP problem. To get the selection for each node in the problem use the getSelection method.

Declared at: llvm/include/llvm/CodeGen/PBQP/Solution.h:26

Member Variables

private llvm::PBQP::Solution::SelectionsMap selections

Method Overview

Methods

Solution()

Description

Initialise an empty solution.

Declared at: llvm/include/llvm/CodeGen/PBQP/Solution.h:33

unsigned int getSelection(
    GraphBase::NodeId nodeId) const

Description

Get a node's selection.

Declared at: llvm/include/llvm/CodeGen/PBQP/Solution.h:45

Parameters

GraphBase::NodeId nodeId
Node id.

Returns

The selection for nodeId;

void setSelection(GraphBase::NodeId nodeId,
                  unsigned int selection)

Description

Set the selection for a given node.

Declared at: llvm/include/llvm/CodeGen/PBQP/Solution.h:38

Parameters

GraphBase::NodeId nodeId
Node id.
unsigned int selection
Selection for nodeId.