Lines Matching refs:candidate
547 aco_ptr<Instruction>& candidate = block->instructions[candidate_idx]; in schedule_SMEM() local
555 if (candidate->opcode == aco_opcode::p_logical_start) in schedule_SMEM()
557 if (candidate->isVMEM()) in schedule_SMEM()
562 HazardResult haz = perform_hazard_query(&hq, candidate.get(), false); in schedule_SMEM()
570 if (candidate->format == Format::DS || !can_move_down) { in schedule_SMEM()
571 add_to_hazard_query(&hq, candidate.get()); in schedule_SMEM()
578 add_to_hazard_query(&hq, candidate.get()); in schedule_SMEM()
598 aco_ptr<Instruction>& candidate = block->instructions[candidate_idx]; in schedule_SMEM() local
600 if (candidate->opcode == aco_opcode::p_logical_end) in schedule_SMEM()
606 if (is_dependency && candidate->isVMEM()) in schedule_SMEM()
610 HazardResult haz = perform_hazard_query(&hq, candidate.get(), true); in schedule_SMEM()
629 add_to_hazard_query(&hq, candidate.get()); in schedule_SMEM()
639 if (res == move_fail_ssa && candidate->isVMEM()) in schedule_SMEM()
641 add_to_hazard_query(&hq, candidate.get()); in schedule_SMEM()
676 aco_ptr<Instruction>& candidate = block->instructions[candidate_idx]; in schedule_VMEM() local
677 bool is_vmem = candidate->isVMEM() || candidate->isFlatOrGlobal(); in schedule_VMEM()
680 if (candidate->opcode == aco_opcode::p_logical_start) in schedule_VMEM()
689 if (current->isVMEM() == candidate->isVMEM()) { in schedule_VMEM()
692 same_resource = candidate->operands[0].tempId() == current->operands[0].tempId(); in schedule_VMEM()
702 …HazardResult haz = perform_hazard_query(part_of_clause ? &clause_hq : &indep_hq, candidate.get(), … in schedule_VMEM()
711 add_to_hazard_query(&indep_hq, candidate.get()); in schedule_VMEM()
712 add_to_hazard_query(&clause_hq, candidate.get()); in schedule_VMEM()
717 Instruction *candidate_ptr = candidate.get(); in schedule_VMEM()
720 add_to_hazard_query(&indep_hq, candidate.get()); in schedule_VMEM()
721 add_to_hazard_query(&clause_hq, candidate.get()); in schedule_VMEM()
742 aco_ptr<Instruction>& candidate = block->instructions[candidate_idx]; in schedule_VMEM() local
743 bool is_vmem = candidate->isVMEM() || candidate->isFlatOrGlobal(); in schedule_VMEM()
745 if (candidate->opcode == aco_opcode::p_logical_end) in schedule_VMEM()
751 HazardResult haz = perform_hazard_query(&indep_hq, candidate.get(), true); in schedule_VMEM()
769 for (const Definition& def : candidate->definitions) { in schedule_VMEM()
777 add_to_hazard_query(&indep_hq, candidate.get()); in schedule_VMEM()
784 add_to_hazard_query(&indep_hq, candidate.get()); in schedule_VMEM()
811 aco_ptr<Instruction>& candidate = block->instructions[candidate_idx]; in schedule_position_export() local
813 if (candidate->opcode == aco_opcode::p_logical_start) in schedule_position_export()
815 if (candidate->isVMEM() || candidate->format == Format::SMEM || candidate->isFlatOrGlobal()) in schedule_position_export()
818 HazardResult haz = perform_hazard_query(&hq, candidate.get(), false); in schedule_position_export()
823 add_to_hazard_query(&hq, candidate.get()); in schedule_position_export()
830 add_to_hazard_query(&hq, candidate.get()); in schedule_position_export()