Lines Matching defs:primary
738 /// The primary sum is the number of occurrences of this predicate among all
740 unsigned primary = 0;
741 /// The secondary sum is a squared summation of the primary sum of all of the
766 return std::make_tuple(primary, secondary, rhsPos->getOperationDepth(),
768 std::make_tuple(rhs.primary, rhs.secondary,
994 // Increment the primary sum for each reference to a particular predicate.
995 ++orderedPredicate->primary;
1000 // For a particular pattern, get the total primary sum and add it to the
1001 // secondary sum of each predicate. Square the primary sums to emphasize
1006 total += predicate->primary * predicate->primary;
1011 // Sort the set of predicates now that the cost primary and secondary sums