Lines Matching refs:definitions
163 check((instr->definitions[0].isFixed() && instr->definitions[0].physReg() == vcc) || in validate_ir()
167 const Definition& def = instr->definitions[0]; in validate_ir()
198 if (instr->definitions.size() >= 2) { in validate_ir()
199 check(instr->definitions[1].isFixed() && instr->definitions[1].physReg() == vcc, in validate_ir()
235 if (instr->definitions[0].regClass().is_subdword() && !instr->definitions[0].isFixed()) in validate_ir()
257 for (unsigned i = 0; i < instr->definitions.size(); i++) { in validate_ir()
258 if (instr->definitions[i].regClass().is_subdword()) in validate_ir()
259 check(instr->isPseudo() || instr->definitions[i].bytes() <= 4, in validate_ir()
303 check(instr->definitions[0].getTemp().type() == RegType::sgpr, in validate_ir()
306 check(instr->definitions[0].getTemp().type() == RegType::vgpr, in validate_ir()
364 check(instr->definitions[0].getTemp().type() == RegType::sgpr, in validate_ir()
381 check(size == instr->definitions[0].bytes(), in validate_ir()
383 if (instr->definitions[0].getTemp().type() == RegType::sgpr) { in validate_ir()
392 check((instr->operands[1].constantValue() + 1) * instr->definitions[0].bytes() <= in validate_ir()
395 check(instr->definitions[0].getTemp().type() == RegType::vgpr || in validate_ir()
399 !instr->definitions[0].regClass().is_subdword() || in validate_ir()
405 for (const Definition& def : instr->definitions) { in validate_ir()
411 for (const Definition& def : instr->definitions) in validate_ir()
415 for (const Definition& def : instr->definitions) in validate_ir()
420 check(instr->definitions.size() == instr->operands.size(), in validate_ir()
423 check(instr->definitions[i].bytes() == instr->operands[i].bytes(), in validate_ir()
426 check((instr->definitions[i].getTemp().type() == in validate_ir()
428 (instr->definitions[i].getTemp().type() == RegType::vgpr && in validate_ir()
431 check(instr->definitions[i].regClass().is_linear_vgpr() == in validate_ir()
435 check(!instr->definitions[i].regClass().is_linear_vgpr(), in validate_ir()
443 check(instr->definitions[0].getTemp().type() == RegType::vgpr, in validate_ir()
446 check(instr->definitions[0].size() == op.size(), in validate_ir()
452 check(instr->definitions[0].size() == op.size(), in validate_ir()
465 check(instr->definitions[0].getTemp().type() != RegType::sgpr || in validate_ir()
470 check(instr->operands[0].bytes() == instr->definitions[0].bytes(), in validate_ir()
473 if (instr->definitions[0].getTemp().type() == RegType::sgpr) in validate_ir()
474 check(instr->definitions.size() >= 2 && instr->definitions[1].isFixed() && in validate_ir()
475 instr->definitions[1].physReg() == scc, in validate_ir()
505 check(instr->definitions[0].regClass().type() == RegType::sgpr || in validate_ir()
509 check(instr->definitions[0].regClass().type() == RegType::vgpr, in validate_ir()
526 if (!instr->definitions.empty()) in validate_ir()
527 check(instr->definitions[0].getTemp().type() == RegType::sgpr, in validate_ir()
559 check(instr->definitions.empty() || in validate_ir()
560 (instr->definitions[0].regClass() == instr->operands[2].regClass() || in validate_ir()
578 check(instr->definitions.empty() || in validate_ir()
579 (instr->definitions[0].isTemp() && in validate_ir()
580 instr->definitions[0].regClass().type() == RegType::vgpr), in validate_ir()
589 if (!instr->definitions.empty()) in validate_ir()
590 check(instr->definitions[0].getTemp().type() == RegType::vgpr, in validate_ir()
613 if (!instr->definitions.empty()) in validate_ir()
614 check(instr->definitions[0].getTemp().type() == RegType::vgpr, in validate_ir()
767 Definition def = instr->definitions[0]; in validate_subdword_definition()
799 Definition def = instr->definitions[index]; in get_subdword_bytes_written()
896 for (unsigned i = 0; i < instr->definitions.size(); i++) { in validate_ra()
897 Definition& def = instr->definitions[i]; in validate_ra()
973 for (const Definition& def : instr->definitions) { in validate_ra()
1019 for (unsigned i = 0; i < instr->definitions.size(); i++) { in validate_ra()
1020 Definition& def = instr->definitions[i]; in validate_ra()
1048 for (const Definition& def : instr->definitions) { in validate_ra()