LLVM  4.0.0
Public Member Functions | List of all members
llvm::coverage::CounterExpressionBuilder Class Reference

A Counter expression builder is used to construct the counter expressions. More...

#include <CoverageMapping.h>

Public Member Functions

ArrayRef< CounterExpressiongetExpressions () const
 
Counter add (Counter LHS, Counter RHS)
 Return a counter that represents the expression that adds LHS and RHS. More...
 
Counter subtract (Counter LHS, Counter RHS)
 Return a counter that represents the expression that subtracts RHS from LHS. More...
 

Detailed Description

A Counter expression builder is used to construct the counter expressions.

It avoids unnecessary duplication and simplifies algebraic expressions.

Definition at line 153 of file CoverageMapping.h.

Member Function Documentation

Counter CounterExpressionBuilder::add ( Counter  LHS,
Counter  RHS 
)

Return a counter that represents the expression that adds LHS and RHS.

Definition at line 114 of file CoverageMapping.cpp.

References llvm::coverage::CounterExpression::Add.

ArrayRef<CounterExpression> llvm::coverage::CounterExpressionBuilder::getExpressions ( ) const
inline

Definition at line 179 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 118 of file CoverageMapping.cpp.

References llvm::coverage::CounterExpression::Subtract.


The documentation for this class was generated from the following files: