LLVM API Documentation
A Counter expression builder is used to construct the counter expressions. It avoids unecessary duplication and simplifies algebraic expressions. More...
#include <CoverageMapping.h>
Public Member Functions | |
CounterExpressionBuilder (unsigned NumCounterValues) | |
ArrayRef< CounterExpression > | getExpressions () const |
Counter | add (Counter LHS, Counter RHS) |
Return a counter that represents the expression that adds LHS and RHS. | |
Counter | subtract (Counter LHS, Counter RHS) |
Return a counter that represents the expression that subtracts RHS from LHS. |
A Counter expression builder is used to construct the counter expressions. It avoids unecessary duplication and simplifies algebraic expressions.
Definition at line 95 of file CoverageMapping.h.
CounterExpressionBuilder::CounterExpressionBuilder | ( | unsigned | NumCounterValues | ) |
Definition at line 21 of file CoverageMapping.cpp.
References llvm::SmallVectorImpl< T >::resize().
Counter CounterExpressionBuilder::add | ( | Counter | LHS, |
Counter | RHS | ||
) |
Return a counter that represents the expression that adds LHS and RHS.
Definition at line 82 of file CoverageMapping.cpp.
References llvm::coverage::CounterExpression::Add.
ArrayRef<CounterExpression> llvm::coverage::CounterExpressionBuilder::getExpressions | ( | ) | const [inline] |
Definition at line 120 of file CoverageMapping.h.
Counter CounterExpressionBuilder::subtract | ( | Counter | LHS, |
Counter | RHS | ||
) |
Return a counter that represents the expression that subtracts RHS from LHS.
Definition at line 86 of file CoverageMapping.cpp.
References llvm::coverage::CounterExpression::Subtract.