Searched refs:CounterExpression (Results 1 – 7 of 7) sorted by relevance
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/Coverage/ |
H A D | CoverageMappingWriter.cpp | 73 ArrayRef<CounterExpression> Expressions; 74 SmallVector<CounterExpression, 16> UsedExpressions; 78 CounterExpressionsMinimizer(ArrayRef<CounterExpression> Expressions, in CounterExpressionsMinimizer() 111 ArrayRef<CounterExpression> getExpressions() const { return UsedExpressions; } in getExpressions() 138 static unsigned encodeCounter(ArrayRef<CounterExpression> Expressions, in encodeCounter() 149 static void writeCounter(ArrayRef<CounterExpression> Expressions, Counter C, in writeCounter()
|
H A D | CoverageMapping.cpp | 51 Counter CounterExpressionBuilder::get(const CounterExpression &E) { in get() 73 E.RHS, E.Kind == CounterExpression::Subtract ? -Factor : Factor, Terms); in extractTerms() 115 C = get(CounterExpression(CounterExpression::Add, C, in simplify() 124 C = get(CounterExpression(CounterExpression::Subtract, C, in simplify() 131 auto Cnt = get(CounterExpression(CounterExpression::Add, LHS, RHS)); in add() 137 auto Cnt = get(CounterExpression(CounterExpression::Subtract, LHS, RHS)); in subtract() 155 OS << (E.Kind == CounterExpression::Subtract ? " - " : " + "); in dump() 216 E.Kind == CounterExpression::Subtract ? LHS - RHS : LHS + RHS; in evaluate()
|
H A D | CoverageMappingReader.cpp | 205 case CounterExpression::Subtract: in decodeCounter() 206 case CounterExpression::Add: { in decodeCounter() 211 Expressions[ID].Kind = CounterExpression::ExprKind(Tag); in decodeCounter() 424 CounterExpression(CounterExpression::Subtract, Counter(), Counter())); in read()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/Coverage/ |
H A D | CoverageMapping.h | 162 struct CounterExpression { struct 167 CounterExpression(ExprKind Kind, Counter LHS, Counter RHS) in CounterExpression() argument 175 std::vector<CounterExpression> Expressions; 178 DenseMap<CounterExpression, unsigned> ExpressionIndices; 185 Counter get(const CounterExpression &E); 208 ArrayRef<CounterExpression> getExpressions() const { return Expressions; } in getExpressions() 657 ArrayRef<CounterExpression> Expressions; 662 CounterMappingContext(ArrayRef<CounterExpression> Expressions, 1420 template<> struct DenseMapInfo<coverage::CounterExpression> { 1421 static inline coverage::CounterExpression getEmptyKey() { [all …]
|
H A D | CoverageMappingWriter.h | 43 ArrayRef<CounterExpression> Expressions; 48 ArrayRef<CounterExpression> Expressions, in CoverageMappingWriter()
|
H A D | CoverageMappingReader.h | 39 ArrayRef<CounterExpression> Expressions; 135 std::vector<CounterExpression> &Expressions; 142 std::vector<CounterExpression> &Expressions, in RawCoverageMappingReader() 190 std::vector<CounterExpression> Expressions;
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CoverageMappingGen.cpp | 2351 ArrayRef<CounterExpression> Expressions, in dump() 2508 std::vector<CounterExpression> Expressions; in addFunctionMappingRecord()
|