LLVM 17.0.0git

A Counter expression builder is used to construct the counter expressions. More...
#include "llvm/ProfileData/Coverage/CoverageMapping.h"
Public Member Functions  
ArrayRef< CounterExpression >  getExpressions () const 
Counter  add (Counter LHS, Counter RHS, bool Simplify=true) 
Return a counter that represents the expression that adds LHS and RHS.  
Counter  subtract (Counter LHS, Counter RHS, bool Simplify=true) 
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 unnecessary duplication and simplifies algebraic expressions.
Definition at line 168 of file CoverageMapping.h.
Return a counter that represents the expression that adds LHS and RHS.
Definition at line 128 of file CoverageMapping.cpp.
References llvm::coverage::CounterExpression::Add, LHS, RHS, and simplify.

inline 
Definition at line 203 of file CoverageMapping.h.
Return a counter that represents the expression that subtracts RHS from LHS.
Definition at line 133 of file CoverageMapping.cpp.
References LHS, RHS, simplify, and llvm::coverage::CounterExpression::Subtract.