Lines Matching defs:instr
144 for (aco_ptr<Instruction>& instr : block->instructions) {
145 switch (instr->opcode) {
152 for (unsigned i = 0; i < instr->definitions.size(); i++) {
153 if (ignore_exec_writes && instr->definitions[i].physReg() == exec)
155 if (instr->definitions[i].physReg() != instr->operands[i].physReg())
161 if (ignore_exec_writes && instr->definitions[0].physReg() == exec)
290 instr_writes_exec(Instruction* instr)
292 for (Definition& def : instr->definitions)
331 aco_ptr<Instruction>& instr = block.instructions[i];
335 if (instr->opcode == aco_opcode::p_linear_phi || instr->opcode == aco_opcode::p_phi)
339 bool needs_exec = needs_exec_mask(instr.get());
340 bool writes_exec = instr_writes_exec(instr.get());
344 instr.reset();