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