Lines Matching refs:Terms
44 Counter C, int Sign, SmallVectorImpl<std::pair<unsigned, int>> &Terms) {
49 Terms.push_back(std::make_pair(C.getCounterID(), Sign));
53 extractTerms(E.LHS, Sign, Terms);
55 Terms);
61 // Gather constant terms.
62 llvm::SmallVector<std::pair<unsigned, int>, 32> Terms;
63 extractTerms(ExpressionTree, +1, Terms);
65 // If there are no terms, this is just a zero. The algorithm below assumes at
67 if (Terms.size() == 0)
70 // Group the terms by counter ID.
71 std::sort(Terms.begin(), Terms.end(),
77 // Combine terms by counter ID to eliminate counters that sum to zero.
78 auto Prev = Terms.begin();
79 for (auto I = Prev + 1, E = Terms.end(); I != E; ++I) {
87 Terms.erase(++Prev, Terms.end());
92 for (auto Term : Terms) {
104 for (auto Term : Terms) {