Home
last modified time | relevance | path

Searched refs:BPFunctionNode (Results 1 – 7 of 7) sorted by relevance

/llvm-project/llvm/unittests/Support/
H A DBalancedPartitioningTest.cpp22 void PrintTo(const BPFunctionNode &Node, std::ostream *OS) { in PrintTo()
33 static std::vector<BPFunctionNode::IDT>
34 getIds(std::vector<BPFunctionNode> Nodes) { in getIds()
35 std::vector<BPFunctionNode::IDT> Ids; in getIds()
43 std::vector<BPFunctionNode> Nodes = { in TEST_F()
44 BPFunctionNode(0, {1, 2}), BPFunctionNode(2, {3, 4}), in TEST_F()
45 BPFunctionNode(1, {1, 2}), BPFunctionNode(3, {3, 4}), in TEST_F()
46 BPFunctionNode(4, {4}), in TEST_F()
51 auto NodeIs = [](BPFunctionNode::IDT Id, std::optional<uint32_t> Bucket) { in TEST_F()
52 return AllOf(Field("Id", &BPFunctionNode::Id, Id), in TEST_F()
[all …]
/llvm-project/llvm/unittests/ProfileData/
H A DBPFunctionNodeTest.cpp20 void PrintTo(const BPFunctionNode &Node, std::ostream *OS) { in PrintTo()
26 auto NodeIs = [](BPFunctionNode::IDT Id, in TEST()
27 ArrayRef<BPFunctionNode::UtilityNodeT> UNs) { in TEST()
28 return AllOf(Field("Id", &BPFunctionNode::Id, Id), in TEST()
29 Field("UtilityNodes", &BPFunctionNode::UtilityNodes, in TEST()
33 std::vector<BPFunctionNode> Nodes; in TEST()
/llvm-project/llvm/include/llvm/Support/
H A DBalancedPartitioning.h56 class BPFunctionNode {
64 BPFunctionNode(IDT Id, ArrayRef<UtilityNodeT> UtilityNodes) in BPFunctionNode() function
105 void run(std::vector<BPFunctionNode> &Nodes) const;
111 iterator_range<std::vector<BPFunctionNode>::iterator>;
156 bool moveFunctionNode(BPFunctionNode &N, unsigned LeftBucket,
195 static float moveGain(const BPFunctionNode &N, bool FromLeftToRight,
/llvm-project/llvm/lib/Support/
H A DBalancedPartitioning.cpp24 void BPFunctionNode::dump(raw_ostream &OS) const { in dump()
79 void BalancedPartitioning::run(std::vector<BPFunctionNode> &Nodes) const { in run()
172 DenseMap<BPFunctionNode::UtilityNodeT, unsigned> UtilityNodeIndex; in runIterations()
233 typedef std::pair<float, BPFunctionNode *> GainPair; in runIteration()
270 bool BalancedPartitioning::moveFunctionNode(BPFunctionNode &N, in moveFunctionNode()
318 float BalancedPartitioning::moveGain(const BPFunctionNode &N, in moveGain()
/llvm-project/llvm/lib/ProfileData/
H A DInstrProf.cpp1039 ArrayRef<TemporalProfTraceTy> Traces, std::vector<BPFunctionNode> &Nodes, in createBPFunctionNodes()
1041 using IDT = BPFunctionNode::IDT; in createBPFunctionNodes()
1042 using UtilityNodeT = BPFunctionNode::UtilityNodeT; in createBPFunctionNodes()
/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProf.h396 std::vector<BPFunctionNode> &Nodes,
/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp3405 std::vector<BPFunctionNode> Nodes;
3414 DenseMap<BPFunctionNode::IDT, unsigned> IdToPageNumber;