Home
last modified time | relevance | path

Searched refs:CounterExpression (Results 1 – 8 of 8) sorted by relevance

/external/llvm/include/llvm/ProfileData/
DCoverageMapping.h97 struct CounterExpression { struct
102 CounterExpression(ExprKind Kind, Counter LHS, Counter RHS) in CounterExpression() argument
111 std::vector<CounterExpression> Expressions;
113 llvm::DenseMap<CounterExpression, unsigned> ExpressionIndices;
120 Counter get(const CounterExpression &E);
135 ArrayRef<CounterExpression> getExpressions() const { return Expressions; } in getExpressions()
234 ArrayRef<CounterExpression> Expressions;
238 CounterMappingContext(ArrayRef<CounterExpression> Expressions,
460 template<> struct DenseMapInfo<coverage::CounterExpression> {
461 static inline coverage::CounterExpression getEmptyKey() {
[all …]
DCoverageMappingWriter.h42 ArrayRef<CounterExpression> Expressions;
47 ArrayRef<CounterExpression> Expressions, in CoverageMappingWriter()
52 CoverageMappingWriter(ArrayRef<CounterExpression> Expressions, in CoverageMappingWriter()
DCoverageMappingReader.h38 ArrayRef<CounterExpression> Expressions;
110 std::vector<CounterExpression> &Expressions;
121 std::vector<CounterExpression> &Expressions, in RawCoverageMappingReader()
163 std::vector<CounterExpression> Expressions;
/external/llvm/lib/ProfileData/
DCoverageMappingWriter.cpp33 ArrayRef<CounterExpression> Expressions;
34 llvm::SmallVector<CounterExpression, 16> UsedExpressions;
57 CounterExpressionsMinimizer(ArrayRef<CounterExpression> Expressions, in CounterExpressionsMinimizer()
67 ArrayRef<CounterExpression> getExpressions() const { return UsedExpressions; } in getExpressions()
93 static unsigned encodeCounter(ArrayRef<CounterExpression> Expressions, in encodeCounter()
104 static void writeCounter(ArrayRef<CounterExpression> Expressions, Counter C, in writeCounter()
DCoverageMapping.cpp33 Counter CounterExpressionBuilder::get(const CounterExpression &E) { in get()
54 extractTerms(E.RHS, E.Kind == CounterExpression::Subtract ? -Sign : Sign, in extractTerms()
99 C = get(CounterExpression(CounterExpression::Add, C, in simplify()
108 C = get(CounterExpression(CounterExpression::Subtract, C, in simplify()
115 return simplify(get(CounterExpression(CounterExpression::Add, LHS, RHS))); in add()
120 get(CounterExpression(CounterExpression::Subtract, LHS, RHS))); in subtract()
138 OS << (E.Kind == CounterExpression::Subtract ? " - " : " + "); in dump()
170 return E.Kind == CounterExpression::Subtract ? *LHS - *RHS : *LHS + *RHS; in evaluate()
DCoverageMappingReader.cpp104 case CounterExpression::Subtract: in decodeCounter()
105 case CounterExpression::Add: { in decodeCounter()
109 Expressions[ID].Kind = CounterExpression::ExprKind(Tag); in decodeCounter()
252 CounterExpression(CounterExpression::Subtract, Counter(), Counter())); in read()
/external/llvm/unittests/ProfileData/
DCoverageMappingTest.cpp85 std::vector<CounterExpression> OutputExpressions;
/external/clang/lib/CodeGen/
DCoverageMappingGen.cpp886 ArrayRef<CounterExpression> Expressions, in dump()
941 std::vector<CounterExpression> Expressions; in addFunctionMappingRecord()