Lines Matching defs:IsHazard
467 function_ref<HazardFnResult(StateT &, const MachineInstr &)> IsHazard,
477 switch (IsHazard(State, *I)) {
497 if (hasHazard(State, IsHazard, UpdateState, Pred, Pred->instr_rbegin(),
509 GCNHazardRecognizer::IsHazardFn IsHazard, const MachineBasicBlock *MBB,
518 if (IsHazard(*I))
535 int W = getWaitStatesSince(IsHazard, Pred, Pred->instr_rbegin(), WaitStates,
544 static int getWaitStatesSince(GCNHazardRecognizer::IsHazardFn IsHazard,
547 return getWaitStatesSince(IsHazard, MI->getParent(),
552 int GCNHazardRecognizer::getWaitStatesSince(IsHazardFn IsHazard, int Limit) {
557 return ::getWaitStatesSince(IsHazard, CurrCycleInstr, IsExpiredFn);
563 if (IsHazard(*MI))
589 int GCNHazardRecognizer::getWaitStatesSinceSetReg(IsHazardFn IsHazard,
591 auto IsHazardFn = [IsHazard](const MachineInstr &MI) {
592 return isSSetReg(MI.getOpcode()) && IsHazard(MI);