Lines Matching refs:NOPs
241 void handle_raw_hazard(Program *program, Block *cur_block, int *NOPs, int min_states, Operand op) in handle_raw_hazard() argument
243 if (*NOPs >= min_states) in handle_raw_hazard()
246 *NOPs = MAX2(*NOPs, res); in handle_raw_hazard()
289 aco_ptr<Instruction>& instr, int *NOPs) in handle_smem_clause_hazards() argument
292 if (!*NOPs & (ctx.smem_clause || ctx.smem_write)) { in handle_smem_clause_hazards()
296 *NOPs = 1; in handle_smem_clause_hazards()
300 *NOPs = 1; in handle_smem_clause_hazards()
306 if (!*NOPs && test_bitset_range(ctx.smem_clause_read_write, def.physReg(), def.size())) in handle_smem_clause_hazards()
307 *NOPs = 1; in handle_smem_clause_hazards()
317 int NOPs = 0; in handle_instruction_gfx6() local
332 handle_valu_salu_then_read_hazard(program, cur_block, &NOPs, 4, op); in handle_instruction_gfx6()
334 handle_valu_then_read_hazard(program, cur_block, &NOPs, 4, op); in handle_instruction_gfx6()
338 handle_smem_clause_hazards(program, ctx, instr, &NOPs); in handle_instruction_gfx6()
342 NOPs = MAX2(NOPs, ctx.setreg_then_getsetreg); in handle_instruction_gfx6()
348 NOPs = MAX2(NOPs, ctx.salu_wr_m0_then_moverel); in handle_instruction_gfx6()
353 NOPs = MAX2(NOPs, ctx.salu_wr_m0_then_gds_msg_ttrace); in handle_instruction_gfx6()
355 NOPs = MAX2(NOPs, ctx.salu_wr_m0_then_gds_msg_ttrace); in handle_instruction_gfx6()
359 NOPs = MAX2(NOPs, ctx.valu_wr_vcc_then_vccz); in handle_instruction_gfx6()
361 NOPs = MAX2(NOPs, ctx.valu_wr_exec_then_execz); in handle_instruction_gfx6()
365 NOPs = MAX2(NOPs, ctx.valu_wr_exec_then_dpp); in handle_instruction_gfx6()
366 handle_valu_then_read_hazard(program, cur_block, &NOPs, 2, instr->operands[0]); in handle_instruction_gfx6()
372 NOPs = MAX2(NOPs, ctx.vmem_store_then_wr_data[(def.physReg() & 0xff) + i]); in handle_instruction_gfx6()
381 handle_valu_then_read_hazard(program, cur_block, &NOPs, 4, instr->operands[1]); in handle_instruction_gfx6()
392 handle_vintrp_then_read_hazard(program, cur_block, &NOPs, 1, instr->operands[0]); in handle_instruction_gfx6()
396 NOPs = MAX2(NOPs, ctx.valu_wr_vcc_then_div_fmas); in handle_instruction_gfx6()
401 handle_valu_then_read_hazard(program, cur_block, &NOPs, 5, op); in handle_instruction_gfx6()
406 NOPs = MAX2(NOPs, ctx.set_vskip_mode_then_vector); in handle_instruction_gfx6()
416 NOPs = MAX2(NOPs, ctx.salu_wr_m0_then_lds); in handle_instruction_gfx6()
420 ctx.add_wait_states(NOPs + get_wait_states(instr)); in handle_instruction_gfx6()
423 if (NOPs) { in handle_instruction_gfx6()
426 nop->imm = NOPs - 1; in handle_instruction_gfx6()
432 if ((ctx.smem_clause || ctx.smem_write) && (NOPs || instr->format != Format::SMEM)) { in handle_instruction_gfx6()