Lines Matching defs:SelectInstVisitor
386 struct SelectInstVisitor : public InstVisitor<SelectInstVisitor> { struct
387 Function &F;
388 unsigned NSIs = 0; // Number of select instructions instrumented.
389 VisitMode Mode = VM_counting; // Visiting mode.
390 unsigned *CurCtrIdx = nullptr; // Pointer to current counter index.
391 unsigned TotalNumCtrs = 0; // Total number of counters
392 GlobalVariable *FuncNameVar = nullptr;
393 uint64_t FuncHash = 0;
394 PGOUseFunc *UseFunc = nullptr;
396 SelectInstVisitor(Function &Func) : F(Func) {} in SelectInstVisitor() function
398 void countSelects(Function &Func) { in countSelects()
408 void instrumentSelects(Function &Func, unsigned *Ind, unsigned TotalNC, in instrumentSelects()
419 void annotateSelects(Function &Func, PGOUseFunc *UF, unsigned *Ind) { in annotateSelects()
434 unsigned getNumOfSelectInsts() const { return NSIs; } in getNumOfSelectInsts()