Lines Matching refs:BinaryFunction
40 const std::vector<BinaryFunction *> &BinaryFunctions, in extractBasicBlockInfo()
44 for (BinaryFunction *BF : BinaryFunctions) { in extractBasicBlockInfo()
63 calcTSPScore(const std::vector<BinaryFunction *> &BinaryFunctions, in calcTSPScore()
68 for (BinaryFunction *BF : BinaryFunctions) { in calcTSPScore()
88 const std::vector<BinaryFunction *> &BinaryFunctions, in calcExtTSPScore()
93 for (BinaryFunction *BF : BinaryFunctions) { in calcExtTSPScore()
110 using Predecessors = std::vector<std::pair<BinaryFunction *, uint64_t>>;
114 std::unordered_map<const BinaryFunction *, Predecessors>
115 extractFunctionCalls(const std::vector<BinaryFunction *> &BinaryFunctions) { in extractFunctionCalls()
116 std::unordered_map<const BinaryFunction *, Predecessors> Calls; in extractFunctionCalls()
118 for (BinaryFunction *SrcFunction : BinaryFunctions) { in extractFunctionCalls()
133 const BinaryFunction *DstFunction = BC.getFunctionForSymbol(DstSym); in extractFunctionCalls()
160 const std::vector<BinaryFunction *> &BinaryFunctions, in expectedCacheHitRatio()
166 std::unordered_map<const BinaryFunction *, Predecessors> Calls = in expectedCacheHitRatio()
170 std::unordered_map<BinaryFunction *, double> FunctionSamples; in expectedCacheHitRatio()
171 for (BinaryFunction *BF : BinaryFunctions) { in expectedCacheHitRatio()
173 for (std::pair<BinaryFunction *, uint64_t> Pair : Calls[BF]) in expectedCacheHitRatio()
182 for (BinaryFunction *BF : BinaryFunctions) { in expectedCacheHitRatio()
191 for (BinaryFunction *BF : BinaryFunctions) { in expectedCacheHitRatio()
201 for (std::pair<BinaryFunction *, uint64_t> Pair : Calls[BF]) { in expectedCacheHitRatio()
202 BinaryFunction *SrcFunction = Pair.first; in expectedCacheHitRatio()
249 void CacheMetrics::printAll(const std::vector<BinaryFunction *> &BFs) { in printAll()
262 for (BinaryFunction *BF : BFs) { in printAll()