Lines Matching defs:PhysReg

428  * PhysReg
432 struct PhysReg {
433 constexpr PhysReg() = default;
434 explicit constexpr PhysReg(unsigned r) : reg_b(r << 2) {}
438 constexpr bool operator==(PhysReg other) const { return reg_b == other.reg_b; }
439 constexpr bool operator!=(PhysReg other) const { return reg_b != other.reg_b; }
440 constexpr bool operator<(PhysReg other) const { return reg_b < other.reg_b; }
441 constexpr PhysReg advance(int bytes) const
443 PhysReg res = *this;
452 static constexpr PhysReg m0{124};
453 static constexpr PhysReg vcc{106};
454 static constexpr PhysReg vcc_hi{107};
455 static constexpr PhysReg tba{108}; /* GFX6-GFX8 */
456 static constexpr PhysReg tma{110}; /* GFX6-GFX8 */
457 static constexpr PhysReg ttmp0{112};
458 static constexpr PhysReg ttmp1{113};
459 static constexpr PhysReg ttmp2{114};
460 static constexpr PhysReg ttmp3{115};
461 static constexpr PhysReg ttmp4{116};
462 static constexpr PhysReg ttmp5{117};
463 static constexpr PhysReg ttmp6{118};
464 static constexpr PhysReg ttmp7{119};
465 static constexpr PhysReg ttmp8{120};
466 static constexpr PhysReg ttmp9{121};
467 static constexpr PhysReg ttmp10{122};
468 static constexpr PhysReg ttmp11{123};
469 static constexpr PhysReg sgpr_null{125}; /* GFX10+ */
470 static constexpr PhysReg exec{126};
471 static constexpr PhysReg exec_lo{126};
472 static constexpr PhysReg exec_hi{127};
473 static constexpr PhysReg vccz{251};
474 static constexpr PhysReg execz{252};
475 static constexpr PhysReg scc{253};
488 : reg_(PhysReg{128}), isTemp_(false), isFixed_(true), isConstant_(false), isKill_(false),
500 setFixed(PhysReg{128});
503 explicit Operand(Temp r, PhysReg reg) noexcept
522 op.setFixed(PhysReg{0u});
535 op.setFixed(PhysReg{128u + v});
537 op.setFixed(PhysReg{(unsigned)(192 - (int16_t)v)});
539 op.setFixed(PhysReg{240});
541 op.setFixed(PhysReg{241});
543 op.setFixed(PhysReg{242});
545 op.setFixed(PhysReg{243});
547 op.setFixed(PhysReg{244});
549 op.setFixed(PhysReg{245});
551 op.setFixed(PhysReg{246});
553 op.setFixed(PhysReg{247});
555 op.setFixed(PhysReg{248});
557 op.setFixed(PhysReg{255});
573 op.setFixed(PhysReg{128 + (uint32_t)v});
576 op.setFixed(PhysReg{192 - (uint32_t)v});
579 op.setFixed(PhysReg{240});
582 op.setFixed(PhysReg{241});
585 op.setFixed(PhysReg{242});
588 op.setFixed(PhysReg{243});
591 op.setFixed(PhysReg{244});
594 op.setFixed(PhysReg{245});
597 op.setFixed(PhysReg{246});
600 op.setFixed(PhysReg{247});
604 op.setFixed(PhysReg{255});
620 op.setFixed(PhysReg{128 + v});
622 op.setFixed(PhysReg{192 - v});
624 op.setFixed(PhysReg{240});
626 op.setFixed(PhysReg{241});
628 op.setFixed(PhysReg{242});
630 op.setFixed(PhysReg{243});
632 op.setFixed(PhysReg{244});
634 op.setFixed(PhysReg{245});
636 op.setFixed(PhysReg{246});
638 op.setFixed(PhysReg{247});
641 op.setFixed(PhysReg{255});
650 setFixed(PhysReg{128});
652 explicit Operand(PhysReg reg, RegClass type) noexcept
678 op.setFixed(PhysReg{248});
750 constexpr PhysReg physReg() const noexcept { return reg_; }
752 constexpr void setFixed(PhysReg reg) noexcept
867 PhysReg reg_;
901 Definition(PhysReg reg, RegClass type) noexcept : temp(Temp(0, type)) { setFixed(reg); }
902 Definition(uint32_t tmpId, PhysReg reg, RegClass type) noexcept : temp(Temp(tmpId, type))
925 constexpr PhysReg physReg() const noexcept { return reg_; }
927 constexpr void setFixed(PhysReg reg) noexcept
933 constexpr void setHint(PhysReg reg) noexcept
960 PhysReg reg_;
1629 PhysReg scratch_sgpr; /* might not be valid if it's not needed */
1899 PhysReg scratch_sgpr = PhysReg(); /* only needs to be valid if scc_live_out != false */