Lines Matching defs:SelectInstVisitor
346 struct SelectInstVisitor : public InstVisitor<SelectInstVisitor> { struct
347 Function &F;
348 unsigned NSIs = 0; // Number of select instructions instrumented.
349 VisitMode Mode = VM_counting; // Visiting mode.
350 unsigned *CurCtrIdx = nullptr; // Pointer to current counter index.
351 unsigned TotalNumCtrs = 0; // Total number of counters
352 GlobalVariable *FuncNameVar = nullptr;
353 uint64_t FuncHash = 0;
354 PGOUseFunc *UseFunc = nullptr;
356 SelectInstVisitor(Function &Func) : F(Func) {} in SelectInstVisitor() function
358 void countSelects(Function &Func) { in countSelects()
368 void instrumentSelects(Function &Func, unsigned *Ind, unsigned TotalNC, in instrumentSelects()
379 void annotateSelects(Function &Func, PGOUseFunc *UF, unsigned *Ind) { in annotateSelects()
394 unsigned getNumOfSelectInsts() const { return NSIs; } in getNumOfSelectInsts()