Lines Matching defs:CounterCoverageMappingBuilder
361 struct CounterCoverageMappingBuilder struct
365 llvm::DenseMap<const Stmt *, unsigned> &CounterMap;
368 std::vector<SourceMappingRegion> RegionStack;
370 CounterExpressionBuilder Builder;
376 SourceLocation MostRecentLocation;
379 Counter subtractCounters(Counter LHS, Counter RHS) { in subtractCounters()
384 Counter addCounters(Counter LHS, Counter RHS) { in addCounters()
388 Counter addCounters(Counter C1, Counter C2, Counter C3) { in addCounters()
395 Counter getRegionCounter(const Stmt *S) { in getRegionCounter()
403 size_t pushRegion(Counter Count, Optional<SourceLocation> StartLoc = None, in pushRegion()
416 void popRegions(size_t ParentIndex) { in popRegions()
454 SourceMappingRegion &getRegion() { in getRegion()
460 Counter propagateCounts(Counter TopCount, const Stmt *S) { in propagateCounts()
476 bool isRegionAlreadyAdded(SourceLocation StartLoc, SourceLocation EndLoc) { in isRegionAlreadyAdded()
488 void adjustForOutOfOrderTraversal(SourceLocation EndLoc) { in adjustForOutOfOrderTraversal()
507 void handleFileExit(SourceLocation NewLoc) { in handleFileExit()
568 void extendRegion(const Stmt *S) { in extendRegion()
578 void terminateRegion(const Stmt *S) { in terminateRegion()
587 struct BreakContinue {
591 SmallVector<BreakContinue, 8> BreakContinueStack;
593 CounterCoverageMappingBuilder( in CounterCoverageMappingBuilder() function
600 void write(llvm::raw_ostream &OS) { in write()
612 void VisitStmt(const Stmt *S) { in VisitStmt()
621 void VisitDecl(const Decl *D) { in VisitDecl()
626 void VisitReturnStmt(const ReturnStmt *S) { in VisitReturnStmt()
633 void VisitCXXThrowExpr(const CXXThrowExpr *E) { in VisitCXXThrowExpr()
640 void VisitGotoStmt(const GotoStmt *S) { terminateRegion(S); } in VisitGotoStmt()
642 void VisitLabelStmt(const LabelStmt *S) { in VisitLabelStmt()
650 void VisitBreakStmt(const BreakStmt *S) { in VisitBreakStmt()
657 void VisitContinueStmt(const ContinueStmt *S) { in VisitContinueStmt()
664 void VisitWhileStmt(const WhileStmt *S) { in VisitWhileStmt()
688 void VisitDoStmt(const DoStmt *S) { in VisitDoStmt()
709 void VisitForStmt(const ForStmt *S) { in VisitForStmt()
742 void VisitCXXForRangeStmt(const CXXForRangeStmt *S) { in VisitCXXForRangeStmt()
763 void VisitObjCForCollectionStmt(const ObjCForCollectionStmt *S) { in VisitObjCForCollectionStmt()
783 void VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
818 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
839 void VisitIfStmt(const IfStmt *S) { in VisitIfStmt()
866 void VisitCXXTryStmt(const CXXTryStmt *S) { in VisitCXXTryStmt()
881 void VisitCXXCatchStmt(const CXXCatchStmt *S) { in VisitCXXCatchStmt()
885 void VisitAbstractConditionalOperator(const AbstractConditionalOperator *E) { in VisitAbstractConditionalOperator()
902 void VisitBinLAnd(const BinaryOperator *E) { in VisitBinLAnd()
910 void VisitBinLOr(const BinaryOperator *E) { in VisitBinLOr()
918 void VisitLambdaExpr(const LambdaExpr *LE) { in VisitLambdaExpr()