Lines Matching defs:SelectInstVisitor
435 struct SelectInstVisitor : public InstVisitor<SelectInstVisitor> { struct
436 Function &F;
437 unsigned NSIs = 0; // Number of select instructions instrumented.
438 VisitMode Mode = VM_counting; // Visiting mode.
439 unsigned *CurCtrIdx = nullptr; // Pointer to current counter index.
440 unsigned TotalNumCtrs = 0; // Total number of counters
441 GlobalVariable *FuncNameVar = nullptr;
442 uint64_t FuncHash = 0;
443 PGOUseFunc *UseFunc = nullptr;
444 bool HasSingleByteCoverage;
446 SelectInstVisitor(Function &Func, bool HasSingleByteCoverage) in SelectInstVisitor() argument
449 void countSelects() { in countSelects()
459 void instrumentSelects(unsigned *Ind, unsigned TotalNC, GlobalVariable *FNV, in instrumentSelects()
470 void annotateSelects(PGOUseFunc *UF, unsigned *Ind) { in annotateSelects()
485 unsigned getNumOfSelectInsts() const { return NSIs; } in getNumOfSelectInsts()