Lines Matching refs:IsHazard
459 function_ref<HazardFnResult(StateT &, const MachineInstr &)> IsHazard, in hasHazard() argument
469 switch (IsHazard(State, *I)) { in hasHazard()
489 if (hasHazard(State, IsHazard, UpdateState, Pred, Pred->instr_rbegin(), in hasHazard()
501 GCNHazardRecognizer::IsHazardFn IsHazard, const MachineBasicBlock *MBB, in getWaitStatesSince() argument
510 if (IsHazard(*I)) in getWaitStatesSince()
527 int W = getWaitStatesSince(IsHazard, Pred, Pred->instr_rbegin(), WaitStates, in getWaitStatesSince()
536 static int getWaitStatesSince(GCNHazardRecognizer::IsHazardFn IsHazard, in getWaitStatesSince() argument
539 return getWaitStatesSince(IsHazard, MI->getParent(), in getWaitStatesSince()
544 int GCNHazardRecognizer::getWaitStatesSince(IsHazardFn IsHazard, int Limit) { in getWaitStatesSince() argument
549 return ::getWaitStatesSince(IsHazard, CurrCycleInstr, IsExpiredFn); in getWaitStatesSince()
555 if (IsHazard(*MI)) in getWaitStatesSince()
581 int GCNHazardRecognizer::getWaitStatesSinceSetReg(IsHazardFn IsHazard, in getWaitStatesSinceSetReg() argument
583 auto IsHazardFn = [IsHazard](const MachineInstr &MI) { in getWaitStatesSinceSetReg()
584 return isSSetReg(MI.getOpcode()) && IsHazard(MI); in getWaitStatesSinceSetReg()