LLVM 20.0.0git
|
A function with a set of utility nodes where it is beneficial to order two functions close together if they have similar utility nodes. More...
#include "llvm/Support/BalancedPartitioning.h"
Public Types | |
using | IDT = uint64_t |
using | UtilityNodeT = uint32_t |
Public Member Functions | |
BPFunctionNode (IDT Id, ArrayRef< UtilityNodeT > UtilityNodes) | |
void | dump (raw_ostream &OS) const |
Public Attributes | |
IDT | Id |
The ID of this node. | |
Protected Attributes | |
SmallVector< UtilityNodeT, 4 > | UtilityNodes |
The list of utility nodes associated with this node. | |
std::optional< unsigned > | Bucket |
The bucket assigned by balanced partitioning. | |
uint64_t | InputOrderIndex = 0 |
The index of the input order of the FunctionNodes. | |
Friends | |
class | BalancedPartitioning |
class | BPFunctionNodeTest_Basic_Test |
class | BalancedPartitioningTest_Basic_Test |
class | BalancedPartitioningTest_Large_Test |
A function with a set of utility nodes where it is beneficial to order two functions close together if they have similar utility nodes.
Definition at line 56 of file BalancedPartitioning.h.
using llvm::BPFunctionNode::IDT = uint64_t |
Definition at line 60 of file BalancedPartitioning.h.
Definition at line 61 of file BalancedPartitioning.h.
|
inline |
UtilityNodes | the set of utility nodes (must be unique'd) |
Definition at line 64 of file BalancedPartitioning.h.
void BPFunctionNode::dump | ( | raw_ostream & | OS | ) | const |
Definition at line 23 of file BalancedPartitioning.cpp.
References Bucket, llvm::formatv(), Id, llvm::make_range(), OS, and UtilityNodes.
|
friend |
Definition at line 57 of file BalancedPartitioning.h.
|
friend |
Definition at line 81 of file BalancedPartitioning.h.
|
friend |
Definition at line 82 of file BalancedPartitioning.h.
|
friend |
Definition at line 80 of file BalancedPartitioning.h.
|
protected |
The bucket assigned by balanced partitioning.
Definition at line 76 of file BalancedPartitioning.h.
Referenced by dump().
IDT llvm::BPFunctionNode::Id |
|
protected |
The index of the input order of the FunctionNodes.
Definition at line 78 of file BalancedPartitioning.h.
|
protected |
The list of utility nodes associated with this node.
Definition at line 74 of file BalancedPartitioning.h.
Referenced by dump().